New blog demo

Sorry the blog tutorial has been delayed because we want to stablize the demo first (this is very important because the demo may be taken as the best practice by new users. So we need to be extremely careful with every line of code.)

Most likely, we shall see the first draft ready when 1.0.3 is released.

I might as well report a minor issue I found a while ago:

A tag is created even if a new post isn't yet published (draft).

/Tommy

Yes, that's known…actually the tag feature is not very well designed and implemented.

IS captcha verification working here?

Fixed the bug which was introduced after 1.0.1. Thanks.

Though the widget in my previous article (

http://www.yiiframew…1.html#msg2361) is just an widget that ONLY renders the calender, the widget has now relations to the posts.

Screen shot:

Posted Image

Actually, I have implemented two actions; actionPostedOnDate() and actionPostedInMonth() in the Post controller in order to add link buttons in the widget as seen above.

And I have added a calendar component over the existing blog demo, you are able to know the difference between the two looking at the diffs as below, and of course able to get the source there.

http://code.google.c…urce/detail?r=4

Any feedback is welcomed.

That's very cool! Good job.

Thank you Qiang, I would like to donate my code to you, but of course you will be able to improve mine. ;D

I have created a extension to use the flexigid and made a small test for the blog demo (see attachment for result screenshot)

http://www.yiiframew…92.html#msg4192

That's very cool! It's becoming nicer and nicer!

Hi Guys

I've  been playing with this framework today and been working my way through the Blog Tutorial, this is looking like a very good framework.

I have run into problem however. I have got up to the relations section of the tutorial for the Post model. I place the code in, try to access the post page and get:



CException





Description





Property "CManyManyRelation.together" is not defined.





Source File





C:wampwwwyiiframeworkdbarCActiveRecord.php(1587)


I have followed the tutorial step by step and even tried running the version on the svn which also has run into the same problem.

Being new I'm not exactly sure what I have done wrong, any ideas?

Let me know if you need the entire stack trace or code.

Chris

[edit]

removing:



'tagFilter'=>array(self::MANY_MANY, 'Tag', 'PostTag(postId, tagId)',


            'together'=>true,


            'joinType'=>'INNER JOIN',


            'condition'=>'??.name=:tag'),


from the relations array removes the error.

The tutorial is written for the upcoming 1.0.3 release. Currently, you will need the code from SVN.

Oh, ok, now I feel a little newbie lol

Thank you :)

[edit]

Yup that fixed it.

For those who have an interest in the blog demo, this is a summary of the extension.

[table]

[tr]

  [td]Highslide[/td]

  [td]http://www.yiiframew…oc/cookbook/12/

http://www.yiiframew…opic,835.0.html[/td]

  [/tr]

[tr]

  [td]Calender widget[/td]

  [td]http://www.yiiframew…opic,848.0.html[/td]

  [/tr]

[tr]

  [td]Postdate widget[/td]

  [td]http://www.yiiframew…opic,850.0.html[/td]

  [/tr]

[tr]

  [td]Recent Posts widget[/td]

  [td]http://www.yiiframew…opic,852.0.html[/td]

  [/tr]

[tr]

  [td]Links widget[/td]

  [td]http://www.yiiframew…opic,865.0.html[/td]

  [/tr]

[tr]

  [td]Clock widget[/td]

  [td]It is working, but it is too domestic to be released…[/td]

  [/tr]

[/table]

Wow, you did so many!

Maybe you can start a google project to host these widgets, and I can add a link to the project on the blog demo.

Yeah, that's a good idea!

But one thing I have to consider is the upgrading of the blog demo itself. As I mentioned earlier in the post (http://www.yiiframework.com/forum/index.php/topic,443.msg3561.html#msg3561), I already have started a project.

Since what I have made is a kind of a patch, when original blog demo changes, I have to change the contents of the project even though the patch does not change at all. This is why I have posted them in a patch format.

Anyway I am going to start a project having all functionalities with the blog demo soon.

I have added a link to the yiijan project on the blog demo page. Thanks!

Quote

I have added a link to the yiijan project on the blog demo page. Thanks!

That is customised for me much. In order to minimize the difference, I have started the new project "yii-blogdemo-enhanced" as below. Would you please change the link to this?

http://code.google.c…gdemo-enhanced/

updated.

Thanks :)

[img][/img]