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.

Duplicate URL titles across two channels; wrong entry being shown in template

October 07, 2013 11:37am

Subscribe [1]
  • #1 / Oct 07, 2013 11:37am

    springworks

    4 posts

    I am developing a site that uses multiple channels. By necessity, there are a few entries in different channels that share the same URL title. So, for example, I have the following situation:

    channel_1 article
    URL_title: my-url-title

    channel_2 article
    URL_title: my-url-title

    When I include a channel:entries tag in one template and specify channel=“channel_2” in the tag, the template renders with the article from channel_1, which I can verify by outputting the entry_id of the article to test.

    I have tried setting the URL for each channel in the path settings to the respective templates, but the wrong article is still being returned. What is going on? And how can I make sure that the correct article is output to the correct template?

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

ExpressionEngine News!

#eecms, #events, #releases