Hi to all,
I am currently re-building a website which doesnt use the default "content" box when creating a new page.
I have created a variety of TemplateVariables which are for specific content and one of those has the description of the element.
I would like to add the content from this TemplateVariable as the description for the RSS feed.
Question 1:
Is it possible to add a specific TV instead of [+summary+] or [+content+]
Question 2:
Is it possible to truncate the content e.g max. 255 characters and remove HTML tags from the TV’s output
I have used the tutorial shown on the Ditto subdomain -
Custom RSS Feed to create a chunk for the RSS output (rss_item), but havent been able to figure out how to get around my problem.
RSS Item Chunk
<item>
<title>[+rss_pagetitle+]</title>
<link>[(site_url)][~[+id+]~]</link>
<description>
<![CDATA[ <p>[+MYTVCONTENT+]</p> ]]>
</description>
<pubDate>[+rss_date+]</pubDate>
<guid isPermaLink="false">[(site_url)][~[+id+]~]</guid>
</item>
My Ditto Call:
[[Ditto? &parents=`15` &format=`rss` &summarize=`30` &total=`30` &dateSource=`pub_date` &showInMenuOnly=`0` &showPublishedOnly=`1` &sortBy=`createdon` &depth=`3` &hideFolders=`1` &tpl=`rss_item`]]
Would appreciate all help on this one, the site is almost re-built and will be going online in its new look and system shortly.
Cheers in advance for any help