Back

Pull Latest Vimeo Video

Description

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 other social media services and don't need any special "find and replace" manipulation.

Code

${esc.hash}set(${esc.dollar}rssTotal = 1)

${esc.hash}${esc.hash} Replace "okchristian" with your own Vimeo account

${esc.hash}pullRSSFeed("http://vimeo.com/okchristian/videos/rss")
${esc.hash}foreach(${esc.dollar}content in ${esc.dollar}list)
	<h3><a href="${esc.dollar}!content.link">${esc.dollar}!content.title</a></h3>
	<p>${esc.dollar}!content.description</p>
${esc.hash}end

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

Share your code Become a Contributor