[TYPO3-english] Typoscript: override part of current?

Christopher Torgalson bedlamhotel at gmail.com
Wed Apr 1 00:40:29 CEST 2009


Hi,

On Tue, Mar 31, 2009 at 3:35 PM, Jigal van Hemert <jigal at xs4all.nl> wrote:
>
>> Jigal van Hemert pisze:
>>> In a piece of TS I set ....typolink.parameter.current = 1, but I want to
>>> force parameter.extTarget = _blank.
>>
>> but this works ok
>>
>> page.100 = TEXT
>> page.100 {
>> value = aaa
>> typolink.parameter = www.google.com
>> typolink.extTarget = _blank
>
> //db_field is retrieved earlier...
> 10 = TEXT
> 10.field = db_field
> stdWrap.split {
>        token.char = 10
>        cObjNum = 1
>        1 = TEXT
>        1 {
>                override = <img src="fileadmin/img.gif" />
>                override.if.isTrue.current = 1   # only display image if there is a url!
>                typolink {
>                        parameter.current = 1
>                        parameter.extTarget = _blank
>                }
>        }
> }
> ...and here the extTarget won't work, even though all urls are external.
> I've tried various combinations with and without override, stdWrap, in the
> earlier override, etc.

The TS in the code above that attempts to define the external target
for the link does not resemble any option described in the TSref
section on .typolink [1], so it can't possibly work. Try this instead:

typolink {
    parameter.current = 1
    extTarget = _blank
}


[1] http://typo3.org/documentation/document-library/references/doc_core_tsref/4.2.0/view/1/5/#id4174763

-- 
Christopher Torgalson
http://www.typo3apprentice.com/


More information about the TYPO3-english mailing list