View Full Version : Collapse Menu - start collapsed?
vegiemite
11-13-2006, 04:32 PM
Is there a way to have a menu load as collapsed and then require a click to view the full view?
khanh le
11-13-2006, 04:41 PM
This feature is not ready for this version of collapsed module.
stevek2
11-25-2006, 12:30 AM
using jazibal is there a minor tweak to the code to have all menu's start collapsed?
pakojoom
12-07-2006, 12:52 PM
I've found a way to workaround this problem.
- Edit your "ja.collapse.js" file locate in : /modules/ja_collapsedmodules/ja.collapse.js
- in this file, you have to find the function "initColumn()"
- at the very bottom of this function just before the last " } " juse ad this :
hc = getcookie("ja-hiddencolumn");
if ( hc != "" ) { collapseAll();} else { expandAll() ; }
It works for me here : http://www.creation-luminaires.fr/
vegiemite
12-07-2006, 01:58 PM
That doesn't seem to do anything for me. I noticed you added those lines at the beginning of the initColumn() function on your script.
I cleared cookies and load the page but the modules still load expanded.
Any ideas?
pakojoom
12-07-2006, 02:18 PM
At the begining : yes : i'm trying other solutions because my soltions works but not perfectly..
pakojoom
12-07-2006, 03:16 PM
I don't know iy you have notice that if you want to hide this module, yes it works but when the page il loading you can see this module appear and disappear. This is because the javascript code who made that come to late.
For instance, I just modify the /modules/mod_ja_collapsedmodules.php file to correct this.
I'm still working on the "auto hide function"
Ha Le-Viet
12-08-2006, 07:01 AM
We've released the 1.0.1 version of JA Collapsed Module. The "Hide on First Load" feature has been added to this version. Please uninstall the previous version before install the new one.
Regards,
Ha Le-Viet.
pakojoom
12-08-2006, 08:46 AM
Yes, thank you but...
The module is shown first, and hide after. This is not very elegant
Look at : http://www.creation-luminaires.fr/a_propos_d'oyallon_creation.html
I use it for the "stastisques modules"
You will see you module show and hide quickly. Just above you will see another module "Newsletter" which use another slide function and still hide when the page is loading.
If you could do the same behavior for you extension it wil be great. :)
Thanks
aelling
12-08-2006, 10:06 PM
The collapsible module is great, however, if the module would hide first like Pakojoom suggested it would be outstanding! Thanks for your work in producing such a great Joomla extension.
aelling
12-12-2006, 07:41 PM
Also I noticed that the modules do not collapse or expand when viewed with the Safari (at least Safari 1.0.3 that I have). This, especially, becomes an issue if a person has selected 'Hide on First Load' because the user will never see the links in the module if they are using Safari. I also noticed that the same thing happens on the JA Zibal template when viewed in Safari.
Ha Le-Viet
12-13-2006, 01:53 AM
Hi aelling,
I have tested the module with Safari 2.x in Mac OS X and the module worked well.
Thanks for reporting anyway. The next version of the module will exclude incompatible browsers.
Regards,
Ha Le-Viet.
obendega
01-25-2007, 06:49 AM
pakojoom, any luck on keeping the modules from flashing when loading the page? I love this module but the "hide on first load" feature doesn't work very well.
pakojoom
01-25-2007, 07:40 AM
No, sorry, i don't have a lot of time for finding a solution... Just have to wait a new release from the great Joomlart's team...
obendega
01-25-2007, 07:48 PM
Thanks for the response pakojoom!
What script are you using for the slider that hides your newsletter? That seems to work great.
pakojoom
01-26-2007, 11:57 AM
take a look at http://demo.joomlaworks.gr/content/view/30/2/
obendega
01-31-2007, 01:42 AM
I used the slider pakojoom posted in the previous message and I got it to do what I wanted! There is NO flicker on load.
Check it out on the top menu here: www.sdsovation.com (http://sdsovation.com/)
Here is how I made it work: I published the Insert Static Content (http://forge.joomla.org/sf/frs/do/listReleases/projects.mod_insertscontent/frs.mod_insertscontent) module and linked it to a content item. In that content item I put this code:
{slide=Who's Online}{mosloadposition jp}{/slide}
{slide=Chat}{mosloadposition user5}{/slide}
{slide=Attending}{mosloadposition jp2}{/slide}
{slide=Latest Member}{mosloadposition user6}{/slide}
and voila!
If anyone has any questions on how to get this to work let me know.
pakojoom
02-02-2007, 08:54 AM
Yes it works fine :-) Except there is no cookies gestion to remember the last postion the user have decided...
obendega
02-03-2007, 03:33 AM
Yeah as soon as Joomlarts module doesn't flash on load I will switch back to that.
stevewh
02-25-2007, 09:28 PM
So is there any version of this that will work in 1.5 (not in legacy mode).
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.