Hi All,
I have been trying to modify this following menumanager template to work with accesskeys
{if $count > 0}
{foreach from=$nodelist item=node}
current == true or $node->parent == true} class="tab-selected"{/if}>url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}
{/foreach}
{/if}
This code was taken from one of the download templates. I have attempted to cut in bits of the standard templates, but as soon as I fix some thing I break something else.
Any help or pointers welcome.
Thanks
Barry C
[solved] accesskey / menu manager PHP
-
- Forum Members
- Posts: 63
- Joined: Fri Jul 13, 2007 6:49 am
[solved] accesskey / menu manager PHP
Last edited by barry cooper on Mon Feb 11, 2008 9:21 am, edited 1 time in total.
Re: accesskey / menu manager PHP
What are you trying to achieve. Default CMSMS already works with accesskeys, as they can be passed thorugh the options-tab of a content-page. There is a field, where the accesskey could be entered.
Ronny
Ronny
-
- Forum Members
- Posts: 63
- Joined: Fri Jul 13, 2007 6:49 am
Re: accesskey / menu manager PHP
Hi Ronny,
I have put number 1 - 8 into the accesskey field on all of the pages and it does nothing. (using the access keys Alt shift and n (number) to load a given page.
I pulled up one of the preinstalled templates that uses a default menumanager module and that works.
The only difference I can see is that the menumanager module PHP has accesskey {if} statments in the code.
I think the answer to my problem is to add the correct statments to my code (see above).
My problem is my PHP is not good enough to do this and I need some help.
Does that make any sense?
The site I am working on is http://www.i-listener.com/
Thanks
Barry C
I have put number 1 - 8 into the accesskey field on all of the pages and it does nothing. (using the access keys Alt shift and n (number) to load a given page.
I pulled up one of the preinstalled templates that uses a default menumanager module and that works.
The only difference I can see is that the menumanager module PHP has accesskey {if} statments in the code.
I think the answer to my problem is to add the correct statments to my code (see above).
My problem is my PHP is not good enough to do this and I need some help.
Does that make any sense?
The site I am working on is http://www.i-listener.com/
Thanks
Barry C
Last edited by barry cooper on Sat Feb 09, 2008 3:03 pm, edited 1 time in total.
Re: accesskey / menu manager PHP
Yes, you must add the relative code:barry cooper wrote: I pulled up one of the preinstalled templates that uses a default menumanager module and that works.
The only difference I can see is that the menumanager module PHP has accesskey {if} statments in the code.
I think the answer to my problem is to add the correct statments to my code (see above)
Does that make any sense?
Code: Select all
{if $node->accesskey != ''} accesskey="{$node->accesskey}"{/if}{if $node->tabindex != ''} tabindex="{$node->tabindex}"{/if}
Code: Select all
{if $count > 0}
<ul class="tab-menu">
{foreach from=$nodelist item=node}
<li {if $node->current == true or $node->parent == true} class="tab-selected"{/if}><a href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}{if $node->accesskey != ""} accesskey="{$node->accesskey}"{/if}{if $node->tabindex != ""}>{$node->menutext}</a></li>
{/foreach}
</ul>
{/if}
-
- Forum Members
- Posts: 63
- Joined: Fri Jul 13, 2007 6:49 am
Re: accesskey / menu manager PHP
Thanks Alby,
A few small changes and it worked (code below). This code works with menu items that are live in the main menu pages.
Pages that are not in the main menu need to be hardcoded to make use of accesskeys.
project: www.i-listener.com
Thanks again
Barry C
{if $count > 0}
{foreach from=$nodelist item=node}
current == true or $node->parent == true} class="tab-selected"{/if}>
url}"{if $node->target ne ""} target="{$node->target}"{/if}{if $node->accesskey != ""} accesskey="{$node->accesskey}"{/if}{if $node->tabindex != ""}{/if}>
{$node->menutext}
{/foreach}
{/if}
A few small changes and it worked (code below). This code works with menu items that are live in the main menu pages.
Pages that are not in the main menu need to be hardcoded to make use of accesskeys.
project: www.i-listener.com
Thanks again
Barry C
{if $count > 0}
{foreach from=$nodelist item=node}
current == true or $node->parent == true} class="tab-selected"{/if}>
url}"{if $node->target ne ""} target="{$node->target}"{/if}{if $node->accesskey != ""} accesskey="{$node->accesskey}"{/if}{if $node->tabindex != ""}{/if}>
{$node->menutext}
{/foreach}
{/if}
Last edited by barry cooper on Mon Feb 11, 2008 9:21 am, edited 1 time in total.