You need to Register for free and Login to post a message in the forum.

Forum

Subject: Setting up the RSS News Feed XSL Stylesheet
Prev Next
You are not authorized to post a reply.

Author Messages
Sh@wn
Nuke Newbie
Nuke Newbie
Posts:1

26 Mar 2008 4:25 PM  
Hi everyone,

I have two problem in the RSS_MainTitle_Images_Date_Formatted.xsl file that I download in:

http://www.dnncreative.com/Portals/0/tutorials/RSS/RSS_MainTitle_Images_Date_Formatted.zip

1) I'd like that every links open a new page (target="_blank");

2) Where I put this string for limiting the number of News Items displayed?



Any help is appreciated.
Thanks.
Marco

Www.Informatori.Info
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3351

27 Mar 2008 7:17 AM  
Hello,

1) is explained in Setting up the RSS News Feed XSL Stylesheet
so, for example in that stylesheet look at this line of code:

(NOTE: in these examples I have added spaces before and after the < and > so that they display in the forum)

 < a href="{$ilink}" title="{$idesc}">< /a >

and add in

 < a href="{$ilink}" target="_new" title="{$idesc}">< /a >





2) I have not tested this code, but from looking at the date xsl file and the limit number of xsl file:

This is the code to limit number of items to 5

 < xsl:if test="position() < 6" >

    < br >< /br >
    < !-- to open links in a new window, change target="_main" to target="_new" -- >
    < strong >< a href="{link}" target="_main" >< xsl:value-of select="title"/ >< /a >< /strong >
    < br >
        < xsl:value-of select="pubDate"/ >
    < /br >

    < !-- only display markup for description if it's present -- >
    < !-- < xsl:value-of disable-output-escaping="yes" select="description"/ > -- >
    < br >< /br >
  < /xsl:if >


combining it with the date formatted.xsl I would try:

< div class="head" >
< xsl:if test="position() < 6" >
 < xsl:if test="$image" >
    < a href="{$ilink}" title="{$idesc}" >< xsl:value-of select="ilink" / >< /a >
    < img src="{$image}" height="{$ihigh}" width="{$iwide}" style="float: left; margin: 2px; border: 0px;"/ >
 < /xsl:if >
 < font size="-2" >< xsl:value-of select="description"/ >< br/ >
     < a href="{$link}" >< xsl:value-of select="title" / >< /a >< br/ >
 < xsl:value-of select="webMaster"/ >< br/ >
 < xsl:value-of select="copyright"/ >< /font >
 < hr/ >
< /xsl:if>
< /div >




Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
You are not authorized to post a reply.
Forums > Users Lounge > Everything Else > Setting up the RSS News Feed XSL Stylesheet



ActiveForums 3.7

Latest Forum Posts

Yahoo Answers by cdtguru
Hey, i was wondering if anyone knew of a module that would create a similar system to Yahoo Answers...
(catalook) Itempane changes on product pages ?? by Gaz35
Hi , hi , I don’t know if you can help me , here is the site in question http...
RE: Virtual Pc 2007 help by jeff@zina.com
You need to get the Virtual PC's network set up.  Might check the Virtual PC news group: http://www...
DNNCreative Just Keeps Getting Better by jeff@zina.com
Kudos on issue 39, the article on importing large quantities of data was both timely for me and spot...
RE: Videos by clippy
Hello from France My question is about the videos for beginners, and specially n° 3; I'm working...
skinning trouble by derpir
HelloI have uploaded a skin to my DNN-website, but I want to make som changes. I have made some chan...
RE: Column width in UDT by VickySwift
In case anyone else is looking for the answer to this, I have been able to add the headers back in b...
RE: search not working by jncraig
Did you either reindex the site to turn on the scheduled task to do it?
RE: Template Issue by jncraig
No, you need to install your custom modules before you use the template.
RE: error message in registration page by jncraig
I'm not sure that you can avoid them, short of rewriting the module.You might want to investigate Dy...
Template Issue by Bobbyjosephg
Hi,   Today I have come up with a problem with templates.I was successful in exporting a template an...
RE: search not working by sanju_k1421
I checked     host==>admin search  page   that is set both limits min //max  page     still i m n...
RE: error message in registration page by coder247
but how do I avoid the error messages provided by default in dnn?
RE: Style sheet does nothing by andorz
Oh. I was told to do that in my thread at the dotnetnuke.com forum. http://www.dotnetnuke.com/Commun...
RE: Videos by clippy
Thank you to answer so quickly. It's really kind from you. I appreciate
RE: Simple subscribe newsletter module by jncraig
I seem to recall that DataSprings has an "Opt In" module. I haven't used it, though.
RE: Videos by jncraig
No, you can view them in any order.
RE: Skim Question by tlsadler
Wow! Went to Snowcovered and the 50% off Promo more then paid for itself. I actually wound up buying...
Videos by clippy
Hello from FranceJust a little questionIs there any order to respect to look the videos ("issues"). ...
RE: Skim Question by tlsadler
Thank you very much. I've followed many of your posts and will check it out. I had thought about get...
AppTheory
RSS Feeds