How to enable the [b]LinkTransformer[/b] in [b]Freemarker[/b] so that the 
template engine uses the correct, localized link?

I got the 
[url=https://wiki.magnolia-cms.com/display/WIKI/Urltrans+Module]UrlTrans module 
[/url] working in 5.4.1 CE, and the URIMapping works fine when opening it in a 
browser, like /en/products.html and /de/produkte.html gets mapped properly 
after I added name_de = "produkte" node property for example. Note that I added 
the property via JCR browser directly, since I did not get any dialog for 
setting this when editing a page.

But when linking to a page from the German (de) locale, which is implemented 
with a property of class 
info.magnolia.ui.form.field.definition.LinkFieldDefinition and put in 
freemarker like this:

[code]${cmsfn.link(teaserLinkNode)}[/code]

it would always take the fallback name/link (products.html), regardless under 
which locale I am currently browsing.
Looks as if the LinkTransformer is not effective.

Thanks.

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=3d1f0528-abd5-4161-9d32-a81bcda0030f


----------------------------------------------------------------
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: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to