Image widget wherein we should be able to drop an image from content finder along with click to upload from local machine : BIT URGENT
Hi All,
I am making use of the below section in my dialog for the image to appear. However, if I upload the image from my local instance, I see entries in the crx below my component
as
1] /component/jcr:content/file : with some basic properties like created by and primary type.
2] /component/jcr:content/file/jcr:content : with properties as jcr:data, some fields w.r.t last modification, jcr:mimetype, jcr:primarytype, jcr:uuid.
3] If I want to show this image component on the page[in footer section], what property should I use in java file to read and display in my sightly.
Any thoughts/pointers/reference/snippet on this will be really helpful.
<image
jcr:primaryType="cq:Widget"
allowBlank="{Boolean}true"
allowUpload="{Boolean}true"
border="{Boolean}true"
ddGroups="[media]"
fieldLabel="Footer Image"
fileNameParameter="./fileName"
fileReferenceParameter="./fileReference"
height="200"
name="./file"
xtype="smartimage"/>