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

Forums / Developing with Sitefinity / Blogs Expanded List - title still hyperlinked to Item page

Blogs Expanded List - title still hyperlinked to Item page

6 posts, 0 answered
  1. Andrew Wrigley
    Andrew Wrigley avatar
    63 posts
    Registered:
    01 Sep 2009
    22 Oct 2010
    Link to this post
    Hi

    I'm using sitefinity 3.7

    I have to provide links to the content of a blog based on tags and categories.  The "obvious" way seemed to be to use the QueryString Keys, but this resulted in a number of problems:  mainly, when you click the Back to List links from the item pages, you get routed back to the unfiltered list, instead of persisting the QueryStrings.

    OK.  So they are all short posts and I can just display the QueryString filtered content as an expanded list, right?  Well, sort of, so long  as the user doesn't click on the hyperlinked title that sends them to the item page and we're back to square one.

    So what I need is:

    1.  A link to the video that shows how to derive a custom BlogPosts control (I'm sure I have seen one, but can't for the life of me find it now).  With a MyBlogPosts control, I imagine myself controlling what gets displayed and being very happy, with time to go out with the wife.

    2.  If 1. is not available, a link to articles, KBs, samples or whatever to help me to get started and be at least content and be able to promise the wife that we will go out next week.

    3.  Any advice as to what I should be doing, if not the above.  You don't need to tell me to just switch the pc off and go out anyway cos that's what I'll do.  I love her, see?

    Part of the problem is that I am using the Sitefinity blogs "creatively":  I am using them to hold categorised and tagged information that the user can easily navigate.  Ie, they are not just lists of me, me, me posts, but instead, for example, lists of hotel accommodation in South America, categorized by country and tagged by available activities, such as dancing tango, samba or lambada.

    Should I develop a custom module for this?  How much work would that be?

    Thanks any suggestions.

    Andrew


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    24 Oct 2010
    Link to this post
    Hi Andrew,

    Here are several posts that shows how you can create a custom control that inherits BlogPosts and override its methods.


    You can alter the "back" link inside ListPageDetails.ascx (or other ) template and append one of the built-in QueryStrings

    CategoryKey - BlogCatID
    TagItemKey - BlogTagID

    If you pass one of these QueryStrings in the url with some value the BlogPosts control will be automatically filtered and you do not have to extend it.

    to filter the list.
    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. Andrew Wrigley
    Andrew Wrigley avatar
    63 posts
    Registered:
    01 Sep 2009
    24 Oct 2010
    Link to this post
    Thanks Ivan, will look at those posts.
  4. Andrew Wrigley
    Andrew Wrigley avatar
    63 posts
    Registered:
    01 Sep 2009
    25 Oct 2010
    Link to this post
    Ivan

    There was a video that showed different approaches / scenarios for creating controls.  Could you point me at it, I can't find it now on the site.

    Thanks

    Andrew
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    25 Oct 2010
    Link to this post
    Hello Andrew,

    You could take a look at Creating Highly Usable & Distributable Sitefinity Controls

    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
  6. Andrew Wrigley
    Andrew Wrigley avatar
    63 posts
    Registered:
    01 Sep 2009
    25 Oct 2010
    Link to this post
    Ivan, I think that is the one I am looking for, many thanks
Register for webinar
6 posts, 0 answered