Archive for the ‘JavaScript’ Category

Share-It: embedding CONTENTdm images

As part of the “tips and tricks” session for the 2010 MidWest CONTENTdm User Groups Meeting, someone suggested that there should be an easy way for embedding images from CONTENTdm into blogs or websites.  Something like this will -definitely- facilitate the sharing of information and interaction between CONTENTdm users and the general public.

Anyway, a few lines of PHP and JavaScript code seem to give an alternative solution for this option, it’s not (completely) done yet, but this is how it should look like in a blog or website.

Alumni Library from the northeast ca. 1925
Alumni Library from the northeast ca. 1925

The code to be pasted includes 3 pieces of data: a) title of the image; b) an image of 350px linked directly from the CONTENTdm site; and c) of course a link back to the actual record using the persistent URL.  This method avoids saving a copy of an image before uploading it to a blog or website.  It provides a simple way to copy some HTML code and embed into an external site.

How it works?

…that’s it for now, …hopefully something like this will be useful for bloggers and the online community in general!

No Comments »