Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsOpen RSS link in a new windowOpen RSS link in a new window
Previous
 
Next
New Post
7/18/2007 10:18 AM
 

Hi

Im using the standard News module and linking to a RSS feed on a radionstation. It looks fine but i would like to open each link in a new windows. I have specified a stylesheet since im dont know how to configure one.
Is it possible for anyone to tell me how i can open the link in a new window.

Best regards

Mitmit

 
New Post
7/18/2007 12:24 PM
 

Use a text editor and modify the default xsl changing this line:
    <strong><a href="{link}" target="_main"><xsl:value-of select="title"/></a></strong><br></br>

To this:
    <strong><a href="{link}" target="new"><xsl:value-of select="title"/></a></strong><br></br>

Save it to a filename of your choice, and upload it to your portal.  Then, use it as the transformation source. 

That should work for you.

 

 
New Post
7/18/2007 3:24 PM
 

Easy when someone pointing it out. Thank you for the help!

 
New Post
7/19/2007 9:12 AM
 

Hi There.

I already knew this and i'm using for a short text-based News-List with 5 entries grabbing from Yahoo.
These news are only a header and the description. When clicking on the headline...bingo: new window with the whole information.

BUT

I have also a more into deep going news-page with 10 entries and with pictures (!) grabbed from Google.
In these feeds you should disable the header as it seems that they are using any fancy html-stuff in it, so also this is easy.
But when you click into the news block itself this damned news is not opening in a new window.

How the hack can this be done?

Here what i'm using to test it out:

RSS: http://news.google.de/news?ned=de&topic=h&output=rss (Attention, it is in german, but this does not matter)

And my XLS-File:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"/>
<xsl:param name="TITLE"/>
<xsl:template match="rss">
  <xsl:for-each select="channel/item">
    <xsl:if test="position() &lt; 11">
      <xsl:value-of disable-output-escaping="yes" select="description"/>
    </xsl:if>
  </xsl:for-each>
</xsl:template>
<xsl:template match="description">
  <br>
    <xsl:value-of select="."/>
  </br>
</xsl:template>
</xsl:stylesheet>

Thanks in advance.....

 
New Post
7/19/2007 10:41 AM
 

Oh, very familiar with these Google feeds.  Problem is the description element contains so much HTML including hrefs that you really would have to parse the entire description and pull out the specific links you want to redirect to a new window.  That's more than a simple xsl transformation, kind of beyond the scope of this forum, I'm sorry to say.

Basically, you would need to take the description element apart and reformat it.  It is possible, but it would take some more work in xsl to accomplish, and I'm not really sure if it's worth the effort.  Here's why - newsfeed providers are notoriously protective of their news, which I understand, so, what happens is these news sources change frequently, and what you do to accomodate one specific provider has to be redone when they change their source provided.  That's why the specs are around to help give folks a standard to facilitate 'easy' sharing.  But with RSSv2.0 came more and more specialization and inclusion of html in the news source, which IMHO makes things much more troublesome.  However, the providers want more and more control over the presentation of their news, not just control over the news itself.  I guess that's to be expected, but it makes it difficult to use for content on another site, which is the real reason for taking those measures.  Most of the larger providers do let you use their content on your site, but they are enforcing presentation rules more and more and are stricter about attribution of the source.  Of course, it's easier to consume the news from your browser or standalone news reader which means you are using it directly, and not for content inclusion on another site.

I know this doesn't help exactly, but if you want to go into more detail shoot me an email. 

Cheers

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsOpen RSS link in a new windowOpen RSS link in a new window


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out