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

Tagged: "content"

Show different WYSIWYG options based on Role

Author: dotCMS | Created: Jul 08, 2014

It is easy to show different WYSIWYG options based on a users role. All you need to do is to write a plugin that overrides the file:

Getting all the content objects on a page

Created: Jun 24, 2014

We have been asked repeatedly how to get a list of all the content objects that have been placed on a page by a content editor.

Show a page and content as JSON

Author: dotCMS | Created: Apr 30, 2017

This code allows you to display the page information, template information and content on the page as a json object. If you add this to the top of your...

Checkin Content from HashMap - Transactional

Author: Will Ezell | Created: Aug 06, 2012

This is a very straightforward demonstration JSP that will transactionally checkin 10 pieces of News content using the 2.1 starter site content schema.