CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.dotnetnuke.getting_started Tags:
Item Type: NewsGroup Date Entered: 3/24/2004 12:15:40 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 6 Views: 27 Favorited: 0 Favorite
7 Items, 1 Pages 1 |< << Go >> >|
ckindel
Asp.Net User
RSS module showing HTML3/24/2004 12:15:40 AM

0

I'm building a test DNN site (2.0) and I want my RSS module to show my blog feed (www.kindel.com/blogs/charlie/rss.aspx). However DNN shows the full text of each blog entry with all the HTML tags showing. How can I fix this?
iwonder
Asp.Net User
Re: RSS module showing HTML3/24/2004 4:25:28 PM

0

ckindel,

I tried your link and it's saying the 'client is offline'. It's difficult to give the answer to your question without more info or being able to see what it is your are supplying, how you are using it (is it in a DNN module, which one), and what you want it to do.

Now, I use rss syndication a lot on my site, and basically when using straight rss or xml files, it's the transformation of the data file that allows custom formatting. Take a look at the XSL file examples on my site, which you can download, and play around with them.

If this your data is not in rss spec or xml format, then there is more work to do. Keep this post updated with what you're doing and try, and I'll come back to see if I can help.

iwonder
HandCoded/ Foundations
iwonder
Mission, KS - USA
ckindel
Asp.Net User
Re: RSS module showing HTML3/24/2004 11:08:51 PM

0

My cable modem connection was down today for some reason. It's back up now.

This RSS feed comes from my .Text site. There's nothing special about it (other than the contents of course <g>). What I want is for my blog entries to be summarized on the dnn site I am building.

Thanks.

-cek
iwonder
Asp.Net User
Re: RSS module showing HTML3/27/2004 7:23:26 PM

0

cek,

Ok, I've taken a look, and grabbed the file. I put it up on my site to test it out. Part of the issue can only be resolved by either creating a custom xsl transformation, or modifying the file's content, or creating another file with the data you really want to display.

I've got several examples of xsl files on my site available for download, as well as links to other resources you can research on the topic of xml, xsl, and rss. Taking out the HTML is not that difficult just a matter of specifying a flag to turn off output escaping, but if you want a kind of RSS file that contains this kind of structure:

<item>
<title>My Blog Info is Available</title>
<description>I'm releasing my blog entries for public view, please feel free to click on the title and view the whole entry</description>
<pubDate>03-Mar-2004 14:24:03</pubDate>
</item>

You would have to do some coding to get there, as the entries themselves in the file contain a lot of text in the description, including HTML. So, summarizing is not easily done with the format being generated. I accomplish this kind of thing by editing a file and linking to that instead. It's not clean, but it is a cheap way to go until you can get a handle on one of the utilities that generate rss in the fashion you want, or make changes to the code that generates this file, or find a suitable way to transform the info. XSL is a pretty good tool to use, and very handy, and might provide you with enough leverage to do it.

Cheers,

iwonder
iwonder
Mission, KS - USA
jdonnici
Asp.Net User
Re: RSS module showing HTML3/27/2004 11:37:59 PM

0

This actually sounds similar to something I'm trying to accomplish. I'm thinking of using .Text (or some other blog engine) for the "release notes" of some products. The idea is that they can be categorized by product, ordered, searched, etc. What I really like is the option of showing them in various ways -- online via a web site, through an aggregator, and within the app itself.

But for the app itself, I don't want to use a browser control. I'd rather use a listview to show the feed items and then a basic multiline textbox for the content/description of the selected item.

My concern is with how to get the "plain text" view of the item when the actual RSS is going to contain the various HTML tags that went into formatting it. In some cases, as with BR or P tags, I'd still want there to be the paragraph breaks.

Is there a clean way to get a plaintext representation via XSL/XSLT, or is regex the only way to clean it up?
ckindel
Asp.Net User
Re: RSS module showing HTML3/29/2004 12:05:23 AM

0

But I don't want "plain text". I want the full formatting. Just as .Text can display the blog postings, DNN should be able to as well. What this really calls for is a DNN .Text module. THere is another thread where this is being discussed. We'll see...

Thanks.
ckindel
Asp.Net User
Re: RSS module showing HTML3/29/2004 3:45:00 AM

0

As a temporarly solution I decided I could forego having the content of the blog items displayed. I was able to use an XML/XSLT module with the following XSLT file. In this case I restrict the # of blog entires that appear to 5. The title of my module is "Latest from Charlie's Blog".

<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" />
<xsl:template match="rss/channel">
<html>
<head>
<title><xsl:value-of select="title" /></title>
<style media="all" lang="en" type="text/css">
.ArticleTitle
{
font-size: 8pt;
font-weight: bold;
padding-left: 5px;
}
.ArticleHeader
{
font-size: 7pt;
padding-left: 5px;
}
</style>
</head>
<body>
<xsl:apply-templates select="item" />
</body>
</html>
</xsl:template>

<xsl:template match="item">
<xsl:if test="5 >= position()">
<div class="ArticleEntry">
<div class="ArticleTitle">
<a href ="{link}"><xsl:value-of select="title" /></a>
</div>
<div class="ArticleHeader">
<xsl:value-of select="pubDate" />
</div>
</div>
<br />
</xsl:if>
</xsl:template>
</xsl:stylesheet>

7 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Hacking RSS and Atom Authors: Leslie M. Orchard, Pages: 602, Published: 2005
Beginning DotNetNuke Skinning and Design Authors: Andrew Hay, Shaun Walker, Pages: 400, Published: 2007
Professional DotNetNuke 4: open source Web application framework for ASP.NET 2.0 Authors: Shaun Walker, Joe Brinkman, Scott McCulloch, Bruce Hopkins, Patrick Santry, Scott Willhite, Chris Paterra, Dan Caron, Pages: 517, Published: 2006
Content Syndication with RSS: Sharing Headlines and Information Using XML Authors: Ben Hammersley, Pages: 208, Published: 2003
Developing feeds with RSS and Atom Authors: Ben Hammersley, Pages: 253, Published: 2005

Web:
RSS FEED subscription page not showing - HTML / Text Module [Lead ... The page with the RSS Feed is not showing. So how shall I be able to subscribe to the module? I run DNN 4.9.0. Regards ...
discussion module showing html code - ASP.NET Forums I tried to get the discussion module up and running. ... But, then each < is converted into < so the code won't work as html would do. ...
RSS Workshop - a Tutorial RSS to HTML converter, but acts as a RSS 1.0 validator also. ... core content, field lengths, RSS 0.91 module structure and content, and Dublin Core module structure. .... And showing how to limit the number of headlines displayed: ...
Joomla! • View topic - RSS Feeds Showing HTML Code My RSS Feeds on the site I'm working on suddenly started showing code in ... A friend claims he doesn't see the error (HTML code instead of feed content). .... Installation und erste Schritte 1.0.x, Komponenten, Module, ...
Pingback Module for RSS 1.0/2.0 The following example shows an RSS item element including its Pingback ... in RSS http://foo.com/weblog/2003/01/10/pb_in_rss.html ...

DNN 3.x web.config file explained? - ng.asp-net-forum.dotnetnuke problem: dotnetnuke doesnt load, now shows blank white screen · how to display html correctly in rss module of dotnetnuke? ...
'CreateResourceBasedLiteralControl' is not a member of 'ASP ... After I moved the site to the target server, it does nothing but show me a blank page. ... news feed style sheet for rss module? problem in text/html module ...

Videos:
who is obaid karki ? anyway Obaid Karki An Outcast Kabbalist Spinoziste Pantheon Hexalingual Automath Former UAE Under Secretary Independant Street-Knowledge Talkshow Guru ...
Web Applications and the Ubiquitous Web Google TechTalks February 1, 2006 Dave Raggett Dave Raggett is currently a W3C Fellow from Canon, and W3C Activity Lead for Multimodal ...
Shia, Iran, Ali Sina, Robert Spencer & Murtaza Obaid Karki An Outcast Kabbalist Spinoziste Pantheon Hexalingual Automath Former UAE Under Secretary Independant Street-Knowledge Talkshow Guru ...
django: Web Development for Perfectionists with Deadlines Google TechTalks April 26, 2006 Jacob Kaplan-Moss ABSTRACT Django is one of the premier web frameworks for Python, and is often compared ...
Powered by YouTube - Overview of APIs and Tools Speaker: John Harding, YouTube YouTube's comprehensive set of APIs enable you to deeply integrate YouTube's features, content, and community ...






a question on dnn 2.1.2 site migration

dynamic content for text/html module question?

language problem

installation error: assembly version does not match db version

core question

object reference not set.... - try this!

godaddy domain question

system.nullreferenceexception error

inserting a script to control image using html module

problems with smtp

sharing member data with timetracker starter kit application for single signon

logout issues

newbie to dotnetnuke, a few questions

object reference not set to an instance of an object after what looks like successfull instal 3.0.12

create new parent portal: cry for help

dnn 3.0.7 - page link url problem ?

url keeps redirecting

does exist any irc servers for dotnetnuke comunities?

an error has occurred writing to the exception log

sql server management studio express ctp

too much white space???

dnn 2.1.2 displaying data

dnn 3.0.13 installation on xp pro woes.

3.1.0 installation error please help

what is the url's tabid for, and what could cause it to change?

virtual directory not being configured as an application in iis message

error when installing gallery module

bad install?

error with a specific page name (

pathtoolongexception with some modules

   
  Privacy | Contact Us
All Times Are GMT