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.

Page titles pull in titles from other weblogs

March 29, 2010 11:07am

Subscribe [2]
  • #1 / Mar 29, 2010 11:07am

    Nightshade

    22 posts

    I have two weblogs, pages and members

    I’m using this code to display my page title:

    {exp:weblog:entries limit="1" status="Open|Closed|Hide from menus" disable="trackbacks|pagination|member_data|custom_fields|category_fields|categories"}{title}{/exp:weblog:entries}

    But on one of my pages, it shows a title from a members weblog entry! I can fix it by adding ‘weblog=“pages”’ to the above code, but then my template no longer works for the members. I want my template to work for both weblogs.

    Any ideas?

  • #2 / Mar 29, 2010 11:46am

    Nightshade

    22 posts

    Oh, and I tried to do something clever like ’ weblog=”{weblog}” ’ already, but it didn’t work…

  • #3 / Mar 29, 2010 3:32pm

    Ingmar

    29245 posts

    Yes, if you don’t add a weblog= parameter, and there is no indication in the URL to specify a specific entry, the last entry (regardless of weblog) will be shown. You might want to rethink your setup a little, perhaps.

  • #4 / Mar 30, 2010 8:48am

    Nightshade

    22 posts

    Ok thanks I’ve fixed it now. I am using the Structure mod, turns out the URL Title field has to be the same as Structure’s Page URL field for the page title to display correctly.

  • #5 / Mar 30, 2010 9:45am

    Sue Crocker

    26054 posts

    Glad you were able to figure out what the problem was. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases