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

Forums / Developing with Sitefinity / Full story link not working

Full story link not working

3 posts, 1 answered
  1. Johnny
    Johnny avatar
    45 posts
    Registered:
    08 Mar 2009
    20 Aug 2010
    Link to this post
    Hi,

    My "full story" link no longer renders as a link for some reason. I suspect that my css have messed things up but I can´t see what I´m doing wrong. The text is no longer clickable but it seems to be just fine in firebug. Any help is much appreciated!
    My ContentViewItemList
    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="ContentViewItemList.ascx.cs" Inherits="Sitefinity_Admin_ControlTemplates_Generic_Content_Teaser_ContentViewItemList" %>
    <%@ Register Assembly="Telerik.Cms.Web.UI" Namespace="Telerik.Cms.Web.UI" TagPrefix="sf" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Cms.Engine.WebControls" Assembly="Telerik.Cms.Engine" %>
    <%@ Register Assembly="Telerik.Cms.Web.UI" Namespace="Telerik.Cms.Web.UI" TagPrefix="sfWeb" %>
      
    <sfWeb:CssFileLink ID="CssFileLink1" EmbeddedFileName="Telerik.Cms.Engine.Resources.ControlTemplates.Frontend.genericContentCommonLayout.css" FileName="" Media="screen" runat="server" />
    <link href="../../../App_Themes/UnigolfnetMainTheme/UnigolfnetMain.css" rel="stylesheet"
        type="text/css" />
          
    <asp:Repeater ID="repeater" runat="server">
     <HeaderTemplate>
              
        </HeaderTemplate>
        <ItemTemplate>
                <h1 class="sf_contentTitle">
                    <asp:Literal ID="Name" runat="server"></asp:Literal>
                </h1>
                <p>
                    <asp:Literal ID="Summary" runat="server"></asp:Literal>
                </p>
                <%--<p class="sf_contentDate">
                    <sf:DateTimeLiteral runat="server" ID="Publication_Date" DateFormatString="D"></sf:DateTimeLiteral>
                </p>--%>
                <%--<asp:Panel id="pnlPostContent" runat="server" CssClass="sf_genericContent">
                        <asp:Literal ID="content" runat="server"></asp:Literal>
                </asp:Panel>--%>
                <div class="sf_readMore">
                    <asp:HyperLink ID="fullContent2" runat="server">
                        <asp:Literal ID="Literal1" runat="server" Text="<%$Resources:FullStory %>"></asp:Literal>
                    </asp:HyperLink>
                </div>
                <div class="sf_contentComments">
                    <asp:HyperLink ID="CommentsLink" runat="server" NavigateUrl="{0}#comments">
                        <asp:Label ID="CommentsCount" runat="server"></asp:Label>
                        <asp:Literal Text="<%$Resources:Comments %>" runat="server"></asp:Literal>
                    </asp:HyperLink>
                </div>
                <%--<div class="sf_contentAuthor">
                    posted by:
                    <asp:HyperLink ID="postedBy" runat="server">
                        <asp:Literal ID="Author" runat="server"></asp:Literal>
                    </asp:HyperLink>
                </div>--%>
                <div class="articleUnderline"></div>
        </ItemTemplate>
        <FooterTemplate>
      
        </FooterTemplate>
    </asp:Repeater>
    <sfWeb:Pager ID="pager1" runat="server">
        <LayoutTemplate>
             <asp:Repeater ID="PageRepeaterLinkButton" runat="server">
                <HeaderTemplate>
                    <ol class="sf_pager">
                    <li><asp:LinkButton ID="PreviousPage" runat="server" Text="<%$Resources:PreviousPage %>"></asp:LinkButton></li>
                </HeaderTemplate>
                <ItemTemplate>
                    <li>
                        <asp:LinkButton ID="SingleItem" runat="server" />
                    </li>
                </ItemTemplate>
                <FooterTemplate>
                    <li><asp:LinkButton ID="NextPage" runat="server" Text="<%$Resources:NextPage %>"></asp:LinkButton></li>
                    </ol>
                </FooterTemplate>
            </asp:Repeater>
            <asp:Repeater ID="PageRepeaterHyperLink" runat="server">
                <HeaderTemplate>
                    <ol class="sf_pager">
                    <li><asp:HyperLink ID="PreviousPage" runat="server" Text="<%$Resources:PreviousPage %>"></asp:HyperLink></li>
                </HeaderTemplate>
                <ItemTemplate>
                    <li>
                        <asp:HyperLink ID="SingleItem" runat="server" />
                    </li>
                </ItemTemplate>
                <FooterTemplate>
                    <li><asp:HyperLink ID="NextPage" runat="server" Text="<%$Resources:NextPage %>"></asp:HyperLink></li>
                    </ol>
                </FooterTemplate>
            </asp:Repeater>
        </LayoutTemplate>
    </sfWeb:Pager>
    My css classes
    div.sf_readMore
    {
        background-image: url(img/ReadMoreButton.png);
        background-repeat: no-repeat;
        height: 17px;
        padding-left: 17px;
        padding-top: 2px;
    }
    div.sf_readMore a:link, div.sf_readMore a:visited, div.sf_readMore a:hover, div.sf_readMore a:active
    {
        color: #fff;
        text-decoration: none;
        font-size: 10px;
        font-weight: bold;
    }
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    20 Aug 2010
    Link to this post
    Hi Johnny,

    The issue does not seem to be caused by the css. The href attribute of the a tag is missing and you see only the Text.  You have to change the ID of the HyperLink declared below

     <asp:HyperLink ID="fullContent2" runat="server">


    from fullContent2 to fullContent1

    Regards,
    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
    Answered
  3. Johnny
    Johnny avatar
    45 posts
    Registered:
    08 Mar 2009
    20 Aug 2010
    Link to this post
    Hi Ivan,

    That did the trick. Must have happend in a copy and paste frenzy.

    Thanks a lot!
    Johnny
Register for webinar
3 posts, 1 answered