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.

Using comments, and RSS feeds

October 19, 2012 9:58pm

Subscribe [1]
  • #1 / Oct 19, 2012 9:58pm

    dhjones

    25 posts

    Hello,

    I have an RSS feed which isnt quite right, but the first issue is this error:

    XML Parsing Error: prefix not bound to a namespace
    Location: <a href="http://ee.domain.dev/rss/recipes">http://ee.domain.dev/rss/recipes</a>
    Line Number 1, Column 1:<ee:last_update>1350509193</ee:last_update>

    That line is

    <ee:last_update>1350509193</ee:last_update>

    This is a file of the type XML in a template group called RSS and the template name is recipes, giving me recipes.xml to edit.

    How do I make it so I can access the rss as domain.com/rss/recipes.xml as atm I can only access it as domain.com/rss/recipes


    —-

    Issue 2

    This is the code for the recipes.xml

    {exp:rss:feed channel="recipes" debug="yes" status="open"}
    <?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/"
        xmlns:atom="http://www.w3.org/2005/Atom">
    
        <channel>
        <atom:link href="http:" rel="self" type="application/rss+xml" >
        
        <title>Title</title>
        <link>{site_url}recipes</link>
        <description>YOUR DESCRIPTION</description>
        <dc:language>{channel_language}</dc:language>
        <dc:creator>[email protected]</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="{site_url}" >
        
    {exp:channel:entries channel="recipes" limit="10" dynamic_start="on" disable="member_data"}
        <item>
          <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
          <link>{site_url}recipes/{category_url_title}/{url_title}</link>
          <guid>{site_url}recipes/{category_url_title}/{url_title}#When:{gmt_entry_date format="%H:%i:00Z"}</guid>
          <description><![CDATA[{description}]]></description> 
          <dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:00%Q"}</dc:date>
        </item>
    {/exp:channel:entries}
        </channel>
    </rss>
    {/exp:rss:feed}

    However, the description field is not output, its blank, description is a field that is part of a specific recipe, (as in a content item inside the recipes template system.

    How do I make {description} pull in that field?

    Any general feedback on that code?


    Last issue; how do I add a comment form to the bottom of a content entry! This is probably really simple, but I cannot find a tutorial for this on EE2!

    The comment would appear inside this tag, so I want a form field when they are logged in, showing them they can reply to a comment, disqus style - but I dont want to use disqus!

    {exp:channel:entries channel="recipes" url_title="{segment_3}" limit="1"}
    Loads data just fine from content like {description}
    {/exp:channel:entries}

    The site is getting close to going live, and loads of work has been done, so I am excited to become a full member of the community! I have a few companies I consult for, considering EE now!

    Many thanks for reading!

  • #2 / Oct 22, 2012 5:32pm

    dhjones

    25 posts

    Hi,

    Anyone able to help?

    Please? Hehe


    Also what’s better to use in nivo slider? I need to make loads of them; channel images or matrix?

  • #3 / Nov 01, 2012 8:14pm

    dhjones

    25 posts

    I never got any replies to my questions, still stuck on them!

    I did manage to get channel images up and running and generating slideshows for me though, which rocks.

    Anyone able to help me with those questions though? Pretty please? 😊

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

ExpressionEngine News!

#eecms, #events, #releases