WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

Du bist nicht angemeldet.

#1 20.01.2018 10:25:41

casi
Mitglied

ShowMenu2 title tag

Hi. How can I remove the mouseover

<li class="menu-sibling"><a href="/pages/mitgliedschaft.php" target="_top" title="Mitgliedschaft">Mitgliedschaft</a>

tag (title="Mitgliedschaft") from the menu2? Thank you.

Offline

#2 20.01.2018 10:38:25

florian
Administrator

Re: ShowMenu2 title tag

Use a custom menu call in your template, sth. like this:

show_menu2(
			$aMenu          = 1,
			$aStart         = SM2_ROOT,
			$aMaxLevel      = SM2_ALL,
			$aOptions       = SM2_ALL|SM2_PRETTY|SM2_BUFFER,
			$aItemOpen      = '<li><a href="[url]" class="[class]" target="[target]">[menu_title]</a>',
			$aItemClose     = '</li>',
			$aMenuOpen      = '<ul>',
			$aMenuClose     = '</ul>',
			$aTopItemOpen   = false,
			$aTopMenuOpen   = '<ul>'
		  );	

Please note: it depends on your template how the customized call has to look like, see https://sm2.wbce-cms.org/media/README.en.txt for details.
The default [a] placeholder always generates the title tag.
Another option might be changing the include.php of SM2, just comment out lines 231 and 235, but this modification gets lost on each update.

Beitrag geändert von florian (20.01.2018 10:41:02)


Code allein macht nicht glücklich. Jetzt spenden!

Offline

#3 20.01.2018 11:05:44

casi
Mitglied

Re: ShowMenu2 title tag

Thank you!

Offline

Liked by:

florian

#4 20.01.2018 18:02:09

bernd
Developer

Re: ShowMenu2 title tag

Another way would be, to use "SM2_NO_TITLE" in $aOptions:

$aOptions       = SM2_ALL|SM2_PRETTY|SM2_BUFFER|SM2_NO_TITLE,

... nein in Europa verwenden wir beim Programmieren nicht € statt $ ...

Offline

Fußzeile des Forums

up