Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
RSS template - text wrap

 

 


broadsword
New User

Nov 28, 2006, 5:02 AM

Post #1 of 6 (1028 views)
Shortcut
RSS template - text wrap Can't Post

Want to wrap text around my thumbnail images in my RSS feed so that the formatting is the same as my main news summary pages.

I think it's a combination of - templateIf : $file.wrapText$ - but don't know what to do with it... tried from the examples given in the "Attributes" help section but can't get it to work.

Any help much appreciated.


ross
Staff / Moderator


Nov 29, 2006, 10:31 AM

Post #2 of 6 (1015 views)
Shortcut
Re: [broadsword] RSS template - text wrap [In reply to] Can't Post

Hi there.

Thanks for posting!

I tested a couple things out and it seemed to me that the default rss template I had going was actually wrapping nicely.

I am curious how your images were being aligned. Right, left, centre? Perhaps you could post up the template you are using for your RSS so I can test it out with my internal demos.

If you could also give me an idea of how your images are actually appearing on the rest of your site, that would help as well.

I look forward to hearing from you Smile
-----------------------------------------------------------
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: http://www.interactivetools.com/consulting/



broadsword
New User

Nov 29, 2006, 11:16 AM

Post #3 of 6 (1010 views)
Shortcut
Re: [ross] RSS template - text wrap [In reply to] Can't Post

Hi Ross,

Thanks for the response. The images are wrapped right for the previews:

http://www.crustybuttnews.com

Here's the AM2 rss feed:

feed://www.crustybuttnews.com/artman2/publish/rss.xml

Here's the old feed that I bought from AMScripts for AM1:

feed://www.crustybuttnews.com/rss.xml

Code for AM2 rss file below (I really don't know what I'm doing here):

<?xml version="1.0" encoding="windows-1252" ?>

<?xml-stylesheet href="http://www.crustybuttnews.com/rss.xsl" type="text/xsl" media="screen"?>
<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:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">

<channel>
<title>Crusty Butt News</title>
<link>http://www.crustybuttnews.com</link>
<description>The best news on Crusty Butts on the web! </description>
<language>en-us</language>
<atom:link rel="self" href="http://www.yoursite.com/rss/rss.xml" />
<lastBuildDate>$_lastUpdated$ PST</lastBuildDate>



<!-- template insert : $articleList$ -->
<!-- templatecell : articleRow -->

<item>
<dc:creator><![CDATA[$article.art_field1$]]></dc:creator>
<title><![CDATA[$article.title$ ]]></title>
<link >$published.articlePage.url$</link>
<pubDate>$article.date:format(date_only)$ EST</pubDate>
<description> <![CDATA[$article.summary$ ]]></description>
<category>$article.art_field1$</category>
<guid isPermaLink="false">$published.articlePage.url$</guid>


</item>


<!-- templateIf : $article.attachments$ ne "" -->
<div class="summary_attachments"> <b style="color: #666666;">Download attachment(s):</b> $article.attachments$

<!-- templatecell : article.attachments.row -->[ <a href="$file.webUrl$">$file.title$</a> ] <!-- /templatecell : article.attachments.row -->
</div>
<!-- /templateIf -->

<!-- templateIf : $article.externalLink$ ne "" -->[ <a href="$article.externalLink$">Visit&nbsp;Website</a> ] <!-- /templateIf -->

<!-- /templatecell : articleRow -->







<!-- templateIf : $articleList$ eq "" -->
<font class="text"><b>Sorry, no articles were found.</b></font><br>
<!-- /templateIf -->


<!-- templateCell : pageDefault.embeddedMedia -->

<!-- templateIf : $file.caption$ ne '' -->
<table border=0 cellspacing=2 cellpadding=0 width=$file.width$ align=$file.align$>
<tr><td><img src="$file.webUrl$" height="$file.height$" width="$file.width$" align="$file.align$" $file.wrapText$ border=0></td></tr>
<tr><td><font class="text10">$file.caption$</font></td></tr>
</table>
<!-- /templateIf -->
<!-- templateIf : $file.wrapText$ == "1" -->
<br clear="all">
<!-- /templateIf -->

<!-- templateIf : $file.caption$ eq '' -->
<!-- templateIf : $file.wrapText$ == "1" -->
<br clear="all">
<table border=0 cellspacing=2 cellpadding=0 width=$file.width$ align=$file.align$>
<tr><td><img src="$file.webUrl$" height="$file.height$" width="$file.width$" align="$file.align$" $file.wrapText$ border=0></td></tr>
</table>
<!-- /templateIf -->

<!-- /templateCell : pageDefault.embeddedMedia -->
<!-- templateIf : $articleList.prevPageNumber$ ne "" -->
<!-- /templateIf -->
<!-- templateIf : $articleList.prevPageNumber$ eq "" -->
<!-- /templateIf -->
<!-- templateIf : $articleList.nextPageNumber$ > $articleList.thisPageNumber$ -->

<!-- /templateIf -->
<!-- templateIf : $articleList.nextPageNumber$ <= $articleList.thisPageNumber$ -->
<!-- /templateIf -->



</channel>
</rss>

Thanks!


ross
Staff / Moderator


Nov 29, 2006, 6:33 PM

Post #4 of 6 (1002 views)
Shortcut
Re: [broadsword] RSS template - text wrap [In reply to] Can't Post

Hi there.

Thanks for posting your template!

I was testing it out internally and it's actually coming up with nice wrapping for me. I was curious if when you uploaded the images and had the screen where you can set alignment; did you check the "wrap text" box?

All the images I am using have that checked off. I was noticing too, that the link to your rss seems to have changed a little. Had you been working on things already?

Keep me up to date with how you are making out Smile.
-----------------------------------------------------------
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: http://www.interactivetools.com/consulting/



floodrod
User

Nov 30, 2006, 9:59 AM

Post #5 of 6 (983 views)
Shortcut
Re: [broadsword] RSS template - text wrap [In reply to] Can't Post

I got mine to wrap heres how..

I think RSS works with global.Default embeddedMedia rules

When I Open global.Default embeddedMedia, I see 2 mentions of wrap text. Ones on top, one on bottom. I simply change the value from "all" to "none" and it seems to have worked.

Before Changes they looked like this:

<!-- templateIf : $file.wrapText$ == "0" --><br clear="all"><!-- /templateIf -->

After Changes they looked like this:

<!-- templateIf : $file.wrapText$ == "0" --><br clear="none"><!-- /templateIf -->




By doing this, All images will be automatically wrapped by text, even in articlePages and Article Lists. For me, this is what I wanted anyways, because all articles previous to the AM2 upgrade lost their text wrap due to the new option added in the image upload mod. I dont see any reason I wouldn't want to wrap images site wide.

Hope this helped


broadsword
New User

Dec 1, 2006, 12:58 PM

Post #6 of 6 (963 views)
Shortcut
Re: [floodrod] RSS template - text wrap [In reply to] Can't Post

Thanks both.

While Ross hit the nail on the head ( I hadn't actually posted a new story since the uppgrade - RTFM dingbat!), I'll apply the changes from floodrod as suggested.

Thanks!