Will Scheidegger ha scritto:
Would you run a test for me: Does this also work if the file name is not the same as the document name?

Document name = name of document node as shown in the URL column of the documents tree in AdminCentral
File name = the value in the "File" field in the document edit dialog

Cheers,
will

Hi Will, of course :-)

Nowadays, my files  are imported as

logo1.jpeg
logo2.jpeg
...
as *File name* (original filesystem name)

and

logo-1
logo-2
...
as *Document name*


I simple obtain Data Module Content Node referencing its Uuid.
Then I extract the Node Data "path" (built-in) to reference the path...
In the end I encapsultated "/data" between ${MagnoliaContextPath} and ${DocumentPath}

I never use properties like document.name, which contains obviously something like

logo-1
logo-2
...


Only path.
**********************************************
<cms:out nodeDataName="image" uuid="${logoUuid}" repository="data" fileProperty="path" var="imagePath" />

image = masthead logo dialog entry (added by me into Data Module Config)
uuid = masthead logo uuid, referenced into the page dialog
repository = explicit reference to Data Module repository name
fileProperty="path" = as mentioned in taglib, it will (eheh) output repository path of binary file
imagePath = JSTL var filled by binary file path
**********************************************


HTH

Matteo


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to