ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

use of templates with multiple sections - best practises?

August 05, 2007 4:32pm

Subscribe [2]
  • #1 / Aug 05, 2007 4:32pm

    giovanni

    209 posts

    I am well into my project but i think i may have started out on the wrong foot: 

    I have one main site and four other sections/weblogs. In each of these four I have an index and a more template. Reason for this was that i wanted to have the most recent intro_summary field of each of the four sections be dispalyed on the front page (main site) and then from there to the appropriate section to see the full entry. ... this takes one to the Section/More page ... which contains the full article and a permalink to the single entry. But the Section page has only the full article entry with no url_title etc.

    example.com/News/more has permalink and next/prev pagination
    whereas
    example.com/News/  has only the latest entry

    (both templates in the sidebar have the latest 10 entries)

    i have done the same for the other three templates.

    But i am starting to wonder if this scheme is a good choice. I don’t want a “blog”  look but a News and Events kind of site with lots of various entries etc.

  • #2 / Aug 05, 2007 4:57pm

    PXLated

    1800 posts

    There is no right or wrong way but I try to keep the number of templates to a minimum and only create new ones if the format/layout is different. The more templates one has, the more maintenance there can be.
    If your four sections all look the same, you could have one that uses conditionals based on the URL to display the correct content.
    On the other hand, I’ve managed to create templates with so many conditionals that it was itself a maintenance nightmare.

  • #3 / Aug 08, 2007 12:53am

    giovanni

    209 posts

    Thanks PXlated. What i trying to say is that it I may NOT need a _more_ template. I am trying to have ONE brief entry from 4 weblogs on the main page ... and then i wish to link to the full entry in the appropriate section. But at the moment from the main page by linking on the _continue_ link one goes to example.com/News
    which has the full entry. It’s permalink is something like example.com/News/more/A_News_item

    The problem arises when one the editors sends a link to someone as ” see my news item here: example.com/News”  ... but in the meantime another editor comes along and adds a new News item which replaces the first entry and now when a user goes to example.com/News they see another news item whose permalink is i.e.  example.com/News/more/Second_News_item

    So i was thinking that perhaps there is a way to forget about the _more_ template and use a permanent url scheme. That way one would get URLS along the lines of
    example.com/News/A_News_item and NOT what i have now :  example.com/News/more/A_News_item

    does this make sense?
    Is this possible?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases