[Hippo-cms7-user] apply value list dynamically for a document type
j.floor at onehippo.com
Tue Dec 4 17:31:22 CET 2012
What you can also do is create your own RenderPlugin rather than use the
DynamicMultiSelectPlugin. You don't need to extend the DMSP but it should
provide a good example of what to do. From there you can populate your
value lists based on whatever logic you desire. You could keep the list
with the blog or in a seperate folder for example.
On Tue, Dec 4, 2012 at 8:33 AM, Frank van Lankvelt <
f.vanlankvelt at onehippo.com> wrote:
> On Mon, Dec 3, 2012 at 8:33 PM, Shian-Chih Lin Chang <schang72 at umd.edu>
> > This may be useful for our blog implementation. Does anyone have any
> > about it?
> > We have a blog document type with a field named categories (multiple
> > values). Depending on different topic (or department), a specific value
> > of categories is related to the blog.
> > In the CMS "editor:templates/_default_/categories", currently the
> > configuration has:
> > Value of Plugin.class property:
> > "org.onehippo.forge.selection.frontend.plugin.DynamicMultiSelectPlugin".
> > Value of source property: a static value which is the path of a value
> > How can we make the value list be selected dynamically at creating a
> if the selected list does not need to be changed after blog creation,
> you are probably best off creating a custom FolderWorkflowPlugin.
> Set a property on the document ('meta-category') that contains a name
> for the value list you want to use. In the editor for the document
> type, you can add a value list provider plugin, that will delegate to
> the correct value list provider service based on this property. This
> way, the dynamic multi-select plugin does not need to be forked.
> Creating a custom folder workflow plugin is not quite as easy as we
> would like it to be, so you may appreciate that recent work makes it
> more easily extensible.
> See issues https://issues.onehippo.com/browse/CMS7-6652 and
> https://issues.onehippo.com/browse/CMS7-6653 for more details.
> These improvements should be available in the upcoming 7.7 and 7.8
> tags of the cms.
> cheers, Frank
> > Although we can create a blog document type for each topic (or
> > and the problem can be easily resolved, we would like to know the best
> > to implement it.
> > Thanks,
> > Shian Chang
> > Library Information Technology
> > McKeldin Library
> > University of Maryland
> > College Park, MD
> > _______________________________________________
> > Hippo-cms7-user mailing list and forums
> > http://www.onehippo.org/cms7/support/forums.html
> Amsterdam - Oosteinde 11, 1017 WT Amsterdam
> Boston - 1 Broadway, Cambridge, MA 02142
> US +1 877 414 4776 (toll free)
> Europe +31(0)20 522 4466
> Hippo-cms7-user mailing list and forums
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Hippo-cms7-user