More in this section

Forums / Developing with Sitefinity / Disable/override embedded blog styles

Disable/override embedded blog styles

4 posts, 0 answered
  1. Christian
    Christian avatar
    4 posts
    Registered:
    21 Apr 2008
    04 Nov 2009
    Link to this post
    Hi

    Something is annoying me quite a bit. I have created a blog an tried to set change some of the CSS like sf_postTitle, but no luck. It seems that the embedded stylesheet is added below my own files an not allowing me to change most of the appearance.

    Im not interested in changing the entire template for the the different blog elements, but just be able to change the css og disable the embedded.

    I could map the templates, but I can't get the "multiple" provider part working, mapping at single template file works fine, but not the other way around as is needed for the content list and the single item view... Don't know why its not working but changes to the templates does not show up.

    Hope some one can help me out ;)

    --
    Christian
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    04 Nov 2009
    Link to this post
    Hello Christian,

    Please take a look at the following blog post to gather more information about mapping the templates for ContentView based controls. Generally you need to create your custom style sheet and map it through CssFilesLink control.

    sample:

    <telerik:CssFileLink ID="CssFileLink1" FileName="PATH TO YOUR STYLE SHEET" Media="screen" runat="server" />


    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Christian
    Christian avatar
    4 posts
    Registered:
    21 Apr 2008
    04 Nov 2009
    Link to this post
    Hi

    Thank you for the quick answer. One of the major problems is that the following mapping does not work

    <viewSettings hostType="Telerik.Blogs.WebControls.BlogPosts"
          <additionalTemplates> 
            <!--Provides user interface for displaying a list of posts in the BlogPosts control in the blogs module.--> 
            <add key="ItemListTemplatePath" layoutTemplatePath="~/Sitefinity/ControlTemplates/Blogs/ContentViewItemList.ascx" /> 
            <!--Provides user interface for displaying a single post in the BlogPosts control in the blogs module.--> 
            <add key="SingleItemTemplatePath" layoutTemplatePath="~/Sitefinity/ControlTemplates/Blogs/ContentViewSingleItem.ascx" /> 
          </additionalTemplates> 
        </viewSettings> 


    The other mappings for a single .ascx file works fine but the one above does not. Am I missing something?

    If I could get that to work I would be home free ;) Changes to those two .ascx files in the ControlTemplates/Blogs is not showing up. The following mapping works fine.

        <viewSettings hostType="Telerik.Blogs.WebControls.BloggersList" layoutTemplatePath="~/Sitefinity/ControlTemplates/Blogs/BloggersList.ascx" /> 
     

    Hope you can help, and thank you for an otherwise fantastic CMS solution ;)

    --
    Christian
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    04 Nov 2009
    Link to this post
    Hello Christian,

    Please take a look at the link I sent you. There is written that you should map the control designer and then the templates inside the presentation mode. This will do the trick.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
4 posts, 0 answered