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

Forums / General Discussions / Customizing the look of BlogArchive

Customizing the look of BlogArchive

7 posts, 0 answered
  1. Vamsee Konda
    Vamsee Konda avatar
    6 posts
    Registered:
    15 Dec 2008
    07 Jan 2010
    Link to this post
    Hello,

    How can I change the colors of the Blog Archive control. I tried editing the properties, but it has no effect. Please advise.

    Thanks,

    VK
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    07 Jan 2010
    Link to this post
    Hi Vamsee Konda,

    You have to map the external template  - ArchiveTemplate.ascx. Then you can use CssFileLink control to set the path to your stylesheet that will be responsible for the control appearance. You may find the following link useful - How to apply custom style sheets to Sitefinity Content View controls

    All the best,
    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. Vamsee Konda
    Vamsee Konda avatar
    6 posts
    Registered:
    15 Dec 2008
    11 Jan 2010
    Link to this post
    Ivan,

    Thanks for your reply. I perused through the link you sent me and that's what I needed. Just one problem though - the article mentions that you can use the original control template to create your own. But where can I find the control template for the Blog Archive control. I looked at the Blogs folder under Sitefinity/admin/controlstemplates/blogs, but there is no BlogArchive template.

    Can you please give me the path to the control template.

    Thanks,

    Vamsee
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    11 Jan 2010
    Link to this post
    Hi Vamsee Konda,

    Download the external templates archive as suggested in the first link "You have to map the external template  - ArchiveTemplate.ascx.". Then check out the Blogs folder.

    [Sitefinity_3_7_2057_standard_ExternalTemplates.zip]Sitefinity\ControlTemplates\Blogs
     
    Regards,
    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.
  5. Vamsee Konda
    Vamsee Konda avatar
    6 posts
    Registered:
    15 Dec 2008
    12 Jan 2010
    Link to this post
    Ivan,

    Thanks for the info. I followed the instructions and after I upload all the files I get this error : "Could not find a type for a name.  The type name was 'Telerik.Blogs.WebControls.Admin.ArchiveTemplate'.

    I copied the Telerik.Sitefinity.Configuration.ControlsConfig.xml to the root app_data folder /App_Data/Configutation/ .
    I copied the ArchiveTemplateNew.ascx to /Sitefinity/Admin/ControlTemplates/Blogs.

    Here are the files I am using:

    Telerik.Sitefinity.Configuration.ControlsConfig.xml
    <controlsConfig> 
      <viewMap> 
        <!-- Insert a new news item template --> 
        <viewSettings hostType="Telerik.Blogs.WebControls.Admin.ArchiveTemplate">  
          <additionalTemplates> 
            <add key="ArchiveTemplatePath" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/Blogs/ArchiveTemplateNew.ascx" /> 
          </additionalTemplates> 
        </viewSettings> 
      </viewMap> 
    </controlsConfig> 

    ArchiveTemplateNew.ascx
    <%@ Control Language="C#" %> 
    <link href="/Sitefinity/Admin/ControlTemplates/Blogs/blogsCommonLayoutNew.css" rel="stylesheet" type="text/css" /> 
    <h2> 
        <asp:Literal ID="controlTitle" runat="server"></asp:Literal> 
    </h2> 
    <!-- bulleted list mode --> 
    <telerik:RadTreeView ID="archiveTreeView" ShowLineImages="false" runat="server"></telerik:RadTreeView> 
    <!-- dropdown list mode --> 
    <p><telerik:OptgroupDropDownList ID="dropDownList" runat="server">  
    </telerik:OptgroupDropDownList></p>  
     
     
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    12 Jan 2010
    Link to this post
    Hi Vamsee Konda,

    You have used wrong hostType. Try using the lines below.

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

    Make sure that you have ArchiveTemplate in ~/Sitefinity/ControlTemplates/Blogs

    Greetings,
    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.
  7. Vamsee Konda
    Vamsee Konda avatar
    6 posts
    Registered:
    15 Dec 2008
    13 Jan 2010
    Link to this post
    Thanks for your help Ivan. I finally got it to work.

    Vamsee
Register for webinar
7 posts, 0 answered