Page 1 of 1

[solved] page description doesn not appear

Posted: Sun Feb 06, 2011 3:29 pm
by poliphilus
I have two websites. One runs with CMSms 1.6.3 and the other with 1.0.6 in the same conditions / provider.
I want to use the Description information (Content > Page > Options > Description (attribute title)). In version 1.0.6 it works perfectly, showing the description text as mouseover effect of the corresponding navigation link.
In version 1.6.3, I put the description text in the same way, but this effect does not work. I checked the html source code of the page and I noticed that the html link element does not contain any title attribute which is needed for this effect. Is this a bug or did I make a mistake?

Re: page description doesn not appear

Posted: Sun Feb 06, 2011 4:28 pm
by uniqu3
Open your current MenuManager Template, and edit it.

Where you see something like

Code: Select all

<a href="{$node->url}"><span>{$node->menutext}</span></a>
add the title attribute.

Code: Select all

<a href="{$node->url}" {if $node->titleattribute}title="{$node->titleattribute}"{/if}><span>{$node->menutext}</span></a>

Re: page description doesn not appear

Posted: Sun Feb 06, 2011 4:34 pm
by Jos
If I understand correctly you need it to appear in the menu?

Adding the parameter loadprops='1' to the {menu} tag might help.

The cmsms versions you use are not supported anymore, so it's a good idea to update as soon as possible.

Re: page description doesn not appear

Posted: Sun Feb 06, 2011 5:11 pm
by poliphilus
uniqu3 wrote:Open your current MenuManager Template, and edit it.

Where you see something like

Code: Select all

<a href="{$node->url}"><span>{$node->menutext}</span></a>
add the title attribute.

Code: Select all

<a href="{$node->url}" {if $node->titleattribute}title="{$node->titleattribute}"{/if}><span>{$node->menutext}</span></a>
Thank you very much for your immediate reply. Your answer is the solution of my problem.

Surpisingly the original template of the older CMSms version contains this code (template simple_navigation). The more recent version of CMSms offers the same template name but it does not work well together with the Options which can be selected from Contents > Pages > Options. I would expect that the option I select here have a adequate source code (as it used to be in the older CMSms versions). The need for modifications of source code makes it difficult for beginners who do not know php so well. Was there a significant need to reduce the source code in the template? Only the menutext option left. Selection of all other options (e.g. accesskey, tabindex) will not work without changing the corresponding source code.

CMS 1.6:
<a href="{$node->url}" {/if}><span>{$node->menutext}</span></a>

CMS 1.0
<a href="{$node->url}"{if $node->accesskey != ''} accesskey="{$node->accesskey}"{/if}{if $node->tabindex != ''} tabindex="{$node->tabindex}"{/if}{if $node->titleattribute != ''} title="{$node->titleattribute}"{/if}{if $node->target != ''} target="{$node->target}"{/if}><dfn>{$node->hierarchy}: </dfn>{$node->menutext}</a>

Re: [solved] page description doesn not appear

Posted: Sun Feb 06, 2011 8:45 pm
by Dr.CSS
You may notice some new menu templates have accessible_ in front of them, these are the ones that have all the attributes you are looking for, they were removed because not everyone needed all those calls in their sites, if you need them use one of the accessible_ menu templates call in the {menu} tag...