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.

Templates as files... {title_path} issues

August 17, 2011 12:02pm

Subscribe [2]
  • #1 / Aug 17, 2011 12:02pm

    Deluko Media

    34 posts

    This question may be related to a resolved thread.


    Hey all,

    So I normally edit templates as files, and then when my changes are all made and tested, I turn that feature off for improved performance.

    I decided to change my template structure, so I deleted a template in my “main/default” template group called “events” and wanted to move all entries that used that template to its own template group/ template which I named “events/index”

    After I made this change, the site seems to function the same way as previously (e.g. the pages only load when given the proper templategroup/template structure), but when I print the {url_title_path} of the events that use that template, it fails to print the /events/ template group in the URL (essentially it “skips” printing the template group in the url).

    I’ve tried reverting my changes, and updating entries/ setting in the control panel, but nothing seems to work.

    To summarize:
    Old
    {url_title_path} was http://www.domain.com/events/event-title-url-slug

    New
    {url_title_path} is http://www.domain.com/event-title-url-slug (which, when visited, produces a 404 page)

    I don’t know if there’s something I can “reset” or what would be the best way to debug this. Thanks!

  • #2 / Aug 17, 2011 12:05pm

    Deluko Media

    34 posts

    Sorry forgot version/build… v2.1.3 Build 20101220

  • #3 / Aug 17, 2011 10:36pm

    Dan Decker

    7338 posts

    DelukoMedia,

    Just for clarification, are you using the tag in this fashion:

    {url_title_path='template-group/template'}

    Cheers,

  • #4 / Aug 18, 2011 12:34pm

    Deluko Media

    34 posts

    Hey Dan,

    Thanks for your quick response. I was using it that way… and in fact, I’ve run into some odd behavior (odd to me, not necessarily anything out of the ordinary function wise).

    I think the main issue was my template group / template structure and .htaccess settings. If I run into this again, I’ll re-post. Sorry for the confusion.

  • #5 / Aug 20, 2011 12:30am

    Dan Decker

    7338 posts

    DelukoMedia,

    I’m glad you were able to sort it out. Yes, please post a new thread anytime you need assistance or have a question.

    Cheers!

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

ExpressionEngine News!

#eecms, #events, #releases