Codeshare List of user-contributed code snippets for dotCMS Java CMS.

Tagged: "categories"

Get all Categories in a Category Select

Author: Brad Rice | Created: Mar 25, 2012

Use this to pull all selected categories in a widget category select. After you use this code to grab them you can make it part your dotcontent.pull query...

Pull Nested Child Categories by Parent Category Key

Author: Dean Gonzalez | Created: Dec 06, 2012

Use this example to create dynamic parent/child category listings. The category listings can then become clickable listings to filter content by category...

Get Categories from Widget Selection- with And/Or selector

Author: Todd Reed | Created: Aug 26, 2012

This buildCatQuery will pull the categories from an array. Part of the widget also includes a field for And Or to join the categories together.