Hi all

I'm pretty new to magnolia but i tried now for a few hours and don't seem to 
get it.

In the page info dialog i made a new tab where you can upload/choose an image 
which will be used as favicon of the tld you're currently on.

In my template model i got some code to check if there is a faviconImgDmsUUID 
or faviconImgBinary.

[code]
String faviconImage = "";

NodeData ddmsNode = getSiteRoot().getNodeData("faviconImgDmsUUID");
        NodeData binaryNode = getSiteRoot().getNodeData("faviconImgBinary");

        if(ddmsNode.isExist()) {
            faviconImage = ddmsNode.getString();
        } else if(binaryNode.isExist()) {
            faviconImage = binaryNode.getString();

 return faviconImage;
       }
$[/code]

The problem is, that i don't know how to get the relative path of the binary or 
dms node and if i should do it via java or freemarker.

But i think best would be getting the relative path of either node and 
returning it in the getter, so i have less code in the template, where i can 
only use the getter to integrate the path into the link.

With the code above i get the uuid for the dms node and stringified binary 
infos for the binary node. I need something like getPath() for the node object.

Cheers

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=d8ac3a0e-6880-49da-8e66-7eab8dc82ed5


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

Reply via email to