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.

rename or re-assign the index template of a template group

April 20, 2011 4:39pm

Subscribe [2]
  • #1 / Apr 20, 2011 4:39pm

    willrice

    9 posts

    Is it possible to rename, or to re-assign the index for a template group? I’m working using external template files which I’m coding with Coda. As it is I’ve got this kinda thing:
    home.group/index.html
    articles.group/index.html
    contact.group/index.html

    which works fine. And to keep track of which index.html is which, I’ve just started each with a <!—THIS PAGE—> comment. But the tabs in Coda still all say “index.html” which gets a bit confusing and feels clumsy.

    How can I get myself to something more like:
    home.group/home-index.html
    articles.group/articles-index.html
    contact.group/contact-index.html

    ?

    In the EE template manager, it’s not possible to rename the index templates directly (text field is shown but not editable), and I can’t find a way to assign a different index for a template group…

    Perhaps I’m doing it all wrong and should have something more like:
    pages.group/home.html
    pages.group/articles.html
    pages.group/contact.html

    and use .htaccess to strip the un-necessary “domain.com/pages/page” out of the URL?

    Any ideas?

  • #2 / Apr 20, 2011 8:40pm

    Sue Crocker

    26054 posts

    Hi, williamrice. EE requires the index template, you don’t have to use it, or you could just use it to embed the other templates.

    If you’d prefer other urls, you can use the Pages module to rewrite your single entry template to something else on the front end.

    In other words, you could have a template called pages/contact/url-title and have that become contactus.html on the front end.

    For more information on Pages: EEDocs:// Pages

    Does that help?

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

ExpressionEngine News!

#eecms, #events, #releases