@Parameter(name = BACKGROUND_IMG_NAME, displayName = BACKGROUND_IMG_DISPLAY) @JcrPath( pickerConfiguration = "cms-pickers/images", pickerSelectableNodeTypes = {"hippogallery:imageset"}, pickerInitialPath = "/content/gallery" ) String getBackgroundImg();
--
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-community@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-community+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.
pickerSelectableNodeTypes = "hst:sitemapitem")
String getPage();
The end result was:
At first pass, when you select the hst sitemap item you only get the name but I be there is a way to get the whole path -
XML from CMS Pickers:
<?xml version="1.0" encoding="UTF-8"?>
<sv:node sv:name="pages-only" xmlns:sv="http://www.jcp.org/jcr/sv/1.0">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>frontend:plugincluster</sv:value>
</sv:property>
<sv:property sv:multiple="true" sv:name="frontend:properties" sv:type="String">
<sv:value>root.path</sv:value>
</sv:property>
<sv:property sv:multiple="true" sv:name="frontend:services" sv:type="String">
<sv:value>wicket.id</sv:value>
<sv:value>wicket.model</sv:value>
<sv:value>model.folder</sv:value>
</sv:property>
<sv:property sv:name="root.path" sv:type="String">
<sv:value>/hst:hst/hst:configurations/myhippoproject/hst:sitemap</sv:value>
</sv:property>
<sv:node sv:name="navigator">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>frontend:plugin</sv:value>
</sv:property>
<sv:property sv:name="browser.id" sv:type="String">
<sv:value>${cluster.id}.browser</sv:value>
</sv:property>
<sv:property sv:name="browser.viewers" sv:type="String">
<sv:value>cms-folder-views</sv:value>
</sv:property>
<sv:property sv:name="extension.list" sv:type="String">
<sv:value>service.dialog.list</sv:value>
</sv:property>
<sv:property sv:name="model.default.path" sv:type="String">
<sv:value>/hst:hst/hst:configurations/myhippoproject/hst:sitemap</sv:value>
</sv:property>
<sv:property sv:name="model.document" sv:type="String">
<sv:value>${wicket.model}</sv:value>
</sv:property>
<sv:property sv:name="plugin.class" sv:type="String">
<sv:value>org.hippoecm.frontend.plugins.cms.browse.Navigator</sv:value>
</sv:property>
<sv:property sv:name="search.viewers" sv:type="String">
<sv:value>cms-search-views</sv:value>
</sv:property>
<sv:property sv:name="section.pages" sv:type="String">
<sv:value>service.dialog.tree.page</sv:value>
</sv:property>
<sv:property sv:multiple="true" sv:name="sections" sv:type="String">
<sv:value>section.pages</sv:value>
</sv:property>
<sv:property sv:name="wicket.variant" sv:type="String">
<sv:value>picker</sv:value>
</sv:property>
<sv:node sv:name="browser.options">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>frontend:pluginconfig</sv:value>
</sv:property>
<sv:property sv:name="list.page.size" sv:type="String">
<sv:value>10</sv:value>
</sv:property>
<sv:property sv:name="list.view.size" sv:type="String">
<sv:value>8</sv:value>
</sv:property>
</sv:node>
<sv:node sv:name="yui.config.accordion">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>frontend:pluginconfig</sv:value>
</sv:property>
<sv:property sv:name="ancestor.classname" sv:type="String">
<sv:value>hippo-picker</sv:value>
</sv:property>
<sv:property sv:name="register.render.listener" sv:type="Boolean">
<sv:value>false</sv:value>
</sv:property>
<sv:property sv:name="register.resize.listener" sv:type="Boolean">
<sv:value>false</sv:value>
</sv:property>
</sv:node>
</sv:node>
<sv:node sv:name="pageTreeLoader">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>frontend:plugin</sv:value>
</sv:property>
<sv:property sv:name="cluster.name" sv:type="String">
<sv:value>cms-tree-views/pages</sv:value>
</sv:property>
<sv:property sv:name="plugin.class" sv:type="String">
<sv:value>org.hippoecm.frontend.plugin.loader.PluginClusterLoader</sv:value>
</sv:property>
<sv:node sv:name="cluster.config">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>frontend:pluginconfig</sv:value>
</sv:property>
<sv:property sv:name="bind.to.layout.unit" sv:type="Boolean">
<sv:value>false</sv:value>
</sv:property>
<sv:property sv:name="root.path" sv:type="String">
<sv:value>/hst:hst/hst:configurations/myhippoproject/hst:sitemap</sv:value>
</sv:property>
<sv:property sv:name="use.width.from.classname" sv:type="String">
<sv:value>hippo-picker-tree</sv:value>
</sv:property>
<sv:property sv:name="wicket.id" sv:type="String">
<sv:value>service.dialog.tree.page</sv:value>
</sv:property>
<sv:property sv:name="workflow.enabled" sv:type="Boolean">
<sv:value>false</sv:value>
</sv:property>
</sv:node>
</sv:node>
</sv:node>
Hi,I'm afraid that's not possible. The menu component renders an "Edit menu" button [1] which has a specific UI attached to it (the 'menu editor'). That cannot be reused for component properties.Mathijs
On Thu, Mar 9, 2017 at 12:34 PM, Alasdair Macrae <alasdair.j...@gmail.com> wrote:
I would like to create a component via the channel manager that an editor can define Strings that are the urls of other pages on the channel. I would like them to chose them via a Picker UI of sitemap items.I know you can create pickers like image pickers using:
@Parameter(name = BACKGROUND_IMG_NAME, displayName = BACKGROUND_IMG_DISPLAY)@JcrPath(pickerConfiguration = "cms-pickers/images",pickerSelectableNodeTypes = {"hippogallery:imageset"},pickerInitialPath = "/content/gallery")String getBackgroundImg();
Can the same be done for sitemapitems. I noticed the Hippo Essentials menu component can do this so was wondering if it could be done.
--
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.
To post to this group, send email to hippo-community@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-community+unsubscribe@googlegroups.com.