Go back to mobile site

 

Please note: The forums are currently intended for Kentico community. Although we monitor them time to time, we cannot guarantee a timely response. If you need a help with Kentico CMS, please feel free to send your message to support@kentico.com.

If you want to add new post or reply to post, please sign in.

Search: 

Installation and deployment
Version 3.x > Installation and deployment > CMSPages\NewsRss View modes: 
User avatar
Member
Member
Loba - 6/9/2010 11:23:00 AM
     
CMSPages\NewsRss
Hello,
i'm really new to kentico so my qustion could be very basic... I should change rss layout to display also an image preview of the news, but I can't find the CMSPages\NewsRss.aspx, thanks in advance, and kind regards.

User avatar
Kentico
Kentico
kentico_ondrejv - 6/9/2010 4:25:03 PM
     
RE:CMSPages\NewsRss
Hello,

You can find the file itself in your project folder (most probably located in C:\inetpub\wwwroot\<web_project_folder>). You will need to adjust the Repeater's transformation which is cms.news.rssitem by default. You can find it in Site Manager -> Development -> Document types -> Edit (News) -> Transformations tab. Please see how to manage transformations: http://devnet.kentico.com/docs/devguide/writing_transformations.htm

Anyway, in latest version 5.5 there are integrated webparts which serves for generating RSS feeds and Atom feeds. Please take a look at those webparts in our Developer's Guide: http://devnet.kentico.com/docs/devguide/syndication_web_parts.htm. They are also described in more details in the Webpart reference: http://devnet.kentico.com/docs/webparts/KenticoCMS_WebParts.htm.

Best regards
Ondrej Vasil

User avatar
Member
Member
Loba - 6/10/2010 9:11:54 AM
     
RE:CMSPages\NewsRss
Hello Ondrej,
thanks a lot for your support, i found what you told me, and the instructions to manage trasformations, but i still can't display images on my news rss.

Actually my rss item is

<item>
<guid isPermaLink="true"><![CDATA[<%# GetAbsoluteUrl(GetDocumentUrl()) %>]]></guid>
<title><![CDATA[<%# Eval("NewsTitle") %>]]></title>
<description><![CDATA[<%# Eval("NewsSummary") %>]]></description>
<pubDate><%# Convert.ToDateTime(Eval("NewsReleaseDate")).ToString("r") %></pubDate>
<link><![CDATA[<%# GetAbsoluteUrl(GetDocumentUrl()) %>]]></link>
</item>

Could you tell me the steps to add the news related image in this item?
Thanks.

User avatar
Kentico
Kentico
kentico_zdenekc - 6/15/2010 6:31:33 AM
     
RE:CMSPages\NewsRss
Hello,

The images can be included in the feed like this:

<img alt="SomeAlt" src="<%# GetFileUrl("NewsTeaser") %>" />

as can be seen e.g. in similar thread.

more examples of linking/displaying images in transformations can be found in the transformation editor context help (link to Examples under the editing window).

Hope this will help.

Regards,
Zdenek


1

Sitemap | Content Management System | E-commerce Software | Social Networking Software | Intranet | Online Marketing Solution | Copyright © 2004-2013 Kentico Software | Powered by Kentico CMS