Hi there,
I use a dialog of type LinkFieldDefinition
([url]http://wiki.magnolia-cms.com/display/DOCS/Link[/url]):
[code]appName: assets
class: info.magnolia.ui.form.field.definition.LinkFieldDefinition
label: background image
targetWorkspace: dam*
contentPreviewDefinition:
->contentPreviewClass:
info.magnolia.dam.asset.field.DamFilePreviewComponent[/code]
*makes no difference to use this or not.
Problem: When I read the dialog's value with freemarker:
[code]${content.bgImage!}[/code]
I get something like:
[code]/my/path/teaser/teaser_number_1[/code]
Note: There is no ".jpg" and this is a relative path - which is not working
even if I add the ".jpg" manually. So I tried to add an
identifierToPathConverter based on the documentation:
[code]identifierToPathConverter:
class:
info.magnolia.ui.form.field.converter.BaseIdentifierToPathConverter[/code]
or
[code]identifierToPathConverter:
class:
info.magnolia.dam.app.assets.field.translator.AssetCompositeIdKeyTranslator[/code]
but none of them works. Google does not know much about
identifierToPathConverter either. And I wonder why there's a difference between
"class" and "contentPreviewClass", maybe that a reason?
I'm once again lost with that"documentation", so thanks in advance for any help!
crusy
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=c4da9207-13ea-4d93-9d6d-f310be7e1630
----------------------------------------------------------------
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]>
----------------------------------------------------------------