Hi all

I'm currently trying to load an image inside the footer area. I added a new 
property "logosImage" of type "dam" to the footer dialog (stkFooter). Footer 
area is configured site-wide with inheritance enabled and set to "all".
        
On the root page I can load the asset link with stkfn.getAssetLink(content, 
'logosImage'). Unfortunately, on the sub-sites it seems that getAssetLink won't 
resolve inherited properties (inheritance on the content map is working, 
content.copyright loads on every page).

The relevant part of footer.ftl:

    [#if content.logosImage?has_content]
        [#assign link = stkfn.getAssetLink(content, 'logosImage')!]
        [#if !link?has_content]
            [#-- getAssetLink does not resolve inherited assets --]
            ...
        [/#if]
        <img src="${link!}" alt="Footer Logos" />
    [/#if]


Am I doing something wrong or is it not designed to work like that?

Any help is appreciated.

Cheers
- ada



----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to