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.

Calendar RSS feed loads empty??

September 15, 2009 12:42pm

Subscribe [4]
  • #1 / Sep 15, 2009 12:42pm

    Doy

    38 posts

    My calendar rss feed is located here:

    http://www.richmondhillvisit.com/index.php/calendar/rss_calendar

    Here’s the code:

    {assign_variable:master_weblog_name="calendar"}
    {exp:rss:feed weblog="{master_weblog_name}"}
    
    <?xml version="1.0" encoding="{encoding}"?>
    <rss version="2.0"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
        xmlns:admin="http://webns.net/mvcb/"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:content="http://purl.org/rss/1.0/modules/content/">
    
        <channel>
        
        <title>{exp:xml_encode}{weblog_name}{/exp:xml_encode}</title>
        <link>{site_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>
        <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        <admin:generatorAgent rdf:resource="http://expressionengine.com/" >
        
    {exp:weblog:entries weblog="{master_weblog_name}" rdf="off" dynamic_start="on" disable="member_data|trackbacks" show_future_entries="yes"}
        <item>
          <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
          <link>{title_permalink=calendar/detail}</link>
          <guid>{title_permalink=calendar/detail}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
          <description>{exp:xml_encode}{event-date}{event-info}{/exp:xml_encode}</description>
          <dc:subject>{exp:xml_encode}{categories backspace="1"}{category_name}, {/categories}{/exp:xml_encode}</dc:subject>
          <dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        </item>
    {/exp:weblog:entries}
        
        </channel>
    </rss>
    
    {/exp:rss:feed}

    I’ve checked this every way I know how and the feed just won’t show any entries…always says it’s empty.

    Is there a setting I’m missing?

  • #2 / Sep 15, 2009 3:44pm

    Ingmar

    29245 posts

    You need to make sure your exp:weblog:entries tag actually shows some entries. Are you using custom statuses, perhaps? Expired entries? Made sure the weblog short names / variables are all correct?

    Also, what version and build of EE are you on?

  • #3 / Sep 15, 2009 4:15pm

    Doy

    38 posts

    I see now that in the events templates, I’m using the

    {exp:weblog:calendar}

    tags.

    Can I still create the feed from that if I simply change the “entries” to “calendar”?

  • #4 / Sep 15, 2009 4:20pm

    Doy

    38 posts

    yeah, that wasn’t it. everything’s right…I don’t understand it!

  • #5 / Sep 15, 2009 4:21pm

    Ingmar

    29245 posts

    I don’t understand. The RSS feed is built from a regular weblog, in your case “calendar”. Make sure that weblog exists, and has the content you expect it to.

  • #6 / Sep 15, 2009 4:25pm

    Doy

    38 posts

    http://www.richmondhillvisit.com/index.php/calendar

    the content is there, but it’s not showing up in rss!! AARRRGGHH!

  • #7 / Sep 15, 2009 4:34pm

    Ingmar

    29245 posts

    What do you’ve got at this URL? “Calendar” is a template group? Can you show us the exp:weblog tag from this template? To get back to troubleshoointg: take an {exp:weblog:entries} tag that displays the articles you want, and out that in your RSS template.

  • #8 / Sep 15, 2009 4:37pm

    Doy

    38 posts

    This is the code for the main calendar:

    {embed=site_includes/header_noflash}
    
    <div id="content"><!--content-->
    
    <h1 class="titleCenter">Events in Richmond Hill, Georgia</h1>
            
     {exp:weblog:calendar switch="calendarToday|calendarCell" weblog="calendar" show_future_entries="yes"}
    
    <table class="calendarBG">
    <tr class="calendarHeader">
    <th><div class="calendarMonthLinks"><a href="http://{previous_path=calendar}"><<</a></div></th>
    <th colspan="5">{date format="%F %Y"}</th>
    <th><div class="calendarMonthLinks"><a href="http://{next_path=calendar}class=calendarMonthLinks">>></a></div></th>
    </tr>
    <tr>
    {calendar_heading}
    <td class="calendarDayHeading">{lang:weekday_abrev}</td>
    {/calendar_heading}
    </tr>
    
    {calendar_rows }
    {row_start}<tr>{/row_start}
    
    {if entries}
    <td class='{switch}' align='left'>
    <a href="http://{day_path=calendar/archives}">{day_number}</a>
    <ul>
    {entries}
    <li><a href="http://{title_permalink=calendar/detail}">{title}</a></li>
    {/entries}
    </ul>
    </td>
    {/if}
    
    {if not_entries}
    <td class='{switch}' align='center'>{day_number}</td>
    {/if}
    
    {if blank}
    <td class='calendarBlank'>{day_number}</td>
    {/if}
    
    {row_end}</tr>{/row_end}
    {/calendar_rows}
    </table>
    {/exp:weblog:calendar}
    
    {embed=site_includes/footer}
  • #9 / Sep 15, 2009 4:42pm

    Ingmar

    29245 posts

    What happens when you put

    {exp:weblog:entries weblog="calendar" show_future_entries="yes"}
    {title}
    {/exp:weblog:entries}

    in a weblog of its own? as I’ve said, you need to come up with the correct weblog tag, once that works you simply put it into your RSS template.

  • #10 / Sep 15, 2009 4:45pm

    Doy

    38 posts

    I double-checked, to be sure, but “calendar” is the name of the template group and the weblog.

    That’s why I can’t figure out why it isn’t working…everything seems to be right.

  • #11 / Sep 15, 2009 4:47pm

    Ingmar

    29245 posts

    Have you, in fact, put this into a template of its own? Can you link to it?

    {exp:weblog:entries weblog="calendar" show_future_entries="yes" show_expired="yes" status="not Closed"}
    {title}
    {/exp:weblog:entries}
  • #12 / Sep 15, 2009 4:55pm

    Doy

    38 posts

  • #13 / Sep 15, 2009 4:57pm

    Ingmar

    29245 posts

    This is a bit more than just the weblog tag, but fine. Now take that tag and replace the one in your RSS template with it.

  • #14 / Sep 15, 2009 5:03pm

    Doy

    38 posts

    did that.

    no dice.

    this is amazing.

  • #15 / Sep 15, 2009 5:16pm

    Doy

    38 posts

    Interesting…I put the businesses site name in there (because it’s actually working in the businesses section), and it didn’t work either.

    Could it be a setting in my template group?

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

ExpressionEngine News!

#eecms, #events, #releases