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?