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.

atom rss problems

August 27, 2007 6:28pm

Subscribe [2]
  • #1 / Aug 27, 2007 6:28pm

    Silencio

    46 posts

    I am having problems getting both atom and rss to work for my “events” weblog. When I use the code given in the install of ee it returns the message:

    Error
    The weblog specified in your RSS feed does not exist.

    I use the same code for my “news” weblog and it works fine. I know the weblog exists because it works fine on my homepage.

    Below is my code.

    {assign_variable:master_weblog_name="gkhs_events"}
    {assign_variable:atom_feed_location="site/events_atom"}
    
    {exp:rss:feed weblog="{master_weblog_name}"}
    
    <?xml version="1.0" encoding="{encoding}"?>
    <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{weblog_language}">
    
        <title type="text">{exp:xml_encode}{weblog_name}{/exp:xml_encode}</title>
        <subtitle type="text">{exp:xml_encode}{weblog_name}:{weblog_description}{/exp:xml_encode}</subtitle>
        <link rel="alternate" type="text/html" href="{weblog_url}" />
        <link rel="self" type="application/atom+xml" href="{path={atom_feed_location}}" />
        <updated>{gmt_edit_date format='%Y-%m-
T;%H:%i:&#xsZ;'}</updated>
        <rights>Copyright (c) {gmt_date format="%Y"}, {author}</rights>
        <generator uri="http://expressionengine.com/" version="{version}">ExpressionEngine</generator>
        <id>tag:{trimmed_url},{gmt_date format="%Y:%m:%d"}</id>
    
    {exp:weblog:entries weblog="{master_weblog_name}" show_future_entries="yes" orderby="date" sort="asc" limit="15" rdf="off" dynamic_start="on" disable="member_data|trackbacks"}
        <entry>
          <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
          <link rel="alternate" type="text/html" href="{url_title_path=site/index}" />
          <id>tag:{trimmed_url},{gmt_entry_date format="%Y"}:{relative_url}/{weblog_id}.{entry_id}</id>
          {gmt_entry_date format="%Y-%m-
T;%H:%i:&#xsZ;"}</published>
          <updated>{gmt_edit_date format='%Y-%m-
T;%H:%i:&#xsZ;'}</updated>
          <author>
                <name>{author}</name>
                <email>{email}</email>
                {if url}<uri>{url}</uri>{/if}
          </author>
    {categories}
          <category term="{exp:xml_encode}{category_name}{/exp:xml_encode}"
            scheme="{path=site/index}"
            label="{exp:xml_encode}{category_name}{/exp:xml_encode}" >{/categories}
          <content type="html"><![CDATA[
            {event_summary}
          ]]></content>
        </entry>
    {/exp:weblog:entries}
    
    </feed>
    
    {/exp:rss:feed}
  • #2 / Aug 27, 2007 8:22pm

    Sue Crocker

    26054 posts

    Do you actually have any entries that fit the criteria for the RSS feed?

    In other words, if you have a template with the exp:weblogs:entries tag in it, do you get results back?

  • #3 / Aug 27, 2007 9:04pm

    Silencio

    46 posts

    In other words, if you have a template with the exp:weblogs:entries tag in it, do you get results back?

    Yes, I get the correct results returned on my homepage using the same call:

    {exp:weblog:entries weblog="{master_weblog_name}" show_future_entries="yes" orderby="date" sort="asc" limit="15" rdf="off" dynamic_start="on" disable="member_data|trackbacks"}
  • #4 / Aug 27, 2007 9:34pm

    Sue Crocker

    26054 posts

    I don’t know if this is the problem or not—but try removing dynamic_start and see what happens.

  • #5 / Aug 27, 2007 10:55pm

    Lisa Wess

    20502 posts

    Do you have any entries in the past or are they all future-dated? If the latter, you’ll need show_future_entries in your {exp:rss:feed} tag as well.

  • #6 / Aug 28, 2007 12:45pm

    Silencio

    46 posts

    Do you have any entries in the past or are they all future-dated? If the latter, you’ll need show_future_entries in your {exp:rss:feed} tag as well.

    That was it. It works!

    Thanks Lisa and Sue.

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

ExpressionEngine News!

#eecms, #events, #releases