[TYPO3] how to use fullStdWrap Ext. for ATagParams?

JoH info at cybercraft.de
Thu Mar 16 16:12:21 CET 2006


> NO.ATagParams.cObject = COA
> NO.ATagParams.cObject {
>     10 = TEXT
>     10.value = onClick="function(this.href,500,500); return false;"
>     10.if {
>        value = title1, title2
>        isInList.field = title
>     }
>     20 = TEXT
>     20.value =
>     20.if {
>        value = title1, title2
>        isInList.field = title
>        negate = 1
>     }
> }
> }

I checked this again and found a solution, since typolink is an stdWrap
function:

NO {
    allWrap.cObject = COA
    allWrap.cObject {
        10 = TEXT
        10.value = <div class="title" >|</div>
        10.if {
            value = title1, title2
            isInList.field = title
        }
        20 = TEXT
        20.value = <div class="standard">|
        20.if {
            value = title1, title2
            isInList.field = title
            negate = 1
        }
    }
    doNotLinkIt = 1
    stdWrap.typolink {
        parameter.field = uid
        ATagParams.cObject = TEXT
        ATagParams.cObject {
            value = onClick="function(this.href,500,500); return false;"
            if {
                value = title1, title2
                isInList.field = title
            }
        }
    }
}

Tested and working with fullStdWrap installed.

Joey

BTW: To enable fullStdWrap as a default you can set
config.fullStdWrap = 1

-- 
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





More information about the TYPO3-english mailing list