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

Author: "Stephen Bell"

Multi-select custom field

Author: Brad Rice | Created: Jan 17, 2013

This builds on the codeshare Stephen Bell provided for using a custom field with a select. This uses a multi-select and reads back in multiple values and...

Pull a dropdown list (select) of other content into a custom field

Author: Stephen Bell | Created: Jan 15, 2013

Use this code in a custom field, to pull a list of other content into a select field. This code uses the jQuery Javascript library in a way that shouldn't...

Loop through numbered fields

Author: Stephen Bell | Created: Aug 09, 2012

Write your velocity code once for multiple fields or groups of fields then put them into your page instead of repeating yourself for each one.

Site Search with Google Site Search XML

Author: Stephen Bell | Created: Aug 03, 2012

This code will allow you to connect to Google Site Search's XML and display it's search engine results in your page. This is done on the server side, and...

Display Link/Description of Latest YouTube Video

Author: Stephen Bell | Created: Jan 19, 2012

This code displays the latest YouTube video posted to any account. Because the YouTube RSS feed makes extensive use of tables and inline styles, we strip...

Pull Latest Vimeo Video

Author: Stephen Bell | Created: Jan 19, 2012

This code will pull the description, image and title of your latest Vimeo video and put it into your page. Vimeo feeds are more well-formatted than some...

Display Facebook Page RSS Feed

Author: Stephen Bell | Created: Jan 19, 2012

Use this code to pull an RSS feed from Facebook for your institution's Page, and display the most recent item in your HTML code.

Load Latest Tweet (Twitter) into Page

Author: Stephen Bell | Created: Jan 19, 2012

This code will pull in the latest tweet from any Twitter account and display it in your page. It also does the work of converting addresses, hash tags ...

Topics

Have you created code you'd like to share with the dotCMS community?

Share your code Become a Contributor