On Jul 27, 2010, at 12:57 AM, Julien S. wrote:
>
> Hello everybody,
>
> This should be an easy job to answer for most of you, but it possibly
> helps me and others to understand how magnolia is exactly working.
>
> What are the steps to include a simple and working favicon tag to my
> project, which is running with Standard Templating Kit?
>
> What I have yet done:
> 1. Uploaded the icon file to the dms.
>
> 2. Modified "Templating-Kit" -> "Dialog Definitions" -> "pages" ->
> "home" -> "stkHomeProperties" -> "tabMain" content node:
> Copied the "logoImg" content node to a new node named "favIcon" and only
> changed the label node from
> "dialogs.pages.home.stkHomeProperties.tabMain.logoImg.label" to
> "dialogs.pages.home.stkHomeProperties.tabMain.favIcon.label"
>
> 3. Used the recently modified dialogue in the authoring instance
> (through "Page Info") to choose the icon file I want.
> I noticed that there was no correct label.
> Obviously, because I did not map
> "dialogs.pages.home.stkHomeProperties.tabMain.favIcon.label" to a useful
> name.
> Where to do it?
In the message bundle of your module. If you don't have one, you can just put
the text for the label directly in the value instead of the key for the message.
>
> 4. "JCR Browser (Website)" in "Tools" is showing me two new node data
> entries: favIcon and favIconDMSUUID
... if you want to do it same way as for the logoImg you copied originally,
look in the branding.ftl. The image link is constructed by the model class.
>
> Now it should be time to refer to this UUID, but I do not know how.
>
> I went to
> "Templating-Kit" -> "Templates" -> "templating-kit" -> "templates" ->
> "global" -> "htmlHeader"
> Correct?
If you want to produce image link directly in the template without having to do
anything in the model, following might work ("might" because i'm writing it
from top of my head without testing):
${stk.getAssetLink(page,"favIcon")}
"stk" in the freemarker template is a shorthand for invoking methods on STKUtil
class.
HTH,
Jan
>
> What do to from here?
> Thanks for your support!
>
> Regards,
> Jules
>
>
>
>
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------