Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Level 1
Level 2
Melden Sie sich an, um alle Badges zu sehen
Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Hi,
I am using AEM 6.1 and I want to save an image in the page properties of a page. I've created an additional tab and my dialog snippet looks like this:
<image
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/fileupload"
autoStart="{Boolean}false"
class="cq-droptarget"
fieldLabel="Hero Image"
fileNameParameter="./image/fileName"
mimeTypes="[image]"
multiple="{Boolean}false"
name="./image/file"
uploadUrl="${suffix.path}"
useHTML5="{Boolean}true"/>
I can drag&drop an image from the asset rail and an 'image' node is created underneath the page's 'jcr:content' node but there is no 'fileReference' attribute saved to the 'image' node.
Is there anything missing? Or am I doing something wrong?
I have the same problem with and without installing Service Pack 1 for 6.1
Any help is greatly appreciated. Thanks,
Alex
Zugriffe
Antworten
Likes gesamt
Hi,
I am facing the same issue in 6.3
Did you fix it?
Regards,
Manish
Zugriffe
Antworten
Likes gesamt
is this happening only with page properties?
Did you tried using same field as part of a component?
Zugriffe
Antworten
Likes gesamt
Hi Alex,
From your dialog snippet, we could see that you didn't add fileReferenceParameter="./fileReference". Try adding fileReferenceParameter in properties as shown in the below screenshot.
You should be able to see it in your jcr:content node now.
We hope this helps!
Regards,
Zugriffe
Antworten
Likes gesamt
I tried adding the property fileReferenceParameter={String}./fileReference.
But i dont see fileReference property in Image node.
I did changes in _cq_dialog of page properties.
Am i missing something?
Zugriffe
Antworten
Likes gesamt
I am seeing the same issues under page properties
Zugriffe
Antworten
Likes gesamt
Hi,
In case drag and drop is not required and main motive is to have an image, pathbrowser is a nice option
<sample
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/pathbrowser"
fieldLabel="Name"
name="./Name"
rootPath="/content/dam"/>
Zugriffe
Antworten
Likes gesamt
But if i am setting my rootPath as /content/dam.
will it show asset icons aling with there names in pathbrowser window?
Zugriffe
Antworten
Likes gesamt
Zugriffe
Likes
Antworten
Zugriffe
Likes
Antworten
Zugriffe
Likes
Antworten
Zugriffe
Likes
Antworten