 |

SEScoops
User
Feb 12, 2007, 1:01 PM
Post #1 of 7
(489 views)
Shortcut
|
|
XML Image Tags
|
Can't Post
|
|
I'd like to add images to my RSS feed. The variable name for each of my articles' assigned images is $article.IMAGE2$ I would like to left-align the image as well. What would the XML tag be for this?
|
|
|  |
 |

SEScoops
User
Feb 12, 2007, 1:26 PM
Post #2 of 7
(488 views)
Shortcut
|
Inserting the following code gave me errors: <img src="$article.IMAGE2$">
|
|
|  |
 |

ross
Staff
/ Moderator

Feb 13, 2007, 3:24 PM
Post #3 of 7
(472 views)
Shortcut
|
Hi there Thanks for posting! When you are adding images to an article, they are actually going into your summary or content fields so to have them appear in your RSS you would either need to create a new field in your system specifically for them and have that placeholder put onto your RSS template, or just have the summary field appear. Does that make sense? Of the two options, adding the summary field would be easiest as all you need to do is open up your /articleLists/globalRSS.xml template and add the following line somewhere within the <link> tags: <description>$article.summary:htmlEncoded$</description> Give it a shot and let me know what you think . ----------------------------------------------------------- Cheers, Ross Fairbairn - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

SEScoops
User
Feb 13, 2007, 4:31 PM
Post #4 of 7
(467 views)
Shortcut
|
Ross, thanks for your help. Unfortunatley - pasting that code within the "<link>" tags did nothing. I paste this exact code: <description>$article.summary:htmlEncoded$</description> ?? The image's field name is " $article.IMAGE2$ " ...
(This post was edited by SEScoops on Feb 13, 2007, 4:33 PM)
|
|
|  |
 |

ChetW
Staff

Feb 14, 2007, 3:02 PM
Post #5 of 7
(455 views)
Shortcut
|
Hi SEScoops, Thanks for the follow-up! When you place the above code into your xml template you won't be placing it inside the <link> tag but on it's own line. For example let's assume that the <item> section of your RSS xml file looks like this: <item> <title>$article.title:textOnly:htmlEncoded$</title> <link>$published.articlePage.url$</link> <category>$category.name:textOnly:htmlEncoded$</category> </item> All you'd have to do is place the code that Ross mentioned below the category line, the end result would look like this: <item> <title>$article.title:textOnly:htmlEncoded$</title> <link>$published.articlePage.url$</link> <category>$category.name:textOnly:htmlEncoded$</category> <description>$article.summary:htmlEncoded$</description> </item> Notice how <description> has it's own line, give this a try SEScoops and if you have any other questions please feel free to ask. :) Cheers, Chet Woodside - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

SEScoops
User
Feb 15, 2007, 7:32 PM
Post #6 of 7
(446 views)
Shortcut
|
Chet, thank you for the help but still I am not able to get it working ... Originally, I had a <description>$article.articledescription:htmlEncoded$</description> in my template to display each article's "article description". When I added the code you suggested, <description>$article.summary:htmlEncoded$</description>, it did nothing. I tried changing the tag names, because I don't have a Field Label called "summary". The field label of the image I'm trying to insert is "IMAGE". It's "Displayed As / Stored as": List / Memo. I tried <description>$article.IMAGE:htmlEncoded$</description> and <IMAGE>$article.IMAGE:htmlEncoded$</IMAGE>. No go. My code looks like this: <item> <title>$article.title:textOnly:htmlEncoded$</title> <link>$published.articlePage.url$</link> <category>$category.name:textOnly:htmlEncoded$</category> <description>$article.articledescription:htmlEncoded$</description> <pubDate>$article.date:format(www, dd MMM yyyy HH:mm:ss)$ PST</pubDate> <guid isPermaLink="true">$published.articlePage.url$</guid> </item> What should it look like?
(This post was edited by SEScoops on Feb 15, 2007, 7:36 PM)
|
|
|  |
 |

ChetW
Staff

Feb 16, 2007, 2:41 PM
Post #7 of 7
(436 views)
Shortcut
|
Hi SEScoops, Thanks for the e-mail! I'm thinking that this one may be better handled through a support request with your ftp details, this way we can take a look at how you have things currently set-up. You can send us a support request using the link below: https://www.interactivetools.com/support/email_support.cgi How does this sound? I look forward to hearing back from you soon! Cheers, Chet Woodside - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
|