ASPX templates
Version 5.x > ASPX templates > Scrolling News View modes: 
User avatar
Member
Member
rajeevs-bitwiseglobal - 10/15/2010 1:44:58 AM
   
Scrolling News
Hi

Plz help me in the Scrolling NEws which i want to display on homepage.
I have added the code on homepage
<%@ Register Src="~/CMSWebParts/Viewers/Effects/ScrollingText.ascx" TagName="ScrollingNews" TagPrefix="uc1" %>

and i have used this code where i want to display

<cms:WebPartContainer ID="wpcScrollingNews" runat="server" ContainerName="BlackBox" ContainerTitle="Latest news">
<uc1:ScrollingNews runat="server" ID="ScrollingNews" Path="/News/%" ClassNames="CMS.News"
SelectTopN="10" TransformationName="CMS.News.NewsPreviewWithSummary" JsMoveTime="1000"
JsStopTime="5000" DivWidth="200" DivHeight="115" OrderBy="NewsReleaseDate DESC" EnableViewState="false" />
</cms:WebPartContainer>


The Scroll news does not display.
I am using the cms 5.5.3


Regards
DhAnraj

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 10/18/2010 3:55:37 AM
   
RE:Scrolling News
Hello,


I suppose you use ASPX templates not Portal template, right?

Do you use this code on your master page (.master)?

<asp:ScriptManager ID="manScript" runat="server" EnableViewState="false" />
<cms:CMSPageManager ID="CMSPageManager1" runat="server" EnableViewState="false" />

Could you please confirm me that you have any CMS.News documents under /News in your content tree?

Does it work if you use the similar settings fro CMSRepeater?


Best regards,
Helena Grulichova

User avatar
Member
Member
rajeevs-bitwiseglobal - 10/18/2010 4:18:46 AM
   
RE:Scrolling News
Hi,

Thanks for reply

I have used the as;:scriptmanager and CMS page managers, and also i have created cms.new under newspage, Plz find the template code in which i am using news scroller

<%@ Page Language="C#" MasterPageFile="~/CMSTemplates/DesertView/DesertView.master"
AutoEventWireup="true" CodeFile="AboutusNavigation.aspx.cs" Inherits="CMSTemplates_DesertView_AboutusNavigation"
Title="Untitled Page" %>
<%@ Register Src="~/CMSWebParts/Viewers/Effects/ScrollingText.ascx" TagName="ScrollingNews" TagPrefix="uc1" %>
TagPrefix="cms" %>
<%@ Register Src="~/CMSTemplates/Controls/fotter.ascx" TagName="data" TagPrefix="content" %>
<%@ Register Assembly="CMS.Controls" Namespace="CMS.Controls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div class="content_top_inner">
</div>
<div class="main_content">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<div class="LPage">
<h1>
<cc1:CMSEditableRegion ID="CMSEditableRegion2" runat="server" DialogHeight="80" RegionType="HtmlEditor"
RegionTitle="Headings" />
</h1>
<br />
<cc1:CMSEditableRegion ID="CMSEditableRegion1" runat="server" DialogHeight="450"
RegionType="HtmlEditor" RegionTitle="Content" />
<Content:data ID="fotter" ContentId="64" runat="server" />

</div>
</td>
<td valign="top">
<div class="main_right">
<div>
<img src="~/App_Themes/DesertView/images/rt_tbl_top.gif" alt="" width="268" height="10" /></div>
<div class="right_Navigation">
<cc1:CMSListMenu ID="LeftMenu" runat="server" Path="/About-Us/%" Layout="vertical"
CSSPrefix="vertical" />
</div>

<div class="clear">
</div>
<%--<cms:CMSEditableRegion ID="RequestAppointment" RegionType="HtmlEditor" RegionTitle="Request Appointment" DialogWidth="250"
runat="server" />--%>
<cc1:CMSEditableRegion ID="CMSEditableRegion3" runat="server" DialogHeight="250"
RegionType="HtmlEditor" RegionTitle="Content" />
<cms:HomeRequestAppointment ID="HomeRequestAppointment" runat="server" />
<cms:WebPartContainer ID="wpcScrollingNews" runat="server" ContainerName="BlackBox"
ContainerTitle="Latest news">
<uc1:ScrollingNews runat="server" ID="ScrollingNews" Path="/News/%" ClassNames="CMS.News"
SelectTopN="10" TransformationName="CMS.News.NewsPreviewWithSummary" JsMoveTime="1000"
JsStopTime="5000" DivWidth="200" DivHeight="115" OrderBy="NewsReleaseDate DESC" EnableViewState="false" />
</cms:WebPartContainer>
</div>
</td>
</tr>
</table>
</div>
</asp:Content>



User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 10/18/2010 6:23:49 AM
   
RE:Scrolling News
Hi,


I tested your code for scrolling new on sample Corporate site ASPX and it works correctly.

Does it work if you use the similar settings (Path, ClassNames, Transformation) for CMSRepeater?


Best regards,
Helena Grulichova

User avatar
Member
Member
rajeevs-bitwiseglobal - 10/19/2010 2:34:44 AM
   
RE:Scrolling News
Hi

Thanks for reply

Path, ClassNames, Transformation is same as in the corporate site, my news page in kentico is also same. but when i check with firebug the id="ctl00_ContentPlaceHolder1_wpcScrollingNews_ScrollingNews" with visible=hidden style but this is not in the corporate site news page

Dhanraj


User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 10/20/2010 4:12:52 PM
   
RE:Scrolling News
Hi Dhanraj,


Could you please answer me if it works if you use the similar settings (Path, ClassNames, Transformation) for CMSRepeater?

visible=hidden style could be used if there is no data for Scrolling news. The repeater will behave in the same way. If the repeater works we will know there is a problem with scrolling. If the repeater shows no data there is a problem with Path, ClassNames and Transformation.


Best regards,
Helena Grulichova