Re: [dotcms] content access from a template

8 views
Skip to first unread message

Chris Falzone

unread,
Jul 20, 2012, 1:55:15 PM7/20/12
to dot...@googlegroups.com
It is really personal preference and how you want you (and your editors) to edit the content.  

In most cases, the homepage has some dynamic content pulled on to it.  The editors create the content in the content search manager, like news releases or promotions, or features and the like, then in the template I code the pulls/display of these so the editor does not ever touch the homepage itself.  

In other cases, the content has been more static and I have made it a container so the editor can directly add the content to the homepage via the page editor.  

In other cases where it never needs to change and there no editors, you could statically put the content as html right into the template.  But then when it does need changed you have to edit the template directly.

So you see it all depends on your use case.  



On Fri, Jul 20, 2012 at 1:42 PM, Nathan Maves <nathan...@gmail.com> wrote:
I am new to dotcms so please forgive any obvious questions.

With something like a home page template which has two specific generic content elements.  And these generic content are never reused should I still create a container for them?  Or should I pull the content directly in the template?

Nathan

--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To view this discussion on the web visit https://groups.google.com/d/msg/dotcms/-/SrFHvdNy0hQJ.
To post to this group, send email to dot...@googlegroups.com.
To unsubscribe from this group, send email to dotcms+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotcms?hl=en.

Reply all
Reply to author
Forward
0 new messages