I have a project which has it's all templates, css, layouts and images in the folder fileadmin/templates .
In my layouts I have multiple links to the images present in the fileadmin/images folder and it looks kinda complex to have all the links to be referred to fileadmin/images.
Example :
src="fileadmin/images/dog.jpg"
src="fileadmin/images/cat.jpg"
src="fileadmin/images/monkey.jpg"
Instead of doing this can I assign a object in the typoscript (..in the template) like
page.10 = FLUIDTEMPLATE
page.10{
variables{
paths.images=fileadmin/images
paths.css=fileadmin/css
paths.js=fileadmin/js
}
}
and access this from the HTML pages as
src="{paths.images}/cat.jgp"
src="{paths.js}/close.js"
I am using Typo3 version 6.0.4.
TypoScriptdoes not know about objects.TypoScriptis a nested PHP array that keys evaluated with some foreach loops and case statements. You could use names likepathImages, pathCss, pathJs. - pgampeTypoScriptdoes not know arrays, but only strings. - pgampe