开发者

simple cms - symfony

I'm in the process of writing a small/basic CMS system using Symfony 1.4 and Doctrine.

I have a several models, mainly for user management, with a couple of others to list products etc. I have created in my schem开发者_开发知识库a a model, 'Pages' and I have several fields to output data, i.e description , page_title

The problem I'm having is how I'd actually implement this? I have approx 10 pages and each are different in terms of page content and layout (a part from the navigation menu/header).

I have seen Diem and Apostrophenow, but both seem to edit the pages in-context, I'd rather do this in the admin.

I have also seen slots used in symfony, would this be a good route to go down, i.e. defining slots in my layout.php file and then 'enabling/disabling' them via an admin panel on a per page basis?

thanks


Apostrophe is very flexible in terms of slots. You can define different slot types and areas that hold predefined set of slots. I'd go ahead with Apostrophe, instead of writing my own. It's worth it.

You may want to turn off some plugins to keen things simple and speed up cache recreation. For example sfFeed2Plugin, sfSyncContentPlugin, apostropheBlogPlugin.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜