Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  XSL for News Feeds (RSS) Module
Previous Previous
 
Next Next
New Post 8/8/2008 10:12 AM
User is offline heindy
11 posts
10th Ranked


XSL for News Feeds (RSS) Module 

Hi all,

I am having a problem with displaying my RSS Module. In my RSS Module I used the rss feed from an Active Forum in my website and it will display 3 new recent posts in a specific forum group.

My problem is that with the current WYSIWYG editor that I have (CuteSoft Editor) I can put in HTML tags such as <table> tag and the RSS Module displays the first 100 characters for each topic. Because of the <table> tag not closed properly the contents and modules below this RSS Module are being displayed inside this RSS Module which broke the website design.

I have been looking for a way to edit the XSL that styles the RSS feed so that it would strip HTML tag in the description. Below is the code that I am using just to display title, date and first 100 characters:

<?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">
  <!-- Do not show channel image -->
  <xsl:for-each select="channel/item[ position() &lt; 4] ">
    <div id="bb_rss_news_items">
      <div id="bb_title"><strong><a href="{link}"><xsl:value-of select="title"/></a></strong></div><div id="bb_date"><em><xsl:value-of select="pubDate"/></em></div>
      <!-- only display markup for description if it's present -->
      <div id="bb_description"><xsl:value-of disable-output-escaping="yes" select="substring(description,1,100)"/><br /><a href="{link}">More...</a></div>
    </div>
  </xsl:for-each>
</xsl:template>

<xsl:template match="description"> 
    <xsl:value-of select="."/>    *
  <br />
</xsl:template>

</xsl:stylesheet>

If you guys have any input or anything that can help me, I'd greatly appreciate it.

Thank you.

Heindy

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  XSL for News Feeds (RSS) Module
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Easily Build DNN Solutions with XMod
XMod makes it easy to build news articles, house listings, custom feedback forms, product reviews and much more - without programming
www.DNNDev.com
Software Development and Integration with DNN
HNP Solutions focuses on the pragmatic use of technology and process to meet an organization's business objectives. HNP Solutions employs seasoned Enterprise and Solution Architects, Delivery Managers and QA & Business Leads. Our capabilities range from project assessments & recommendations, design & code reviews, to full program implementations. We also work with organizations in need of senior staff augmentation purposes in the areas of Enterprise and Solution architecture.
www.hnpsolutions.com
Alki Homes - Seattle, WA
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP