ASPX templates
Version 5.x > ASPX templates > CMSRepeater not displaying on some pages View modes: 
User avatar
Member
Member
jgriffith-nfusion - 2/27/2012 4:47:48 PM
   
CMSRepeater not displaying on some pages
I am having an issue where on some pages a sidebar control repeater is not displaying results, although it should. I can't seem to figure out what would cause this. Any ideas?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 2/28/2012 12:28:09 AM
   
RE:CMSRepeater not displaying on some pages
Hello,

Could you please post a screenshot of the repeater settings and of the properties tab in CMSDesk for the document, where the repeater content isn't displayed?

Best regards,
Boris Pocatko

User avatar
Member
Member
jgriffith-nfusion - 3/7/2012 3:30:46 PM
   
RE:CMSRepeater not displaying on some pages

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TrainingCoursesSidebar.ascx.cs" Inherits="CMSTemplates_Starlims_CustomControls_TrainingCoursesSidebar" %>

<div class="sidebar-orange-widget training-courses-widget" ID="traingingCoursesSidebarID" runat="server">
<h3>Training Courses</h3>
<asp:Label ID="lblDocType" runat="server"></asp:Label>
<ul>
<cms:CMSRepeater ID="trainingCourseRepeaterSidebar"
runat="server"
ClassNames="custom.TrainingEventType"
TransformationName="custom.TrainingEventType.SidebarView" />
</ul>
</div>


Here is my control. Which property setting do you want me to screen shot?

User avatar
Member
Member
jgriffith-nfusion - 3/8/2012 10:25:21 AM
   
RE:CMSRepeater not displaying on some pages
If a repeater is on the same level of the page being displayed, will that affect it showing up? The repeater works on a parent file in the document tree but not on a document that has to pull from siblings.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 3/9/2012 3:36:36 AM
   
RE:CMSRepeater not displaying on some pages
Hello,

At first please make sure that there is content to be displayed. You can do that by disabling the "Hide if no record found" property and specifying some "No record found text" text. I think in your case you will have to use dynamic path macros. Please check our documentation for more information.

Best regards,
Boris Pocatko