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

Forums / Developing with Sitefinity / select a single forum to be displayed on a page

select a single forum to be displayed on a page

14 posts, 0 answered
  1. TLsf
    TLsf avatar
    6 posts
    Registered:
    10 Jul 2008
    06 Oct 2008
    Link to this post
    Hi, what I am trying to achieve is to create a page where all threads from a particular forum are displayed. I want this forum to have a link in the navigation menu, but currently there's no way to do this. What visitors have to do is go through a list of forums, select a forum and then view the threads.

    How can I make a page where only a single forum that I choose is displayed, without a link to the All Forums page? Any ideas would be appreciated.
  2. Jason M
    Jason M avatar
    108 posts
    Registered:
    15 Jan 2007
    07 Oct 2008
    Link to this post
    We had the same issue and came up with a workaround.  Not sure if there's a better solution, but this works for us.

    Forums Admin Page
    1) Create a forums list admin page.
    2) Drag the Forums control onto the page.
    3) Click Edit and set the SingleForumPage property to the current page.  This is important as it will allow us to get the GUID for the specific forum.
    4) Publish and view the live page and click on the forum title.  You'll noticed a query string that looks like:
    ?mode=singleForum&forum=645616ae0-b91f-4d80-b38b-257cbffd3e99
    5) Copy and past this from your address bar, as you'll use this to show you're single forum
    6) Make sure to secure this page so only admins can view it, deny anonymous, etc

    Single Forum Page
    1) Create a page In the section of the site you'd like to have a single forum.  Drag all of the single forum controls onto the page (SingleForum, SIngleThread and EditPost).
    2) Edit each and set the misc properties (AllForumsPage, SingleForumPage, EditPostPage, etc) to your current single forum page.
    3) Publish the page and view live.  Nothing will appear, but when you add the query string you copied above it will show only that forum.

    If you want to add the forum to the left menu you can create a redirect to the single forum page with the query string.  Otherwise you can just use the link (+ query string) wherever you'd like.  Not sexy, but it works!

    Any questions, let me know.

    J
  3. TLsf
    TLsf avatar
    6 posts
    Registered:
    10 Jul 2008
    09 Oct 2008
    Link to this post
    Thanks, Jason. I am going to follow your suggestion. Two minor issues that came up are:

    1) I can't have a link from the navigation menu to the Single Forum, because I can't pass the Forum ID as a parameter. To fix this maybe I'll create a page that as soon as it opens redirects the user to the forum page.

    2) There's a Back To All Forums link that is displayed, but doesn't work. What I am thinking of doing is editing the Forums control template and removing that link.

    Once again, thanks for your help.
  4. Jason M
    Jason M avatar
    108 posts
    Registered:
    15 Jan 2007
    09 Oct 2008
    Link to this post
    No worries!

    I'd suggest the following:

    1) To get around this just enter the entire URL, don't select "Select a page from this site".  You can also add this to a menu by creating a new page and selecting "External page (outside Sitefinity)".

    2) To remove the "Back to All Forums" link you can edit the Forums templates in \cms\Sitefinity\ControlTemplates\Forums\.

    Any more questions, let me know!
    J
  5. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    09 Oct 2008
    Link to this post
    Hi,
    I would like to thank you for this discussion.
    Jason, we noticed your replies and willingness to help. We have updated your Telerik account for this.

    Regards,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Jay
    Jay avatar
    25 posts
    Registered:
    12 May 2008
    16 Jan 2009
    Link to this post
    Hi,

    Is this "workaround" the standard solution for implementing a single forum on a page?

    Kind Regards

    Jay Macilquham
  7. Jay
    Jay avatar
    25 posts
    Registered:
    12 May 2008
    16 Jan 2009
    Link to this post
    Hi,

    One further question, are you unable to specify a custom control template for forums? As you can with the news module etc

    I know I could edit the default control template but I need two different look and feels for the forum pages.

    Kind Regards,

    Jay
  8. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    20 Jan 2009
    Link to this post
    Hi Jay,

    Unfortunately this is not supported by the forums control either. We are already working on migrating the forums to the Generic Content architecture, so this will be possible with the future versions.
    The only thing you could do now, is to set each control to use different CssClass style.

    Sincerely yours,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  9. Nick
    Nick avatar
    10 posts
    Registered:
    09 Jun 2008
    20 Apr 2010
    Link to this post
    This seems to work with threads too.
    If you hover over your thread link, you get the GUID of the thread. (After OpenThread$)
    change the URL link querystring to
    ?mode=singleThread&thread=<GUID>
    You'll go straight to the thread.

    Nick
  10. Kristian
    Kristian avatar
    214 posts
    Registered:
    03 Jun 2010
    02 Jul 2010
    Link to this post
    This is great, but it breaks functionality if you try to implement a search feature into your forum. Is there a way to create a custom control that will display a single forum? Actually I would like to have a page display all forums under a single category. This way I don't have to hack up my links and will still be able to search my forum.

    Thanks,
    -Kristian
  11. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    04 Jul 2010
    Link to this post
    Hi Kristian,

    You could take a look at Show single forum

    Sincerely yours,
    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
  12. Alex
    Alex avatar
    1 posts
    Registered:
    21 Sep 2010
    21 Sep 2010
    Link to this post
    Hello, great work around.  However I'm having trouble with creating a New Thread.  When I click the link I get a 404 error, can't find the page?  I've tried using the full URL in my Misc fields, half the URL nothing seems to work.  Do I need to use a different URL?
  13. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    22 Sep 2010
    Link to this post
    Hi Alex,

    Add SingleThread and EditoPost controls on the same page. Set

    • AllForumsPage
    • SingleThreadPage
    • EditPostPage

    properties to the same page on which SingleForumCustom control resides. I attached a sample video.

    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
  14. Thavarajah
    Thavarajah avatar
    48 posts
    Registered:
    15 Oct 2010
    18 Oct 2010
    Link to this post
    Hi All,

    Its helped me a lot!!

    Thanks.
Register for webinar
14 posts, 0 answered