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

Forums / General Discussions / Single blog post and multiple blog posts widget on same page

Single blog post and multiple blog posts widget on same page

12 posts, 1 answered
  1. Peter
    Peter avatar
    42 posts
    Registered:
    22 Aug 2011
    16 Sep 2011
    Link to this post
    Hi all!

    I've got a question about the blog posts widget. I have a blog page on which I have 2 "blog posts" widgets,

    1.    contains a list with all blog posts
    2.    contains a single blog post

    When I click on a blog post in the list, I want the content of the selected post in the single blog post content. The list should always be available. 

    The problem I now have is that both blog posts widgets get the same single post content, so my list is gone. What do I have to do to fix this?

    Thanks in advance!

    Regards,
    Peter


  2. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    17 Sep 2011
    Link to this post
    Hi Peter,

    You can edit one of the blogs widgets, go to Advanced and find the UrlKeyPrefix property and set some value there (or for both widgets, but these values must be different). This will differentiate the two widgets.

    Regards,
    Lubomir Velkov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Peter
    Peter avatar
    42 posts
    Registered:
    22 Aug 2011
    19 Sep 2011
    Link to this post
    Hi Lubomir,

    thank you for your answer. Your solution indeed differentiates both the blog widgets, but what I want is when I click a blog item in my list widget, the content of the selected item should be in in my other (single) blog widget and not in my list widget (this "blog" list stays the same all the time).

    Is this possible? Maybe I can use your solution in another way to fix this? 

    Thanks again!

    Regards,
    Peter
  4. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    19 Sep 2011
    Link to this post
    Hello Peter,

    In this case do the following:

    In the first blog posts widget go to Advanced mode and set ContentViewDisplayMode to "Master". Then go to ControlDefinition -> Views -> MasterBlogPostsFrontend and set AllowUrlQueries to false.

    Then go to the other blog posts widget and set its ContentViewDisplayMode to "Detail".

    This should do it.

    Kind regards,
    Lubomir Velkov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  5. Peter
    Peter avatar
    42 posts
    Registered:
    22 Aug 2011
    19 Sep 2011
    Link to this post
    Hi Lubomir,

    thank you for your answer, this solution did the trick!

    Regards,
    Peter
  6. Stephanie
    Stephanie avatar
    19 posts
    Registered:
    16 Mar 2011
    14 Oct 2011
    Link to this post
    Hello,

    I re-created the same concept with 2 blog widgets on the page, and the functionality works.  However, on my details blog (the widget that shows the full blog post) nothing shows up on the page to begin with.  Example:  Go to the blog page and left side content area is blank and right sidebar has the blogs list.  I have to click on a list item before a post shows up.  

    How can I set it so the latest published blog post will show up when a user first navigates to the blog page?

    Thank you,

    Steph
  7. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    19 Oct 2011
    Link to this post
    Hello Stephanie,

    Well, in order for something to be displayed in the Detail blog posts widget you have to redirect to the appropriate URL of the latest post - e.g. blogs-page/test-blog/2011/10/19/todays-post. You can assign a code-behind class to this page and add logic to do a Response.Redirect to the URL of the latest blog post that you could retrieve with BlogsManager.

    Kind regards,
    Lubomir Velkov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. Victoria
    Victoria avatar
    1 posts
    Registered:
    30 Jan 2012
    28 Oct 2013 in reply to Lubomir Velkov
    Link to this post
    I'm using two Blog post widgets too, one that lists the latest under a specific category and the other is the latest published across all blogs. I've tried the different solutions listed above but I can't seem to get them to work the way I want them to.

    Under the blue tab section:
    Behavior one- click on a safety & security article title and it opens the detail view within the widget. This is correct.

    Behavior two - click the latest post tab, then on the title or read more and it doesn't open up in detail view but rather back to the More safety & security article list view. How do I get it show the detail view within the widget?

    Here is the blog page that I'm referring to:  http://processautomationinsights.com/safety-security
    Any suggestions?
  9. Ivan D. Dimitrov
    Ivan D. Dimitrov avatar
    310 posts
    Registered:
    26 Mar 2015
    31 Oct 2013
    Link to this post
    Hi all,

     @Viktoria

    My suggestion is the following:
    Set the two widgets ContentViewDisplayMode to Master and then add a third one with ContentViewDisplayMode set to Detail. This way both your lists will stay once an article is clicked and the third widgets will display the views of the selected item.

    Regards,
    Ivan D. Dimitrov
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  10. jon
    jon avatar
    3 posts
    Registered:
    22 Apr 2013
    24 Apr 2014
    Link to this post

    This is also how to use Sitefinity 6 to show a product menu and a product on the same page. In other words if you have two controls on the same page, one is a product list widget and the other is a single product detail view widget.

    A typical menu and detail relationship.

     Is there a comprehensive reference to the Advanced configuration options for widgets? I have seen references to Microsoft documentation for these, maybe they are a standard solution.

    In any case thank you for answering this question.

     

     

  11. Lonestar
    Lonestar avatar
    1 posts
    Registered:
    14 Oct 2014
    01 Dec 2014
    Link to this post
    I have situation whereby i am using a standard Edition license for sitefinity CMS. Unfortunately, i keep receiving trial message when running my website. Can someone tell me how i can rid of that  random notification that keeps poppin up.
  12. Ivan D. Dimitrov
    Ivan D. Dimitrov avatar
    310 posts
    Registered:
    26 Mar 2015
    04 Dec 2014
    Link to this post
    Hi all,

    @jon

    You are correct - our widgets are extended Composite controls so there is information available in MSDN on the properties they expose. However we do have this Documentation article on the matter as well.

    @Lonestar

    This behavior is due to improper registration of your domain. For more information on how to get rid of the trial pop-up, please contact your dedicated account manager.

    Regards,
    Ivan D. Dimitrov
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
12 posts, 1 answered