PDA

View Full Version : How to modify RSS/XML latest links


keepone
07-08-2008, 01:10 PM
Hello,
i would like to modify RSS/XML latests links.
What do I modify to link xml website Title to the category which the website belongs to ?

thanks a lot

David
07-08-2008, 03:54 PM
Hi, I am going to move this to support rather than presales.
I am not sure I follow what you are asking. Can you try to elaborate?

James
07-08-2008, 04:18 PM
look at rss.php and rss2.tpl that should point you in the right direction

keepone
07-08-2008, 08:12 PM
Content visible to registered users only.

xml on latest links is built to that way :
Title of the website which link to the website
Description

I have already modify it to have :
Title of the website which link to my directory
Description

I would like to have this :
Title of the website which link to the category the website belongs to
Description

James, I already look to rss and rss2 but what is the variable or syntax to modify ? and how ?

thanks

keepone
07-09-2008, 01:30 PM
help

is there someone to help me ?

keepone
07-14-2008, 11:12 AM
bump bump, does someone read this forum ?

keepone
07-16-2008, 05:37 PM
I just found someone to help me ! Myself ..... :cool:

I change my way to link Title of the site --> details page

It goes like this :

<?xml version="1.0" encoding="UTF-8"?>
{strip}<rss version="2.0">
<channel>
<title>{$smarty.const.DIRECTORY_TITLE}{$title}</title>
<link>{$url}</link>
<description>{$smarty.const.SITE_DESC} {$description}</description>
{foreach from=$links item=link}
<item>
<title>{$link.TITLE}</title>
<link>{$url}{$smarty.const.DOC_ROOT}detail/link-{$link.ID}.html</link>
{if $link.DESCRIPTION}
<description>{$link.DESCRIPTION}</description>
{/if}
<pubDate>{$link.DATE_ADDED|date_format:"%a, %d %b %Y %H:%M:%S GMT"}</pubDate>
</item>
{/foreach}
</channel>
</rss>
{/strip}

have a nice day