[solved] page description doesn not appear

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
poliphilus
New Member
New Member
Posts: 2
Joined: Sun Feb 06, 2011 2:50 pm

[solved] page description doesn not appear

Post 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?
Last edited by poliphilus on Sun Feb 06, 2011 5:14 pm, edited 1 time in total.
uniqu3

Re: page description doesn not appear

Post 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>
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: page description doesn not appear

Post 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.
poliphilus
New Member
New Member
Posts: 2
Joined: Sun Feb 06, 2011 2:50 pm

Re: page description doesn not appear

Post 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>
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [solved] page description doesn not appear

Post 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...
Post Reply

Return to “CMSMS Core”