[TYPO3] wraping TMENUITEM linktext
Nagita Karunaratne
nagita.k at gmail.com
Tue Jul 25 22:27:10 CEST 2006
Here is an example of the structure I want to create.
If the first level link has a submenu the </a> tag is replaced by <!--[if IE
7]><!--></a><!--<![endif]-->
<div id="MainMenu">
<div class="menu">
<ul>
<li><a href="index.php?id=93">User Listing</a></li>
<li>
<a href="index.php?id=22">Background<!--[if IE 7]><!--></a>
<!--<![endif]-->
<table>
<tr>
<td>
<ul>
<li>
<a href="index.php?id=30" class=
"drop">Alpha <!--[if IE 7]><!--></a>
<!--<![endif]-->
<table>
<tr>
<td>
<ul>
<li><a href=
"index.php?id=35">one</a></li>
<li><a href=
"index.php?id=40">two</a></li>
</ul>
</td>
</tr>
</table><!--[if lte IE 6]></a><![endif]-->
</li>
<li><a href=
"index.php?id=25">Beta</a></li>
</ul>
</td>
</tr>
</table><!--[if lte IE 6]></a><![endif]-->
</li>
</ul>
</div>
</div>
On 7/25/06, JoH <info at cybercraft.de> wrote:
>
> > But I want to wrap just the text not the whole link.
>
> So you need at least one of the itemstates IFSUB, ACT, ACTIFSUB, CURIFSUB.
>
> > For example to wrap with <xyz> </xyz> becomes:
> > <a href="domain.com"> <xyz> Domain </xyz> </a>
> > I need this because I don't think you can wrap just the '</a>' tag.
> > Or am I wrong?
> > I REALLY want to wrap this:
> > <a href="domain.com"> Domain <xyz> </a> </xyz>
> > becasue I want to put a conditional execution on that tag. But I
> > don't think this is possible.
>
> What do you mean by "conditional execution"?
> If <xyz> stands for a real tag the resulting HTML will definitely not
> validate.
>
> But anyway here's a solution:
>
> IFSUB = 1
> IFSUB {
> linkWrap = <xyz>|
> ATagBeforeWrap = 1
> allWrap = |</xyz>
> }
>
> This only makes sense, if you enabled the "expAll" property.
> I guess the best solution would be to use ACT + CUR + CURIFSUB.
> ACT will be the state for all "parent" items of the currently opened menu
> tree.
> CURIFSUB will be triggered when the current item itself is the "parent"
> item.
> CUR will be used when the current item has no child pages.
>
> ACT = 1
> ACT {
> linkWrap = <xyz>|
> ATagBeforeWrap = 1
> allWrap = <li>|</xyz></li>
> }
> CURIFSUB < .ACT
> CUR = 1
> CUR {
> linkWrap = |
> allWrap = <li>|</li>
> }
>
> Not tested, but should be working.
>
> Joey
>
> --
> Wenn man keine Ahnung hat: Einfach mal Fresse halten!
> (If you have no clues: simply shut your knob sometimes!)
> Dieter Nuhr, German comedian
> openBC: http://www.cybercraft.de
> T3 cookbook: http://www.typo3experts.com
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list