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

stem stema at web.de
Thu Mar 16 16:47:32 CET 2006


hi Joey,

thanks a lot for your help. but it doesn't work.
the parameter is not added in the a-tag of the menu items called title1 
and title2.
....also, when i enable the fullstdwrap extension by config.fullStdWrap = 1

you've mentioned that it is working for you. what might be wrong?
i'm using typo3 3.81 and templavoila.

that's the code for the second level of my menu.

lib.menu.2 = TMENU
lib.menu.2 {
fullStdWrap = 1   # to enable fullstdwrap
expAll = 1
NO.allWrap.cObject = COA
NO.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">| </div>
    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
             }
         }
     }
   }

}



JoH wrote:
>> 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
> 



More information about the TYPO3-english mailing list