Issue Bug Closed

#15098add option to use ts "config.linkVars" as an array not as a list

old_martinficzel 10/24/05, 10:05 updated 08/12/06, 14:20

Description

the problem is today that the ‘config.linkVars’ object is a comma seperated list so every value has to be added in the same ts-template. that makes it harder to split independent parts of ts into different templates.

as an example i usually do all language related stuff in a special basis template and i always wonder why i have to add the linkVar “L” in the main template

I would suggest to add an alternative syntax :
— old —
config.linkVars = foo, bar

— new —
config.linkVars.my_foo_var = foo
config.linkVars.my_bar_var = bar

just a small change ( i think in the typolink function ) and imho it should not affect the old way since in PHP “linkVars” and “linkVars.” are different values.

it’s just like the difference between page.stylesheet and page.includeCSS.[array]

(issue imported from #M1722)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.