General Community > WebsiteBaker Website Showcase
ported simple beauty template
mopey:
I do like show_menu2(), and I'm glad it's being included. Though show_menu2 also will spit out the target at least by default... I think (at least I couldn't get it to not include the target).
$aMenuOpen has an attribute
[target] Page target for the <a> tag
that looks promising. But both
[a] <a> tag (no class): '<a href="[url]" target="[target]">'
[ac] <a> tag including class: '<a href="[url]" target="[target]" class="[class]">'
specify a target (which I managed to set 'target=""' but couldn't get rid of the target completely).
Not only that, the target attribute seems to be builtin to the core. eg class.frontend, template.inc, many of the admin pages, etc. I think it would be more of a pain than it's worth to change (and like you said, a lot of people like the target attribute). But it isn't valid strict xhtml >= 1.0. Anyway, maybe the showmenu2 page should specify that it generates valid "transitional xhtml 1.0" rather than "xhtml"? Or maybe I just can't get it working properly.
ruebenwurzel:
Hello,
--- Quote ---Or maybe I just can't get it working properly.
--- End quote ---
You give the answer to your question in the post above yourself. :wink: . It is very simple and directly in front of your eyes, think even to simple that you see it. :-D.
simply change $aItemOpen parameter wich is default:
--- Code: ---'[li][a][menu_title]</a>'
--- End code ---
to:
--- Code: ---'[li]<a href="[url]">[menu_title]</a>'
--- End code ---
This gives you a link without target
Matthias
mopey:
ahh, yes. Thanks Matthias.
Navigation
[0] Message Index
[*] Previous page
Go to full version