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.

Corrupt index template?

March 01, 2011 9:42pm

Subscribe [3]
  • #1 / Mar 01, 2011 9:42pm

    Krake

    72 posts

    Hey

    How come, the exact same basic code in an index template on two separate sites acts differently? Using EE 2.1.3 on both sites.

    Problem
    Same code. On one site the entry displays correctly, on the other it doesn’t appear at all.

    {exp:channel:entries channel="XXX" url_title="{segment_3}" disable="member_data"}
        {title} ...etc…
    {/exp:channel:entries}

    I have the category url title in segment_2 (thus replacing ‘index’) and the entry url_title in segment_3.

    Troubleshooting
    Making a new template named as one of the category url titles, entry displays correctly.

    Have deleted all other code, no luck.

    Have created a new template group and copied the code into the index template, same problem.

    Have cleared cache and cookies everytime before checking changes.


    Any ideas?
    Thanks,
    K

  • #2 / Mar 01, 2011 9:49pm

    narration

    773 posts

    No idea, but have you tried setting dynamic=“no” in the entries parameters?

    Since you’re taking over the use of key segments, and don’t want EE making assumptions as to what they are for?

    Regards,
    Clive

  • #3 / Mar 01, 2011 10:10pm

    Krake

    72 posts

    No idea, but have you tried setting dynamic=“no” in the entries parameters?

    Just tried that, and it worked. However, it’s rather funny that this is only happening on one site…

    Thanks! You can close this right away.
    -K

  • #4 / Mar 01, 2011 10:22pm

    narration

    773 posts

    Well, I can’t close it - Support will have to.

    As to the difference between sites, my thinking was that your segment content might match an available entry on on one of the sites, and thus over-ride your coding there. It would all fit if that matched entry were blank.

    Regards,
    Clive

  • #5 / Mar 01, 2011 11:33pm

    Krake

    72 posts

    Hi Clive, I think you’re right on that matching entry. I do recall having used intros in stead of category descriptions to avoid having my client access categories but still let them modify the descriptions. Will find those entries and change their url titles.

    Thanks a lot for your help! I’d already spent hours troubleshooting. Now, I’ll call it a day.
    Cheers,
    K

  • #6 / Mar 01, 2011 11:38pm

    narration

    773 posts

    Good on you, K.

    I don’t think you’ll have to do anything with those entries unless you have another reason, as dynamic=“no” guarantees they won’t have effect wherever you properly use it, and that’s the safe way.

  • #7 / Mar 02, 2011 1:47pm

    Sue Crocker

    26054 posts

    Thanks for the assist, Narration.

    Krake - sounds like you have a plan - Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases