if you use a construction like this:

summary = "<%txt_summary%>"

your asp code will break as soon as the text element contains more
than one line, which is the case if you use formatted text.


You could create a second project variant for the RSS feed and tell
this variant to convert all text elements using a certain
ConvertTable.txt. See the HtmlConvertTable.txt in your RedDot server's
ASP folder. Just convert all tags to "empty string" and leave out the
active template code here.


Kind regards,
Stefan



On 15 Apr., 17:01, maiott <[email protected]> wrote:
> I have on the 3rd last hurdle in getting my RSS feed working.
> I have read through the post on RSS on this site and although I can
> get it working the feed doesn't validate because of where I am getting
> the txt_summary from, the acutal press release.
> It has <p></p> tags in it and a few special characters that need to be
> stripped out or converted before being set into the feed.
>
> Below is the code I have, but can not get the asp code to execute
> inside the rangList.
>
> Any suggestions welcome.  I have spent most of the morning and
> afternoon on this.
>
> Cheers,
>
> <!-- first item -->
>
> <!IoRangeList>
> <item rdf:about="http://solihulltest<%lst_items%>">
>         <title><%hdl_hedline%></title>
>         <link>http://solihulltest<%lst_items%></link>
> <!IoRangePreExecute>
> <%
> dim summary, summary1, summary2
> summary = "<%txt_summary%>"
> if InStr(summary, "<p>") > 0 then
>     summary1 = Replace(summary, "<p>","")
>     summary2 = Replace(summary1, "</p>","")
> else
>     summary2 = summary
> end if
> %>
> <!/IoRangePreExecute>
>
>      <description><!IoRangePreExecute><% response.write(summary2)%><!/
> IoRangePreExecute></description>
>         <dc:creator>Solihull Communications [email protected]</
> dc:creator>
>         <dc:date>10-07-2006</dc:date>
>         <esd:subjectCategory>
>             <rdf:Bag>
>                 <rdf:li>
>                     <lgcl:Planning>
>                         <rdf:value>Planning</rdf:value>
>                     </lgcl:Planning>
>                 </rdf:li>
>             </rdf:Bag>
>         </esd:subjectCategory>
>     </item>
> <!/IoRangeList>
>     <!-- end of first item -->
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/RedDot-CMS-Users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to