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

Forums / General Discussions / using sitefinity blog

using sitefinity blog

16 posts, 0 answered
  1. siby
    siby avatar
    48 posts
    Registered:
    21 Feb 2009
    17 Aug 2010
    Link to this post
    Hi, I have got a scenario in which there will be a blog listing page(also a list details view page; both set to the same) displaying items like "categories", "tags","authors" and "archive"  in a menu . On clicking a particular item under the above stated , it should display blog belonging to that item. For example if I have an author by name "myauthor" under "authors", then the blogs belonging to that author alone need to be displayed.Checked the "Archive" control which on clicking will change the query string with year(and month) and will list the proper blogs. Is there any similar mechanism to achive with "categories", "tags" and "authors". Or any default configuration


    Expecting your reply,
    Siby Chacko
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    17 Aug 2010
    Link to this post
    Hi siby,

    You can try using CategoriesTree, TagsLists and Bloggers controls.

    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
  3. siby
    siby avatar
    48 posts
    Registered:
    21 Feb 2009
    17 Aug 2010
    Link to this post
    Hi am using sitefinity 3.7, can see only "blog post","archive","calender" and "bloggers" under the Select a control/Blogs.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    17 Aug 2010
    Link to this post
    Hello siby,

    Check Tags & Categories section where the other controls reside.

    Greetings,
    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. siby
    siby avatar
    48 posts
    Registered:
    21 Feb 2009
    17 Aug 2010
    Link to this post
    Hi thakz for the reply;but this part is used in a general sense right, how to point to blog tags and blog categories
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    17 Aug 2010
    Link to this post
    Hello siby,

    Both the controls have a property ProviderName in Data section ( when you open one of the controls for editing) where you can set name of data provider - News, Blogs, Events etc

    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
  7. siby
    siby avatar
    48 posts
    Registered:
    21 Feb 2009
    17 Aug 2010
    Link to this post
    Hi it worked.really thankz for the reply, please get me the TagItemKey value for blog(default "CntTagID" not listing the proper items). For category I got "BlogCatID" as CategoryKey and is listing properly. Also please show how to list proper items if  "blogger list" is using as it is not having any particular query string key so that only that items(blogs) will be listed.
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    17 Aug 2010
    Link to this post
    Hi siby,

    You can get the keys from BlogPosts control >> QueryString keys section of its "Advanced" tab. BloggerList control does not uses query strings.  To use a QueryStrings with BloggersList control you need to create a custom class that inherits from Telerik.Blogs.WebControls.BloggersList. Then override CreateChildControls method. If you use DropDownList mode you have to subscribe for DropDownList.SelectedIndexChanged event and there make response redirect where you can append your QueryStrings. If you use List mode - ListControl is used you have to set the value of Listitem to IBlog BlogPage- li.Value = blog.BlogPage and use BulletedListDisplayMode.HyperLink mode of the ListControl

    Greetings,
    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
  9. siby
    siby avatar
    48 posts
    Registered:
    21 Feb 2009
    17 Aug 2010
    Link to this post
    Hi one more doubt for Archive list am using "ArchiveTemplate.ascx"  from the sitefinity/ controltemplate /blog
    and is pointed using the "LayoutTemplatePath" property , but is not taking effect as am hiding the h2 tag and its still shows that , same methode worked else where. Also its been found that "LayoutTemplateName" is not editable and is set to "Telerik.Blogs.Resources.ControlTemplates.Frontend.ArchiveTemplate.ascx". Is it happening is bcz of this. Plz tell me how to use an external template in this case.
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    18 Aug 2010
    Link to this post
    Hi siby,

    Map the template through ControlsConfig file which comes with External Template archive - App_Data folder

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

    After adding the line above to the ControlsConfig file the application should be restarted.

    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
  11. siby
    siby avatar
    48 posts
    Registered:
    21 Feb 2009
    18 Aug 2010
    Link to this post
    Hi, Thankz it worked. Can I do the same for category too where I have used

      <viewMap>
        <viewSettings hostType="Telerik.Cms.Engine.WebControls.Categories.CategoriesList" layoutTemplatePath="~/usercontrols/blog/CategoriesList.ascx" />
      </viewMap>

    Here I have placed "CategoriesList.ascx" under  "usercontrols/blog/". But it seems not working when I place the categories list user control under "tags & categories". I just need to remove the ul , li and braces which is there in the default .
  12. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    18 Aug 2010
    Link to this post
    Hi siby,

    CategoriesList.ascx is just a template for CategoriesList custom control. You could make the required changes directly from the template - CategoriesList.ascx which contains the code shown below

    <%@ Control Language="C#" %>
    <h3>
        <asp:Literal ID="controlTitle" runat="server"></asp:Literal>
    </h3>
     
    <asp:Repeater ID="categoriesRepeater" runat="server">
        <HeaderTemplate><ul></HeaderTemplate>
        <ItemTemplate>
            <li>
                <asp:HyperLink ID="categoryLink" runat="server"></asp:HyperLink>
                (<asp:Label ID="categoryContentCount" runat="server"></asp:Label>)
            </li>
        </ItemTemplate>
        <FooterTemplate></ul></FooterTemplate>
    </asp:Repeater>


    All the best,
    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
  13. siby
    siby avatar
    48 posts
    Registered:
    21 Feb 2009
    18 Aug 2010
    Link to this post
    Hi

    a) am getting an error below if I drag and drop "categories list" to the page . But the "categories tree" is fine. Please help. Didn't change any configuration.


    b) Also as you stated edited the Taglist.ascx file under the sitefinity/controltemplate/generic content, still its not taking effect


    Error:


    The method or operation is not implemented.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.NotImplementedException: The method or operation is not implemented.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [NotImplementedException: The method or operation is not implemented.]
    Telerik.Cms.Engine.WebControls.Categories.DefaultTemplate.InstantiateIn(Control container) +28
    Telerik.Cms.Web.UI.SimpleControl.get_Container() +64
    Telerik.Cms.Web.UI.SimpleControl.CreateChildControls() +43
    System.Web.UI.Control.EnsureChildControls() +87
    System.Web.UI.Control.PreRenderRecursiveInternal() +44
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

  14. siby
    siby avatar
    48 posts
    Registered:
    21 Feb 2009
    19 Aug 2010
    Link to this post
       
  15. siby
    siby avatar
    48 posts
    Registered:
    21 Feb 2009
    19 Aug 2010
    Link to this post
    Hi,

    Am working with Blog and on clicking a post read more then am getting the error below.

    A required control was not found in the template for "Telerik.Blogs.Resources.ControlTemplates.Frontend.Modes.ListPageDetail.ascx". The control must be assignable form type "System.Web.UI.Control" and must have ID "content".
  16. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    19 Aug 2010
    Link to this post
    Hi siby,

    Make sure that you have the following controls in your template

    <asp:Panel ID="pnlContent" runat="server" CssClass="sf_postContent">
            <asp:Literal ID="content" runat="server"></asp:Literal>
    </asp:Panel>


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