p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 (http://p2p.wrox.com/forumdisplay.php?f=252)
-   -   Extend CMS: How to create rss in Default page? (http://p2p.wrox.com/showthread.php?t=56755)

thuyvncr April 16th, 2007 11:34 PM

Extend CMS: How to create rss in Default page?
 
I don't want to use the SiteMenu control but want to create a rss on the Default page. I can do this using XML but not the SQL database. I prefer to use the FCKEditor, much more flexible and nicer layout.

How can you create a rss on Default page that link to the article in ContentDetail pages in Database and don't have to use the SiteMenu control? When user clicks on the news link on the frontpage, they go straight to the article?

Thank you so much.


Imar April 17th, 2007 01:14 AM

Hi there,

I am not sure I understand what you mean with "a RSS on Default page". Since RSS is XML, you can't display it on the homepage as is.

Maybe you want to transform an external RSS in a user readable form? In that case, take a look here:

http://blogs.msdn.com/dmitryr/archiv...26/561200.aspx

Otherwise, can you please explain in much more detail what you want?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.

thuyvncr April 22nd, 2007 09:32 PM

Hi Imar

Thank you so much for taking my "call"!! :)

What I mean is very simple, I want to create a link to the Detail Article in the front page just like CNN news page. When user click that link, the page shows the article.
When I create new article in the database, they automatically shown the link in the front page. I can do this in XML by use <hyperlink> to the database but don't know how to create a direct link from the Database in SQl.

Thanks


thuyvncr April 22nd, 2007 09:35 PM

One more thing please.

The problem with XML is that, the body content is only show text but not in html form like FCK editor use, so that I can't create XML type with FCK. I like to show the news detail with picture and video or audio


Imar April 23rd, 2007 02:26 AM

Hi there,

I am still not sure I understand. You say this:

"When user click that link, the page shows the article."

That's already what the CMS does, isn't it? What else do you want it to do? Can you elaborate?

I also don't understand this:

"I can do this in XML by use <hyperlink> to the database but don't know how to create a direct link from the Database in SQl."

What XML are you talking about? <hyperlink> seems to refer to an <asp:hyperlink> hyperlink in the markup of the page, which doesn't have anything to do with XML in the browser.

Finally, if you want to wrap HTML in XML, you need to use a CData construct: http://www.w3schools.com/xml/xml_cdata.asp

HtH,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.

thuyvncr April 24th, 2007 01:01 AM

Hello Imar:

Again, thank you so much for spending time reading and helping out.

How can I show the Title of the news article in the Home page, that link to the article.


Imar April 24th, 2007 06:05 AM

Take a look at the Read More link used in the CMS. You can use the exact same concept.

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.

thuyvncr April 26th, 2007 01:49 AM

Just wanna say thank you Imar. In the world of .net we really need people like you. I'm glad I bought the book from you.


Imar April 26th, 2007 06:16 AM

You're more than welcome.

Were you able to make it work?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.


All times are GMT -4. The time now is 11:46 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.