Project

General

Profile

Actions

Bug #15098

closed

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

Added by old_martinficzel about 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2005-10-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.8.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Files

class.tslib_pagegen.php.patch (3.21 KB) class.tslib_pagegen.php.patch Administrator Admin, 2005-11-06 19:10
bug_1722.diff (1.21 KB) bug_1722.diff Administrator Admin, 2005-11-18 01:03
changeProperties.diff (3.16 KB) changeProperties.diff Administrator Admin, 2006-02-03 21:53
Actions

Also available in: Atom PDF