[TYPO3-templavoila] Using a value for multiple fields

Oliver Salzburg kinggencha at googlemail.com
Mon Sep 12 17:29:39 CEST 2011


On 2011-09-12 16:53, Björn Pedersen wrote:
> Am 12.09.2011 16:47, schrieb Oliver Salzburg:
>> Hi,
>>
>> The template file would look something like this (this is very
>> simplified of course):
>>
>> <a href="#">
>>    <img src="#">
>> </a>
>> <p>
>>    <a href="#">Download</a>
>> </p>
>>
>> Now, I don't really want the "Download" link to link to a different
>> file than the image. I would like the user to only select a link and an
>> image in the backend and then re-use the selected link in two places in
>> the template.
>> How can I do that?
>>
>
>
> Just map the second link as TypoScript only and create the necessary TS.
> You can access the fields almost like a database field with their names.
>
> Björn

Awesome. This works great. Thanks a lot.


More information about the TYPO3-project-templavoila mailing list