[TYPO3-dev] Reuse constant in constants.txt

Florian Rival contact at oktopuce.fr
Mon Dec 14 09:58:56 CET 2015


Hi,

Sure you can, the aim of the constants are there reusability.

With TS, you can define a constant and redefine it later in another part 
of the page tree if needed.

But maybe you want to re-use a constant for another constant, that's not 
possible, you can only use constants in setup TS.

Regards,
Florian

Le 13/12/2015 13:12, NGUYEN Duc Quan a écrit :
> Hi
>
> I am quite new to the whole typo3 and typoscript world. So I was 
> wondering if it would be possible to reuse a constant defined in 
> constants.txt?
>
> # This is the main constant
>
> RES_DIR = EXT:myextension/Resources
>
>
>
> # These constants should use the main constant
>
> JQUERY_FILE = {$RES_DIR}/Public/js/jquery.min.js
> BOOTSTRAP_FILE = {$RES_DIR}/Public/js/bootstrap.min.js
> COACHINGCLUB_FILE = {$RES_DIR}/Public/js/coachingclub.js
>
>
>
> Thanks for the clarification!
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev




More information about the TYPO3-dev mailing list