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.

Overriding the template-group/template URI structure

November 16, 2009 2:58pm

Subscribe [2]
  • #1 / Nov 16, 2009 2:58pm

    squiid

    39 posts

    I’ve built a simple site that only has 1 template (index) inside the only (default) template group. That template simply pulls a specific entry from a Page weblog based on the segment_1 variable that is passed.

    For example:

    http://mysite.com/index.php/page_one

    would pull up a page’s content like this…

    {exp:weblog:entries weblog="Pages" url_title="{segment_1}"}.... etc.

    I’ve used this method on several sites, and it’s worked great. However, I can’t get it to work on my latest site. I’m wondering if I missed something this time, or if something changed in 1.6.8, which I recently upgraded to.

    The result is a blank page. When I turned debugging on, I saw that it was unsuccessfully trying to find the template with the same name as segment 1. How can I force the index (default) template to be processed, instead of having EE look for another template?

    Thanks!
    Shaun

  • #2 / Nov 16, 2009 3:49pm

    Ingmar

    29245 posts

    What version and build of EE are you on? Do you’ve got a link?

  • #3 / Nov 16, 2009 4:19pm

    squiid

    39 posts

    1.6.8 with multi-site admin


    Working example that I’m trying to duplicate.
    http://www.opportunity.net/RwandaNew/index.php/home

    Non working example with exact same template and weblog data:
    http://www.opportunity.net/sandbox/index.php/home

  • #4 / Nov 16, 2009 5:37pm

    jayf

    41 posts

    Is there anything you’re doing with multiple sites, e.g., are you trying to access the weblog on a different site than where your template(s) live? If so, you may need to add the site=”” to your exp:weblog:entries tag.

    Also, in the Templates tab in the Control Panel, double check that the template group/index you want is set as the “master site default page.”

  • #5 / Nov 16, 2009 5:53pm

    Ingmar

    29245 posts

    Good suggestions there. Let us know if any of that helps, please.

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

ExpressionEngine News!

#eecms, #events, #releases