@Parameter
(name =
"logo"
)
@JcrPath
(
pickerSelectableNodeTypes = {
"hippogogreengallery:imageset"
},
pickerInitialPath =
"/content/gallery/logos"
)
String getLogoPath();
HiI'm trying to use the below as a component parameter to select an image:@Parameter
(name =
"logo"
)
@JcrPath
(
pickerSelectableNodeTypes = {
"hippogogreengallery:imageset"
},
pickerInitialPath =
"/content/gallery/logos"
)
String getLogoPath();
My question is, is it possible to reference a particular image variant (e.g. thumbnail) in the path? It currently just returns the path without referencing any variant i.e. the original image.Thanks
Ashil
--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at http://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.
Hi Mahesh
This works if i'm referencing an image which is part of the document bean, but for an image I've added as a component parameter I can't seem to access any of the variants.
final Object logo = RequestContextProvider.get().getObjectBeanManager().getObject(logoPath);Then you can use the logo bean as Mahesh mentioned:
request.setAttribute("logo", logo);
<@hst.link hippobean=logo.thumbnail />