<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Musings of a Trained Monkey: Lightbox V2 integration with Typo...</title>
    <link>http://www.stevelongdo.com/articles/2006/05/23/lightbox-v2-integration-with-typo</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Lightbox V2 integration with Typo...</title>
      <description>It was brought to my attention that I didn't post a lot of detail about integrating &lt;a href="http://www.typosphere.org"&gt;Typo&lt;/a&gt; with Version 2 of &lt;a href="http://www.huddletogether.com/projects/lightbox2/"&gt;lightbox&lt;/a&gt;.
I'll attempt to correct that with a quick write up. &lt;br/&gt;&lt;br/&gt;Start by downloading the most recent &lt;a href="http://www.huddletogether.com/projects/lightbox2/"&gt;lightbox&lt;/a&gt; release.  From here we will want to copy the images that are distributed with it into our &lt;a href="http://www.typosphere.org"&gt;Typo&lt;/a&gt; installation's &lt;cite&gt;public/images&lt;/cite&gt; folder.&lt;br/&gt;&lt;br/&gt;
Next up is the javascript file and the stylesheet.  I have made some slight modifications to the originals to make the image paths non-relative and the additon of links that show in the caption portion of the light box.  Grab the following &lt;a href="http://www.stevelongdo.com/javascript/lightbox-modded.js "&gt;javascript file&lt;/a&gt; and put it in your &lt;cite&gt;public/javascripts&lt;/cite&gt; directory.  Then get the &lt;a href="http://www.stevelongdo.com/public/stylesheets/lightbox.css"&gt;css file&lt;/a&gt;  and put it in your &lt;cite&gt;public/stylesheets&lt;/cite&gt; directory.
&lt;br/&gt;&lt;br/&gt;Final step for usage is to place a couple of lines in your active theme's &lt;cite&gt;layout/default.rhtml&lt;/cite&gt;.  Under the &lt;%= page_header %&gt; line place the following two lines:&lt;pre&gt;&lt;code class="ruby2"&gt;&lt;%= javascript_include_tag "lightbox-modded"  %&gt;
&lt;%= stylesheet_link_tag "/stylesheets/lightbox" %&gt;&lt;/code&gt;&lt;/pre&gt;
This should get you up and running with lone imgs &lt;br&gt;&amp;lt;img src="..." rel="lightbox"/&gt;&lt;br/&gt; and/or groups of imgs &lt;br&gt;&amp;lt;img src="..." rel="lightbox[groupName]"/&gt;&lt;br&gt;&amp;lt;img src="..." rel="lightbox[groupName]"/&gt; </description>
      <pubDate>Tue, 23 May 2006 11:31:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:91619361-8306-4412-b318-37237859704f</guid>
      <author>Steve Longdo</author>
      <link>http://www.stevelongdo.com/articles/2006/05/23/lightbox-v2-integration-with-typo</link>
      <category>ruby</category>
      <category>typo</category>
      <category>javascript</category>
      <category>lightbox</category>
    </item>
  </channel>
</rss>
