[Typo3-dev] HMENU: don't open mailto-links in new pages

JoH info at cybercraft.de
Thu Jun 30 15:52:31 CEST 2005


>>> NO {
>>>     stdWrap.cObject = CASE
>>>     stdWrap.cObject {
>>>         key.field = doktype
>>>         default = TEXT
>>>         default {
>>>             field = title
>>>             wrap = blah
>>>         }
>>>         1 = TEXT
>>>         1 {
>>>             field = title
>>>             wrap = blubb
>>>         }
>>>     }
>>> }
>>>
>>> optionSplit will work for the _whole_ CASE object, so I don't see
>>> why it should be necessary to have additional confusion by adding
>>> at least 12 new
>>> itemstates.
>>
>>
>> Well seems to work also in sub-levels IF you define ALSO 'IFSUB'!
>>
>> If yuo define ONLY 'NO' and the page has sub-pages,
>> sub-pages will not be rendered at all!
>
> BUT it still has problems!
> If you want for docktype '3' that it woudl have
> different linkWrap and allWrap + doNotShowLink=1,
> that doesn't work - for 'stdWrap.cObject = CASE' you can define
> just 'wrap'

You can define almost anything with stdWrap.
I you dont want to show a link:

3 = TEXT
3 {
value =
wrap = blubb
}

if you want something before and/or after the link and still no link


3 = TEXT
3 {
prepend = TEXT
prepend {
    value = this is before
    wrap = poop
}
value =

append = TEXT
append {
    value = this is before
    wrap = whatever
}
}

another approach for the same problem but with link + wrap around
everything:

3 = COA
3 {
stdWrap.outerWrap = <div class="doktype3">|</div>
10 = TEXT
10 {
    value = this is before
    wrap = poop
}
20 = TEXT
20 {
    field = title
    wrap = blubb
}
30 = TEXT
30 {
    value = this is before
    wrap = whatever
}
}

> stdWrap.cObject = CASE works TOO LIMITED!

As usual the "limit" is just in front of the screen ;-)

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.openbc.com/go/invuid/Jo_Hasenau






More information about the TYPO3-dev mailing list