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.

How To - Template & URI/URL structure

January 02, 2011 8:44pm

Subscribe [2]
  • #1 / Jan 02, 2011 8:44pm

    macpro

    85 posts

    Hi volx,

    just getting nearly brain damned about the best way to achieve my template structure respectively the URI/URL stucture.

    Lets make an example:

    I got an index page with a listing of all entries in that channel. An then I got a single entry. I found two option to get this done (w/o using categories)

    1. /templategroup/list of all entries -> /templategroup/template/single-entry i.E. domain.com/news/articles/single-entry
    2. /templategroup/list of all entries -> /templategroup/single-entry (done via segment_2 conditional) i.E. domain.com/news/single-entry

    I like the second one most. There is not really a difference in query time too. And it does looks much better. But I’m not shure about this solution, because:

    Now to my question. What is better in case of speed, site wide searching, SEO and template optimization, caching etc.

    How do you solve this? Do you have an extra “entry”-template?


    Thank you

  • #2 / Jan 04, 2011 3:46am

    John Henry Donovan

    12339 posts

    macpro,

    The third segment/template is necessary for a single entry page

    What is better in case of speed, site wide searching, SEO and template optimization, caching etc.

    I don’t this this affects the items you mention at all really.

    If you want to remove this segment take a look at Cruft Free URLs  in our community generated Wiki.
    The article is for EE1.x but the method should more of less be similar. I use it myself for a lot of sites.

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

ExpressionEngine News!

#eecms, #events, #releases