Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all articles
Browse latest Browse all 12476

How to render image from page properties

$
0
0

Hello,

 

I am using CQ 5.6.

 

I have a problem rendering the image you can set in the page properties of a page. I use the same code to render that image as I do for images in my other components, but the image is not being rendered.

So I investigated the content structure and I noticed that the image nodes in the page do not have a 'sling:resourceType' set, while image nodes from for example the 'image' or 'textImage' component have this property set to 'foundation/components/image'.

 

If I manually add the property 'sling:resourceType' with value 'foundation/components/image' to the image nodes in page properties, they are rendered fine.

 

So my questions are:

*) Is this different structure for the image nodes intended?

*) What can I do to have a 'sling:resourceType' property added to the image nodes from page properties? I have tried adding a cq:editConfig to my page components where this property has been specified, but that did not make a difference.

 

I have been struggling with this for a while now, so any ideas would be welcome.

 

Kind regards,

 

Luc Feys


Viewing all articles
Browse latest Browse all 12476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>