I see now that i have been careless in my previous reply, not having tried well
enough to craft an image tag from TAL.
Creating the tag in this manner works:
<img tal:define="url context/absolute_url;
src string: ${url}/++atfield++image1-gallery;"
tal:attributes="src src" />
So i consider my problem solved.
However, i'm still curious to learn if it would be possible to have the scaled
field create a tag for itself, which would also correctly set the title
attribute. With AttributeStorage you could do it like this:
<img tal:replace="structure context/image1_gallery/tag" />
Which is also shorter.
Thanks all, for helping me with this so far.
Kees
Robert Niederreiter wrote:
> Am Mittwoch, den 18.03.2009, 15:09 +0100 schrieb Kees Hink:
>> image1
> obj/++atfield++image1-thumb. you don't need any tag imho.
> the example you pointed would require a traverser for field traverser
>
> cheers
>
>> Robert Niederreiter wrote:
>>> Hi
>>>
>>> Am Mittwoch, den 18.03.2009, 13:42 +0100 schrieb Kees Hink:
>>>> Thanks Raphael, i missed this.
>>>>
>>>> However, object/++atfield++image1-gallery/tag gives a 404 (no attribute error,
>>>> funnily). How to traverse to the tag for the scaled image?
>>> Whats the name of your image field in the schema?
>>>
>> ------------------------------------------------------------------------------
>> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
>> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
>> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
>> software that enables intelligent coding and step-through debugging.
>> Download the free 60 day trial.
http://p.sf.net/sfu/www-adobe-com>> _______________________________________________
>> Archetypes-users mailing list
>>
[hidden email]
>>
https://lists.sourceforge.net/lists/listinfo/archetypes-users------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial.
http://p.sf.net/sfu/www-adobe-com_______________________________________________
Archetypes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/archetypes-users