Points about the categories control

Posted by Community Admin on 03-Aug-2018 06:55

Points about the categories control

All Replies

Posted by Community Admin on 08-Dec-2010 00:00

Hi,


Couple of questions/points regarding the categories control:

1. The html for the categories frontend control is a bit over the top but I can't find a template in the resources section of the SDK to use for customisation.
2. There is no "selected" class applied to the category in the list when you click on a category. This probably needs to go on the to do list.
3. There is a bug in the categories control - changing the CssClass does not work. The control reverts back to the default CssClass.

I love the category structure your are now using. 

Cheers,

Seth


Posted by Community Admin on 08-Dec-2010 00:00

Hi Webinsite,

1.Here is the template of the control

<%@ Control Language="C#" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" TagPrefix="sf" %>
 
<sf:SitefinityLabel id="titleLabel" runat="server" WrapperTagName="h2" HideIfNoText="true" CssClass="sftaxonTitle" />
<sf:ConditionalTemplateContainer ID="conditionalTemplate" runat="server">
    <Templates>
        <sf:ConditionalTemplate Left="RenderAs" Operator="Equal" Right="HorizontalList" runat="server">
            <asp:Repeater ID="repeater" runat="server">  
                <HeaderTemplate>
                    <ul class="sftaxonHorizontalList">
                </HeaderTemplate>            
                <ItemTemplate>
                    <li class="sftaxonItem"><sf:SitefinityHyperLink ID="link" runat="server" CssClass="selectCommand"></sf:SitefinityHyperLink></li>
                </ItemTemplate>                                
                <FooterTemplate></ul></FooterTemplate>
            </asp:Repeater>    
        </sf:ConditionalTemplate>
        <sf:ConditionalTemplate Left="RenderAs" Operator="Equal" Right="VerticalList" runat="server">
            <asp:Repeater ID="repeater" runat="server">
                <HeaderTemplate>
                    <ul class="sftaxonVerticalList">
                </HeaderTemplate>
                <ItemTemplate>
                    <li class="sftaxonItem">           
                        <sf:SitefinityHyperLink ID="link" runat="server" CssClass="selectCommand"></sf:SitefinityHyperLink>
                    </li>
                </ItemTemplate>
                <FooterTemplate>
                    </ul>
                </FooterTemplate>
            </asp:Repeater>               
        </sf:ConditionalTemplate>
        <sf:ConditionalTemplate Left="RenderAs" Operator="Equal" Right="Cloud" runat="server">
            <asp:Repeater ID="repeater" runat="server">
                <HeaderTemplate>
                    <ul class="sftaxonCloud">
                </HeaderTemplate>
                <ItemTemplate>
                    <li class="sftaxonItem">
                    <%-- Note the sfCloudSize class.
                    The name can be different, just have to be last in the list.
                    The size factor is appendend to it - sfCloudSize1, sfCloudSize2,.. sfCloudSize6 --%>
                        <sf:SitefinityHyperLink ID="link" runat="server" CssClass="selectCommand sfCloudSize"></sf:SitefinityHyperLink>
                    </li>
                </ItemTemplate>
                <FooterTemplate>
                    </ul>
                </FooterTemplate>
            </asp:Repeater>       
        </sf:ConditionalTemplate>
    </Templates>
</sf:ConditionalTemplateContainer>   
<sf:SitefinityHyperLink ID="SeeAllTaxaLink" runat="server" CssClass="selectCommand sftaxonsAll" Visible="false">All (0)</sf:SitefinityHyperLink>


2. The control uses Reatater and SitefinityHyperLink. The SitefinityHyperLink inherits
from HyperLink control and there is no "selected" property that you can use.

3. The control sets "sfHierarchicalTaxonIcn" css class which you can override in your theme stylesheet, but the meaning of CssClass of our property is different - it is used for setting the image when you drop a control on a page and you are in page edit mode. The problem is that we have added it to the ContentDesigner of the control. The issue has been already fixed in our code and I updated your Telerik points

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

Posted by Community Admin on 09-Dec-2010 00:00

Hi,

Thanks for your response Ivan. I am sure there would be a few people who would agree with me - it is very useful to be able to indicate which category is currently being displayed. So are you able to put this to the team for consideration.

Thanks.

Posted by Community Admin on 09-Dec-2010 00:00

Hi Webinsite,

I will add your request for internal discussion.

Kind 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

This thread is closed