[TYPO3-english] stdWrap.required with undefined constants

Steffen Gebert steffen.gebert at typo3.org
Fri Feb 17 22:10:11 CET 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

do you know a way, how to handle undefined constants with stdWrap.required?

Constants:
myconfig.foo = bar

Setup:
a = TEXT
a.value = {$myconfig.foo}
a.required = 1

I have a setup, where myconfig is cleared on every sub-site, thus it
turned out that introducing a new config option below myconfig isn't
that easy and I have to add an empty
myconfig.foo =
to every sub site.

The problem is that the constant stays unreplaced, thus required sees
"{$myconfig.foo}" as content, which is obviously not an empty string.

Any way to deal with (via TS)?

Only option (as bug fix) I see is to replace everything, which looks
like a constant, but got not replaced while replacing all constants.
But that's more a general issue and doesn't only cover required but a
general "do you want to have {$blaa} in your output, or should {$blaa}
have been replaced with an empty string before?".

Kind regards
Steffen

- -- 
Steffen Gebert
TYPO3 v4 Core Team Member
TYPO3 Server Administration Team Member

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org

I work for TYPO3 solely in my spare time. If you think that
my work helps you running your business, you are invited to
send me a donation via PayPal to this email address. Thanks
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPPsIzAAoJEIskG/rSlyw4mFIH/0VTtN1fpEC+1/FW6cyMEr6I
hVROfN4+TJWitYonP2u02hHLauTOQNyOW4w3sM37GqQ52IAe5nFHO1+FWKQNMGMf
aJ0mTcociKw8W6ZHndPwODMsMIbq6vc4A/qau+UJxYcx6ubJQr7GdsYZiEW/V3A4
CscxpgipIWb9gDLZURZILzxuuTYzr82ardEglAkLTdQQ53+hfkOz+/ma8mXiJK+j
6HtnvmcXA52W8sKittl2Qv0UaPqwA9xCUHkGo2wk1cX+N1lyNHb+oLTLmVci0SQf
0vDlzeLySXsH9os3bSvEcI4KwNzhlgp0I31wvQerp3rDBF/dQTIxCCZoFd0gh7I=
=Csvl
-----END PGP SIGNATURE-----


More information about the TYPO3-english mailing list