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

Forums / Developing with Sitefinity / How can I modify the BlogArchive control?

How can I modify the BlogArchive control?

6 posts, 0 answered
  1. Cameron Paul
    Cameron Paul avatar
    3 posts
    Registered:
    08 Sep 2009
    08 Sep 2009
    Link to this post
    I'm new to sitefinity, so I'm not very familiar with how the built in controls are handled.  I need to make use of the BlogArchive control, but I don't want it to behave as a tree.  I just want it to list the months, and not have separate drop downs for each year.  Is there a way to do this?

    I also need to be able to modify the css file for the control, but I have been unable to find it on the file system.
  2. Joe
    Joe avatar
    138 posts
    Registered:
    24 Sep 2012
    08 Sep 2009
    Link to this post
    Hello Cameron,

    Thanks for contacting us.

    The control has two options, tree and dropdown list. To make the control behave like a drop down list, click edit on the archive control. Then, go to Behavior > ArchiveMode and change the property to drop down list.

    To modify the CSS for the control in RadTreeView mode, you must create a custom skin. I have attached a user control, which you can adjust according to those custom skin instructions. Please copy the control to ~/Sitefinity/ControlTemplates/Blogs folder. Please set the LayoutTemplatePath property of the Archive control, which is located in the Appearance section of the control, to the location of the archive template. You can use the CSS class of the drop down list control to alter appearance, when the control is in drop down list mode.

    I hope that I have clearly answered your technical questions. Kindly let us know if you need further assistance.

    Kind regards,
    Joe
    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. Cameron Paul
    Cameron Paul avatar
    3 posts
    Registered:
    08 Sep 2009
    10 Sep 2009
    Link to this post
    Joe,

    Thanks for the quick response.  It was very informative, but I am still having issues.  I placed the user you included in the appropriate directory and set the LayoutTemplatePath property to that location, but it seems to be having no effect.  Any changes I make to the template do not appear on the page.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    10 Sep 2009
    Link to this post
    Hi Cameron Paul,

    Get the external template and add it to the following destination ~/Sitefinity/ControlTemplates/Blogs
    Then add the following line in your ControlsConfogfile.

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

    Then restart the application by making dummy change in your web.config  or through IIS. I hope this helps.

    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. Cameron Paul
    Cameron Paul avatar
    3 posts
    Registered:
    08 Sep 2009
    11 Sep 2009
    Link to this post
    Still no luck.  I have followed all the instructions to the letter and still don't see any changes.
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    13 Sep 2009
    Link to this post
    Hi Cameron Paul,

    We are not able to reproduce any problem related to the mapping. If the problem persists, please send us a link form where we could download a sample project where you can reproduce this issue. We will set up the project locally and test the behavior of BlogsArchive control.

    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.
Register for webinar
6 posts, 0 answered