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.

RSS feed segment problem

February 15, 2012 11:11pm

Subscribe [3]
  • #1 / Feb 15, 2012 11:11pm

    PhireGuys

    525 posts

    I’m having the strangest problem with a RSS feed that uses a segment that searches a field within the channel.

    I have a url like this: http://www.mysite.com/rss/news_events/

    I can add in parameters via the URL to filter my feed.

    For example: http://www.mysite.com/rss/news_events/News/
    or http://www.mysite.com/rss/news_events/Events/
    or http://www.mysite.com/rss/news_events/all/

    I’m taking the segment_3 and putting it into my channel:entries like this:

    {exp:channel:entries channel="{master_channel_name}" search:ne_type="{if segment_3 != "all"}{segment_3}{/if}" sticky="no" limit="10" dynamic_start="on" orderby="date" disable="member_data|pagination"}

    Everything is working fine, I’m using this for all types of feeds not just this one.  The only problem is if I use the word News I don’t get my news items for this feed.  If I type in New I end up getting my news items.

    URL that should work:
    http://www.mysite.com/rss/news_events/News/

    URL that works but shouldn’t:
    http://www.mysite.com/rss/news_events/New/

    If you look at the code above, I’m searching ne_type for the segment_3.  In ne_type, it is either ‘Events’ or ‘News’.  There is no ‘New’ value for ne_type as an option at all.

    Outside of this RSS feed, in normal web pages I can put ‘News’ into search:ne_type and pull up only those entries. We use the same code for other areas of the site without a problem.

    Is this a bug or am I overlooking something?  Any special restriction on the word ‘News’ in an RSS template?

     

  • #2 / Feb 16, 2012 2:59pm

    Barrel

    92 posts

    Hmmm, that’s strange.  Could you try adding:

    dynamic="off"

    ?

  • #3 / Feb 17, 2012 10:43am

    Shane Eckert

    7174 posts

    Hello PhireGuys,

    I am sorry to hear you are running into this problem.

    If Barrel’s suggestion does not work can you also check something?

    Can you make sure that the same category url is not being used on multiple categories in different category groups?

    Please let me know what you find.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases