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 not showing future dates

August 31, 2010 4:53pm

Subscribe [5]
  • #1 / Aug 31, 2010 4:53pm

    wgmilleriiig

    6 posts

    Our RSS feed only shows dates in the past - how can I see future dates as well?  Code snippet below - note I’m using show_future_entries in the {entries} area… Help appreciated.

    {assign_variable:master_weblog_name="calendar"}
    {assign_variable:master_weblog_status="OPEN"}
    {assign_variable:master_rss_uri="http://ee.bluefirex.net/index.php/site/rss_2.0/"}
    
    {exp:rss:feed weblog="{master_weblog_name}" status="{master_weblog_status}"}
    <?xml version="1.0" encoding="{encoding}"?>
    <rss version="2.0"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:atom="http://www.w3.org/2005/Atom">
        <channel>
        <title>{exp:xml_encode}{weblog_name}{/exp:xml_encode}</title>
        <link>{weblog_url}</link>
        <description>{weblog_description}</description>
        <dc:language>{weblog_language}</dc:language>
        <dc:creator>{email}</dc:creator>
        <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
        {gmt_date format="%D, %d %M %Y %H:%i:%s %T"}</pubDate>
        <atom:link href="{master_rss_uri}" rel="self" type="application/rss+xml" >   
    {exp:weblog:entries weblog="{master_weblog_name}" limit="1000" rdf="off" dynamic_start="yes" disable="member_data|trackbacks" orderby="date" sort="desc"  show_future_entries="yes" status="{master_weblog_status}"}
        <item>
          <title>{exp:xml_encode protect_entities="yes"}{title}{/exp:xml_encode}</title>
          <link>{title_permalink=site/index}</link>
          <guid isPermaLink="false">{title_permalink="site/index"}#id:{entry_id}#date:{gmt_entry_date format="%H:%i"}</guid>
          <description><![CDATA[{summary}{body}]]></description>
          {categories}<category>{exp:xml_encode protect_entities="yes"}{category_name}{/exp:xml_encode}</category>
          {/categories}
          {gmt_entry_date format="%D, %d %M %Y %H:%i %T"}</pubDate>
        </item>
    {/exp:weblog:entries}
        </channel>
    </rss>
    {/exp:rss:feed}
  • #2 / Sep 01, 2010 3:36am

    John Henry Donovan

    12339 posts

    wgmilleriiig,


    What version and build of EE are you using?
    Have you got a link to your RSS feed?

    Can you create a blank weblog template and just add the following and nothing else please?

    <ul>
    {exp:weblog:entries weblog="calendar" orderby="date" sort="desc" show_future_entries="yes" status="not closed" dynamic="off"}
       <li>{title}:{entry_date format="%D, %d %M %Y %H:%i %T"}</li>
    {/exp:weblog:entries}
    </ul>

    Do entries in the future appear here for you?

  • #3 / Sep 01, 2010 4:26am

    silenz

    1651 posts

    {exp:rss:feed} has also a show_future_entries=“yes” parameter…

  • #4 / Sep 01, 2010 11:32am

    Ingmar

    29245 posts

    Does that help, wgmilleriiig?

  • #5 / Sep 01, 2010 1:13pm

    wgmilleriiig

    6 posts

    It does help a bit - I’m using ExpressionEngine v 1.6.9.
    Your sample code is at http://www.austinwaldorf.org/index.php/site/rsstest/ - and it does show some things in the future, though I can’t see significant difference in the code.  I changed this line to “not open”:
    {assign_variable:master_weblog_status="not open"}
    Our calendar is at http://www.austinwaldorf.org/index.php/calendar/category/all_events/ - there are many future dates.  Why does your code snippet only show the next few, and what other changes do I need to make (my past-only feed is at http://www.austinwaldorf.org/index.php/calendar/rss_2.0/) ?
    Thanks!!

  • #6 / Sep 01, 2010 5:59pm

    Sue Crocker

    26054 posts

    The sample code that John had you use was status=“not closed”? That’s different from not open.

    show_future_entries=“yes” - don’t forget to add that too.

  • #7 / Sep 01, 2010 6:12pm

    wgmilleriiig

    6 posts

    This is very helpful.  Feed now shows all future dates.
    Last question: Can {entries} be limited to show things one month out (and before)?

  • #8 / Sep 02, 2010 3:34am

    John Henry Donovan

    12339 posts

    wgmilleriiig,

    Do you mean like show the what’s coming in the coming month?

    Take a look at the start_on= maybe

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

ExpressionEngine News!

#eecms, #events, #releases