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

Forums / Designing with Sitefinity / Switching off the default template in blog module

Switching off the default template in blog module

7 posts, 0 answered
  1. James@Nw
    James@Nw avatar
    265 posts
    Registered:
    05 May 2009
    13 Oct 2010
    Link to this post
    Hi Guys,

    I am trying to switch off the WebResource CSS that my Blog is using and have checked the settings of the BlogPosts Control to see if, like the Site Menu and Site PanelBar there is somewhere I can switch this off.

    Please see this Jing video to see what I mean.

    (And by the way, what a great tool to help better explain to you guys what I mean. One of you used it the other day to help me with something and I have been using it ever since. Maybe you can build swfobject into these posts and allow people to post troubleshooting videos? If security were an issue, maybe you could implement a better ranking system like Stack Overflow where you have to have posted X amount of times before you can start posting videos to the SF forums?)

    Cheers,
    James
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    13 Oct 2010
    Link to this post
    Hello James,

    The CssClass property you are setting will wrap the entire control inside a DIV with class name you have set as a property.

    How the control is styles

    1. Through embedded resources - Inside the template ListPageMaster and ListPageDetails there is a reference to the embedded resources. You can map the external template and remove the CssFileLink control which is used to make the reference or use the second option ( skinning the control through your theme stylesheet)
    2. Through classes that comes from your theme.

    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
  3. James@Nw
    James@Nw avatar
    265 posts
    Registered:
    05 May 2009
    13 Oct 2010
    Link to this post
    HI Ivan,

    Thanks for getting back to me. I've mapped the view to my  template (ArchiveTemplate.ascx) but it was still using  the WebResource files.

    I've had to add the following to get it working.

    <%@ Control Language="C#" %>

    <h2>
        <asp:Literal ID="controlTitle" runat="server"></asp:Literal>
    </h2>
    <!-- bulleted list mode -->
    <telerik:RadTreeView ID="archiveTreeView" EnableEmbeddedSkins="False" EnableEmbeddedBaseStylesheet="False" ShowLineImages="false" runat="server"></telerik:RadTreeView>
    <!-- dropdown list mode -->
    <p><telerik:OptgroupDropDownList ID="dropDownList" runat="server">
    </telerik:OptgroupDropDownList></p>

    Is this the way to go ahead with all templates I map in the future if I want to switch off the WebResource CSS? It seems that for some of the controls like the SiteMenu and Site PanelBar, I can switch them off in the property settings but not for others like the BlogArchive and BlogPosts.

    Thanks,
    James
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    13 Oct 2010
    Link to this post
    Hello James,

    Our controls does not have a public property which allows you to disable embedded resources and the only solution is mapping the template.

    Best wishes,
    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. James@Nw
    James@Nw avatar
    265 posts
    Registered:
    05 May 2009
    13 Oct 2010
    Link to this post
    Hi Ivan,

    I have mapped the control as per this page but those instructions did not strip WebResource Css from the control when I refreshed my page.

    The only way I managed to get rid of the WebResource Css, was to add these two properties (EnableEmbeddedSkins="False" EnableEmbeddedBaseStylesheet="False") which then worked.

    I understand what you're saying, but the solution you gave me did not work, hence the reason I added those properties to remove the Css.

    If I am misunderstanding something or if I have missed a step, I would appreciate it if you could tell me because I would have to know how to do this for future projects too.

    Many thanks.
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    13 Oct 2010
    Link to this post
    Hello James,

    You are missing the difference between Sitefinity's controls and other AJAX control.

    1. Our controls has embedded resources that you can disable as I described you. This disables only the embedded resources that are loaded only by our - Sitefinity's controls. There are minimum scripts that are loaded if the control requires them and you cannot disable these resources, otherwise this control will not work properly

    2. RadControls for ASP.NET AJAX ( or other AJAX) controls have their own scripts which comes from Telerik.Web.UI.dll and these are again embedded resources.

    The property you are setting - EnableEmbeddedBaseStylesheet is valid and exists only for the RadControls or our controls that wraps a RadControl and this property has been exposed by the control designer because it is a public property.

    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
  7. James@Nw
    James@Nw avatar
    265 posts
    Registered:
    05 May 2009
    13 Oct 2010
    Link to this post
    Hello Ivan,

    I have just mapped a view to the list ListPageMaster.ascx.

    If I then change the names of the CSS class names, I can see the WebResources Css is no longer there in Firebug. So this is the expected outcome I have expected from the instructions for mapping a view to the templates. So this is working for ListPageMaster.ascx.

    For the ArchiveTemplate.ascx there is no Sitefinity Css class names to change and it therefore still pulls in the  WebResources Css in if I check it in Firebug.

    Everything is working now but I just wanted to let you know. If I do another one, I am going to do a Jing Video so that you can see steps I am taking to map a view to a template.

    Cheers

Register for webinar
7 posts, 0 answered