Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hiding forums on forum list page

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to hide the forums of a category on the welcome page (when you clik on the category title, it hides or shows the forums). Any advice to do this ? I suppose that I will modify forum_list.htm and eventually some stuff in forumAction ...

Any tip would be welcome..

Thanks

[originally posted on jforum.net by rhum26]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should be able to do this with just a template modification. I do this in a lot of my code by wrapping the stuff I want to show/hide in divs and using a couple of styles like:



Then I use some JavaScript code that checks the div's className property and swaps in the style. E.g.:



This function is tied to an onclick event on the page. E.g.:



Contributions back via JIRA always welcome.
[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, that helps a lot !
[originally posted on jforum.net by rhum26]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic