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

Tagged: "categories"

Get all Categories in a Category Select

Author: Brad Rice |

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 |

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 |

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.