[TYPO3] want to pass a constant from template record into the template

Katja Lampela katja.lampela at lieska.net
Fri Dec 15 11:44:42 CET 2006


Another approach:
- place marker, say ###photo### in your html template replacing the 
whole image tag
- in the setup:

marks.photo = IMAGE
marks.photo.file=fileadmin/path/to/the/image.gif

- Katja

Andrew Davis wrote:
> see correction:
> subparts.header_section_image = {$the_string.Content}
> 
> this still not working
> 
> 
> 
> Andrew Davis wrote:
>> i want to pass a string to a template from a constant
>>
>>
>>
>> constants
>> ---------
>> the_string.Content = image.jpg
>>
>>
>> setup
>> -----
>>
>> temp.bodyTemplate{
> 
> 
> 
> subparts.header_section_image = {$the_string.Content}
> 
> 
> 
>> }
>> page.10 < temp.bodyTemplate
>>
>>
>>
>>
>> in the .html file i have a part that has a marker
>>
>> <img="<!-- ###header_section_image### -->" />
>>
>>
>>
>> when i load the page, the marker is removed but not replaced with the 
>> string i want. its empty.
>>
>>
>>
>> any help much appreciated.
>> Andrew Davis


More information about the TYPO3-english mailing list