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.

how can I have inside the atom and rss a space after each article to show Tags and Releted Posts?

June 01, 2011 11:51am

Subscribe [3]
  • #1 / Jun 01, 2011 11:51am

    zupi

    283 posts

    how can I have inside the atom and rss template a space after each article to show Tags and Releted Posts?

    how can I do it? I want to show the tags of each post and below I want to show 5 releted posts

    regards,
    allan

  • #2 / Jun 02, 2011 5:55am

    John Henry Donovan

    12339 posts

    hi allan,

    You would simply add your tag code and related entries code to the RSS template like any other template

    I would probably add it inside description though as there is no RSS format for tags or related items to the best of my knowledge

    Does that help?

  • #3 / Jun 06, 2011 8:11pm

    zupi

    283 posts

    I’m trying but it’s not working.

    check out:

    {assign_variable:master_weblog_name="zupi"}
    {assign_variable:atom_feed_location="site_zupi/atom"}
    
    {exp:rss:feed weblog="{master_weblog_name}"}
    
    <?xml version="1.0" encoding="{encoding}"?>
    <feed >
    
        <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-%dT%H:%i:%sZ'}</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}" limit="15" category="29|18|19|20|21|25|24|16|17|23|41" 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_zupi/index}" />
          <id>tag:{trimmed_url},{gmt_entry_date format="%Y"}:{relative_url}/{weblog_id}.{entry_id}</id>
          {gmt_entry_date format="%Y-%m-%dT%H:%i:%sZ"}</published>
          <updated>{gmt_edit_date format='%Y-%m-%dT%H:%i:%sZ'}</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_zupi/index}"
            label="{exp:xml_encode}{category_name}{/exp:xml_encode}" >{/categories}
          <content type="html"><![CDATA[
            {body} {extended}
          ]]></content>
        </entry>
    
    
    {/exp:weblog:entries}
    
    {exp:tag:tags entry_id="{entry_id}" backspace="2" orderby="clicks" sort="desc"}
    <a href="http://{path=%27site_zupi/tag%27}{websafe_tag}" title="{tag}">{tag}</a>
    {/exp:tag:tags} 
    
    </feed>
    
    {/exp:rss:feed}

    the last part exp:tag - it should show the tags, but it’s not.

    http://zupi.com.br/index.php/site_zupi/atom/

  • #4 / Jun 07, 2011 8:25am

    Sue Crocker

    26054 posts

    Allan, have you asked over on the Solspace forum? I don’t use this module, but over there they’re familiar with its ins and outs.

  • #5 / Jun 07, 2011 6:18pm

    zupi

    283 posts

    I’ll try,
    thanks

  • #6 / Jun 08, 2011 1:22pm

    Kevin Smith

    4784 posts

    Sounds good, Allan. Let us know if we can be of help again.

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

ExpressionEngine News!

#eecms, #events, #releases