[TYPO3-templavoila] Accessing a templavoila field in ts template
Ron Hall
ron at busynoggin.com
Sun Sep 10 15:46:36 CEST 2006
I thought I had closed this thread but found extra info that will be of use
to those looking at it in the future.
After all that work I finally found what seems to be the easiest way to
retrieve the value of a TemplaVoila field to use in a regular ts template.
The stdWrap ".field" will work.
The code:
quickLinksStatus.field = field_quick_links_status
Will retrieve the the value of the TemplaVoila field named
"field_quick_links_status"
Can't be simpler than that. I don't think I found it earlier because of
syntax problems in my test code. Of course, I am sure that has never
happened to anybody else. :)
The extension mentioned earlier could still be used if you needed to
retrieve the value of a tv field from a different page than your current
page but otherwise I would just use stdWrap.
Thanks for all the input from you. It was helpful in the journey to the
solution.
Ron Hall
On 9/8/06 3:32 PM, "Ron Hall" <ron at busynoggin.com> wrote:
> That works perfectly. Thank you very much.
>
> For those interested, simply install the extension. Then use typoscript in a
> regular ts template like this:
>
> lib.testNow.30 = USER
> lib.testNow.30.userFunc = tx_flexformgetfield_pi1->main
> lib.testNow.30.field = field_color_theme
>
> Replace "field_color_theme" with the name of the templa field you want to
> retrieve.
>
> Must be a "EL" field and not within any container or section.
>
> Thanks again,
> Ron Hall
>
>
> On 9/8/06 11:11 AM, "Martin Klaus" <klausm at in.tum.de> wrote:
>
>> Hi Ron,
>>
>> If you want to access TV-Field values from a typoscript template record,
>> maybe this extension is what you need:
>> http://typo3.org/extensions/repository/view/flexform_getfield/0.1.0/
>>
>> regards,
>> Martin
>>
>> "Ron Hall" <ron at busynoggin.com> schrieb im Newsbeitrag
>>
news:mailman.5134.1157728454.6911.typo3-project-templavoila at lists.netfielders>>
.
>> de...
>>> Is there typoscript that can be used in a normal typoscript template to
>>> retrieve the value in a templavoila field? If so what is an example of
>>> such
>>> typoscript.
>>>
>>> If typoscript cannot be used then is the only other way a user function?
>>>
>>> I have done a lot of searching and have not found an answer. In couple of
>>> places is seemed that folks indicated that it could be done using the
>>> stdWrap "field." And I have used that in ts within a data structure to
>>> access another templavola field but I do not know how to do it in a normal
>>> typoscript template.
>>>
>>> Appreciate any direction.
>>>
>>> Thanks,
>>> Ron Hall
>>>
>>>
>>
>>
>> _______________________________________________
>> TYPO3-project-templavoila mailing list
>> TYPO3-project-templavoila at lists.netfielders.de
>>
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-templavoil>>
a
>
>
> _______________________________________________
> TYPO3-project-templavoila mailing list
> TYPO3-project-templavoila at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-templavoila
More information about the TYPO3-project-templavoila
mailing list