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:3304

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

RE: EasyCGI help? by Dr Joe
I'll let you know how it works out. I think I opened up about 6 tickets with them so far. ...
RE: EasyCGI help? by derpir
Hi Joe amazing to say the least! I will change host to PowerDNN as soon as possible, seems to me t...
RE: EasyCGI help? by Dr Joe
Amazing - I'm going through this exact same thing with EasyCGI! I managed to successfully instal...
Running the local host installation after building the application by saintX
My localhost installation of DNN was running blameless. After I oppened the application with VWD it ...
RE: quick question by derpir
Hello Is it possible to buy two skins and combine them? for example put one skins visual attributes...
RE: Environment Variables by leesykes
Thanks for the info,
RE: How can i edit any module from front end by sanju_k1421
ok if i added an text html . now i want to fill into that have to log in ,but i want that an...
Module not working when logged off. by t.ramya85
Hi friends,I have created two modules which interact with each other and i have kept one module to b...
RE: Environment Variables by fandnet
There are many ways to use variables like what I was trying to use...But here is how I did it.DotNet...
RE: OpenForce '08 by mgordon
It was truly a great time.  I really feel this year was much better than last year.  I hope to ge th...
Environment Variables by fandnet
I am creating a simple module that registered users can use to send an email invitation to people wh...
RE: How can i edit any module from front end by leesykes
I'm not sure that I follow, could you provide an example?
RE: Development of modules by leesykes
Hello,Glad you find them useful, at the moment there are not any plans to go into Module Development...
RE: SQL Server 2008 Documents Module DotNetNuke by leesykes
Hello,Thanks for the tip. Yes both connection strings are in correctly and the user has full permiss...
RE: Now, portal creation problem by jncraig
Since you have other issues with installing modules, etc. I believe that you are correct that it's a...
RE: How do I display the current time by jncraig
The [CURRENTDATE] skin object has a DateFormat attribute. The examples give MMMM dd, yyyy as a typi...
RE: Now, portal creation problem by SupaHoopsa
Posted By jncraig on 18 Nov 2008 8:54 AMIf there are other errors related to the database, I would s...
RE: SQL Server 2008 Documents Module DotNetNuke by MobileNow
Make sure that both of the connection strings are the same in the web.config file. Also make sure t...
RE: Now, portal creation problem by jncraig
If there are other errors related to the database, I would start by looking there.  This could be so...
Un-installing SQL Server 2005 by leesykes
I'm in the process of un-installing SQL Server 2005 and while doing this it informs me that Full Tex...
AppTheory
RSS Feeds