Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Hiding forums on forum list page

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, that helps a lot !
[originally posted on jforum.net by rhum26]
 
reply
    Bookmark Topic Watch Topic
  • New Topic