Hi,

As far as I'm concerned, I add in your_config_directory/php_config.php 
(category style = tree):
- to open all categories: $plugin_jsTocInitList[] = "$(\'#toc .opcl 
img\').click();"
- to open only the first one: $plugin_jsTocInitList[] = "$(\'#toc .opcl 
img:first\').click();"
- to open all but first: $plugin_jsTocInitList[] = "$(\'#toc .opcl 
img:gt(0)\').click();"
- ...

With this method, you can use this or not in different configurations 
and the pmapper code keep unchanged (so it is easier to update).

Thomas

Ivan Mincik a écrit :
> Hi,
> to start p.mapper with first category opened and others collapsed I have 
> in javascript/toc.js this modification:
>
> /**
>  * Initialize TOC tree
>  */
> function treeInit(catStyle, grpStyle) {
>     var catcList = $('div.catc');
>     for (var i=0; i<catcList.length; i++) {
>         catcList[i].style.display='none';
>     //--TOC will start with closed categories if next line is removed
>     //    tg(catcList[i].id);
>     }
>
>     // first category is open
>     tg(catcList[0].id);
>
>     // collapse all groups
>     if (PMap.grpStyle == 'tree') {
>         $('div.grpc').hide();
>     }
>
>     // check/enable default groups
>     setDefGroups();
>
>     // check/enable all categories
>     $("#toc [EMAIL PROTECTED]'catscbx']").check('on');
>
>     // run all scripts after init of toc
>     tocPostLoading();
> }
>
> Ivan
>
> On Tuesday 10 June 2008 16:08, Gabriel Messner wrote:
>   
>> Hi all,
>>
>> I´d hugly appreciated if anyone could tell me how to configure pmapper to
>> choose wheather collapse or expand layers in TOC when I run pmapper.
>>
>> Thanks in advance.
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> _______________________________________________
>> pmapper-users mailing list
>> pmapper-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>>
>>     
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>
>
>
>
>
>   
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to