+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Page Titles/Headings on Auto Generated Pages

Page Titles/Headings on Auto Generated Pages

7 posts, 0 answered
  1. Greg
    Greg avatar
    82 posts
    Registered:
    08 Aug 2012
    29 Apr 2010
    Link to this post
    We've created a module, similar to products module, for Recipes. We have category pages that then link to individual recipe pages. What happens is that on the single item view page, we get both the category name and the individual item name (see attached file) as headers. I've looked in the SingleItemViewTemplate page and don't see a way to turn off the category name from showing. Any insight?

    Thanks!

    Greg
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    30 Apr 2010
    Link to this post
    Hi Greg Delorey,

    Could you paste the HTML markup of the SingleItemViewTemplate.ascx?

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Greg
    Greg avatar
    82 posts
    Registered:
    08 Aug 2012
    30 Apr 2010
    Link to this post
    Hi Ivan -

    Here you are:

    01.<%@ Control Language="C#" %>
    02.<%@ Register Assembly="Telerik.Cms.Engine" Namespace="Telerik.Cms.Engine.WebControls" TagPrefix="sfWeb" %>
    03.<%@ Register Assembly="Telerik.Cms.Web.UI" Namespace="Telerik.Cms.Web.UI" TagPrefix="sfCtrl" %>
    04.<%@ Register Assembly="Telerik.Cms.Web.UI" Namespace="Telerik.Web.UI.SpamProtection" TagPrefix="sfWeb" %>
    05.<%@ Register Assembly="Telerik.Cms.Web.UI" Namespace="Telerik.Cms.Web.UI" TagPrefix="sfWeb" %>
    06. 
    07.<sfWeb:CssFileLink ID="CssFileLink1" EmbeddedFileName="Telerik.Cms.Engine.Resources.ControlTemplates.Frontend.genericContentCommonLayout.css" FileName="" Media="screen" runat="server" />
    08.<telerik:JsFileLink id="jsLink" runat="server" ScriptType="jQuery" />
    09. 
    10.<div class="sf_singleContent">
    11.    <!--<p class="sf_back">
    12.       <asp:HyperLink ID="backToList1" Text="Return to Products" runat="server"></asp:HyperLink>
    13.    </p>-->
    14.    <div id="productImages">
    15.        <a href="#"><asp:Image CssClass="product_photo" ID="Medium_Image" runat="server" /></a>
    16.        <asp:Repeater ID="DietaryTypeRepeater" runat="server">
    17.            <HeaderTemplate>
    18.                <ul id="productDietary">
    19.            </HeaderTemplate>
    20.            <ItemTemplate>                 
    21.                <li>
    22.                <asp:Image CssClass="product_dietary_icon" ID="Image1" runat="server" ImageUrl='<%#DataBinder.Eval(Container.DataItem, "ImageUrl")%>' />
    23.                </li>
    24.            </ItemTemplate>
    25.            <FooterTemplate>           
    26.               </ul>
    27.            </FooterTemplate>
    28.        </asp:Repeater>
    29.    </div>
    30.    <h2 class="sf_contentTitle">
    31.        <asp:Literal ID="Name" runat="server"></asp:Literal>
    32.    </h2>
    33.    <p class="sf_contentDate">
    34.        <sfCtrl:DateTimeLiteral runat="server" ID="Publication_Date" DateFormatString="D"></sfCtrl:DateTimeLiteral>
    35.    </p>
    36.    <asp:Panel ID="pnlContent" runat="server" CssClass="sf_genericContent">
    37.        <asp:Literal ID="content" runat="server"></asp:Literal>
    38.    </asp:Panel>
    39.   <div class="sf_contentAuthor">
    40.        <asp:HyperLink ID="postedBy" runat="server">
    41.            <asp:Literal ID="Author" runat="server"></asp:Literal>
    42.        </asp:HyperLink>
    43.    </div>
    44.    <div>
    45.        <asp:Image ID="Nutrition_Image" runat="server" />
    46.        <asp:Image ID="Large_Image" runat="server" />   
    47.    </div>
    48.</div>
    49.<div id="comments" class="sf_contentComments">
    50.    <sfWeb:CommentsList ID="commentsList" runat="server" CssClass="sf_commentsList"></sfWeb:CommentsList>
    51.</div>
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    30 Apr 2010
    Link to this post
    Hi Greg Delorey,

    Most probably your control does not use this template. Could you put simple text directly into the HTML - "Hello World" to identify whether the control uses your template. You could also try to observe the HTML to see which control adds the category. Make sure that you are not setting this value in your custom public control explicitly. I tried your template with a custom control and the category name is not rendered.

    Another option is that the value you see is not a Category metakey which, but another value that you are describing as "category".

    Also your screenshot does not show any of the Hyperlinks that are declared into the template - For instance Return to Products link., DateTimeLiteral and the other controls.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. Greg
    Greg avatar
    82 posts
    Registered:
    08 Aug 2012
    30 Apr 2010
    Link to this post
    Hey Ivan -

    We are indeed using the correct template; I'll see if I can illustrate this better because I'm not sure if I explained it very well. I've attached a couple of images showing the following:

    1) First image is the category page; I manually created this page, dropped our 'RecipesPublicView' control there and am filtering the category (Category Name = Entrees). I also added a generic content control above the filtered category view for the page title.
    2) Second attached image is the individual recipe page. You will see now that I un-commented out the 'back to recipes' link and added 'Hello World' to the RecipeViewSingleItem template. I think you don't see the date/time because I have it hidden in the CSS.

    Once you click on an individual recipe, the page title is carried over from the category view page. If possible, I'd like to prevent this so that I can put other generic content items below the filtered category list on the category page and not have them auto-generated on the individual recipe pages as well.

    Hopefully this makes sense; here's the updated RecipeViewSingleItem template now with the latest changes.

    : Greg

    <%@ Control Language="C#" %>
    <%@ Register Assembly="Telerik.Cms.Engine" Namespace="Telerik.Cms.Engine.WebControls" TagPrefix="sfWeb" %>
    <%@ Register Assembly="Telerik.Cms.Web.UI" Namespace="Telerik.Cms.Web.UI" TagPrefix="sfCtrl" %>
    <%@ Register Assembly="Telerik.Cms.Web.UI" Namespace="Telerik.Web.UI.SpamProtection" TagPrefix="sfWeb" %>
    <%@ Register Assembly="Telerik.Cms.Web.UI" Namespace="Telerik.Cms.Web.UI" TagPrefix="sfWeb" %>
    <%@ Register Assembly="Telerik.Samples.WebControls" Namespace="Telerik.Samples.WebControls" TagPrefix="mWeb" %>
     
     
    <sfWeb:CssFileLink ID="CssFileLink1" EmbeddedFileName="Telerik.Cms.Engine.Resources.ControlTemplates.Frontend.genericContentCommonLayout.css" FileName="" Media="screen" runat="server" />
    <telerik:JsFileLink id="jsLink" runat="server" ScriptType="jQuery" />
     
    <div class="sf_singleContent">
        <p class="sf_back">
           <asp:HyperLink ID="backToList1" Text="Return to Products" runat="server"></asp:HyperLink>
        </p>
        <p>Hello World</p>
        <div id="productImages">
            <a href="#"><asp:Image CssClass="product_photo" ID="Medium_Image" runat="server" /></a>
            <asp:Repeater ID="DietaryTypeRepeater" runat="server">
                <HeaderTemplate>
                    <ul id="productDietary">
                </HeaderTemplate>
                <ItemTemplate>                 
                    <li>
                    <asp:Image CssClass="product_dietary_icon" ID="Image1" runat="server" ImageUrl='<%#DataBinder.Eval(Container.DataItem, "ImageUrl")%>' />
                    </li>
                </ItemTemplate>
                <FooterTemplate>           
                   </ul>
                </FooterTemplate>
            </asp:Repeater>
        </div>
        <h2 class="sf_contentTitle">
            <asp:Literal ID="Name" runat="server"></asp:Literal>
        </h2>
        <p class="sf_contentDate">
            <sfCtrl:DateTimeLiteral runat="server" ID="Publication_Date" DateFormatString="D"></sfCtrl:DateTimeLiteral>
        </p>
        <asp:Panel ID="pnlContent" runat="server" CssClass="sf_genericContent">
            <asp:Literal ID="content" runat="server"></asp:Literal>
        </asp:Panel>
       <div class="sf_contentAuthor">
            <asp:HyperLink ID="postedBy" runat="server">
                <asp:Literal ID="Author" runat="server"></asp:Literal>
            </asp:HyperLink>
        </div>
        <div>
            <asp:Image ID="Nutrition_Image" runat="server" />
            <asp:Image ID="Large_Image" runat="server" />   
            <mWeb:SitefinityRating ID="sfRating" runat="server" />
        </div>
    </div>
    <div id="comments" class="sf_contentComments">
        <sfWeb:CommentsList ID="commentsList" runat="server" CssClass="sf_commentsList"></sfWeb:CommentsList>
    </div>
  6. Greg
    Greg avatar
    82 posts
    Registered:
    08 Aug 2012
    30 Apr 2010
    Link to this post
    Here's the attachments.
  7. Greg
    Greg avatar
    82 posts
    Registered:
    08 Aug 2012
    04 May 2010
    Link to this post
    Unfortunately, I still haven't resolved this issue. If anyone can think of ways to get this to work properly, please let me know.

    Thanks!

    Greg
Register for webinar
7 posts, 0 answered