Support Forum

  • Page:
  • 1

can i access a hiddebn panel from a menu item

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

I'm using Grid 1 and can't see how to use a menu item to open a hidden panel. have i been staring at the screen too long?
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
Last Edit: 13 years 7 months ago by blueshift.
The administrator has disabled public write access.
Not sure it is possible, at least not without some hackery.

I wouldn't know where to start though. Sorry.
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
This is the code thats used to trigger the panel:
<li id="toggle">
<a id="open" class="open" href="#nogo"><?php echo $openPanel ?></a>
<a id="close" style="display: none;" class="close" href="#nogo"><?php echo $closePanel ?></a>
</li>

Since its an id if you want to use it again then you will have to change this to a class and any of the other references in the javascript to a class as well.

eg
jQuery("#toggle a").click(function () {
jQuery("#toggle a").toggle();
});

We used an id rather than a class as it improves performance for the javascript.

Not sure how easy it is to add this to a menu item but you can easily drop it into a custom module and it should work.

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers