Community Forums

Development Forum

Show/Hide Content Nav., etc.


You must be signed-in to post.

AuthorSubject
 
Page: 1
gtilflm
Subject: Show/Hide Content Nav., etc.Quote this post in your reply
Hi. I have 2.0 installed and I'm working on a custom module.

I'm wondering if there's a way to show/hide the Content Nav., etc. automatically if a certain page is accessed. So, the user clicks the tab of the module at the top, and the Content Nav., etc. is automatically "collapsed".

Is this possible?

Thanks.
Posted: 2013-10-26 17:23:56
greg

Avatar for greg
Subject: Re: Show/Hide Content Nav., etc.Quote this post in your reply
This used to be what happened when taking a test, though that does not seem case any more, at least in the current version. I'll mark it as a bug. You might take a look back through older versions (< 2.0) and see if you can find how it worked.

If you do find the answer please let us know and we'll try to get it put back in.
Posted: 2013-10-29 18:01:40
gtilflm
Subject: Re: Show/Hide Content Nav., etc.Quote this post in your reply
This may not be what you're looking for, but this code will create an image link that, if clicked, will toggle the side menu.

highlight_code('
<div id="menutoggle">
<a accesskey="n" href="javascript:void(0)"><img border="0" alt="Hide" title="Hide" src="[PATH TO MENU OPEN/CLOSE IMAGE]">
</a>
</div>')

So, I'm assuming that if you put the link to taking a test in highlight_code('<div id="menutoggle"></div>'), then it should work. But the menu would be closed as default after that and it would have to be re-opened.

Hope that helps.
Posted: 2013-11-01 20:03:23
 
Page: 1

You must be signed-in to post.

Related Articles