solved Adding the Forum topic titles to a widget on the main page

Deb W.
Deb W.
@deb-w
8 years ago
136 posts
I have a widget set up on my main page to display the latest discussion threads (both new and those that have been commented upon).

The title for each conversation shows up fine when it's a new post. But when it's something that someone has commented on, it just says "View topic". How can I make it give the title of the post when it's been updated? See attached for example.

updated by @deb-w: 03/28/17 11:00:01PM
Deb W.
Deb W.
@deb-w
8 years ago
136 posts
attached is the coding I have for the widget:
paul
@paul
8 years ago
4,326 posts
Try ordering the forum items by 'forum_updated' and select ' descending (numerical)'.
Only the first posts in forum threads have this field so they will also have the forum_title field.


--
Paul Asher - JR Developer and System Import Specialist
Deb W.
Deb W.
@deb-w
8 years ago
136 posts
should I still leave the custom code? Or use the default template for it? I know I got that code from someone on my last migration to JR because we wanted it to say "See all".

What about the search conditions?
paul
@paul
8 years ago
4,326 posts
I've made it into a Template Code widget with this in the template -

{jrCore_list module="jrForum" search1="forum_profile_id = 2" order_by="forum_updated numerical_desc" limit="5" quota_check=false}

Forum lists are a bit different as they nearly always need that quota_check=false parameter to make them work, so doing it this way allows that to be added. Its needed because those posting on forums don't always have the Forum module enabled in their quota, so this parameter tells the jrCore_list call not to check for the Forum module being enabled.


--
Paul Asher - JR Developer and System Import Specialist
Deb W.
Deb W.
@deb-w
8 years ago
136 posts
This looks great... just one thing missing.... We had it saying "See all" (just like most of the other boxes on the main page). Can you add that? (I'm so demanding!)
updated by @deb-w: 10/26/16 03:07:47PM
paul
@paul
8 years ago
4,326 posts
Done


--
Paul Asher - JR Developer and System Import Specialist
Deb W.
Deb W.
@deb-w
8 years ago
136 posts
My hero. :-)