[TYPO3-dev] page target (bug?) and 4.0RC1
Zach Davis
zach at castironcoding.com
Fri Mar 10 23:31:14 CET 2006
Andreas Förthner wrote:
> Zach Davis schrieb:
>
>> I just upgraded a site to 4.0RC1 and I'm seeing a lot of links in the
>> frontend with a screwy target attribute:
>>
>> target="{$PAGE_TARGET}"
>>
>> Has anyone else noticed this behavior in 4.0RC1? If not, I'll assume
>> that I've misconfigured something...
>>
>> best,
>> Zach
>
> Hi,
>
> for me the target attribute is set as usual. Did you set it in your
> template record?
>
> Regards
>
> Andreas
The problem is that the constant isn't being subsituted in the
parseFunc. The PAGE_TEMPLATE constant setting is empty in my constants,
which I believe means that the target should be set to "page" by
default. Regardless of the default setting -- it should never be set to
the un-substituted constant {$PAGE_TARGET}.
The fix on this install is to override the constant substitution (which
seems to fail) by including the following two lines of TS in the template:
lib.parseFunc.tags.link.typolink.target =
lib.parseFunc_RTE.tags.link.typolink.target =
I'm surprised others aren't having this problem with RC1, since it seems
to me that the problem must lie in how constants are being substituted
into the typoscript. I guess there must be an explanation I'm not seeing.
Zach
More information about the TYPO3-dev
mailing list