(accidentally posted this in the wrong forum late last night...)
I was quite pleased with the gallery I created of screenshots of different site designs. Then my partner wasn’t happy with just being able to see a snapshot of a webpage, he wanted to be able click on the thumbnail in the gallery in the top banner of his home page, and switch the home page to that template! So I got a simple javascript stylesheet switcher (
http://www.alistapart.com/articles/alternate/ ), paid a little attention to the names of the images in the gallery so they could be the same as the title in the css stylesheet tags, and made this mod to the link generation code of the thumbnails:
// Change link to switch stylesheet
$chunk_main .= '<a href="#"
onclick="setActiveStyleSheet(\''.$picture['title'].'\');
return false;"><img class="EPG2_image_thumb" alt="'.$picture['title'].'" src=assets/modules/epg2/image.php?type=pic_thumb&id='.$picture['id'].' /></a>';
renamed the snippet to SiteGallery, and presto! A row of images of designs that you can click on to actually change the CSS file of the page to match the image.
This is why I created the 4in1 template. It’s fully loaded for a three-column layout, and I use several duplicated block selection TVs to fill everything, and enable/disable the parts through the CSS using display:none to disable what I don’t want. It makes for a bigger than necessary HTML file since it has everything, but it makes it possible to switch layouts very easily. Fun. Especially useful for switching to a single-column large-print version.
Next I suppose he’ll want the whole site to be switched. <sigh> more cookies. Well, maybe he won’t think of it and will be happy with what he’s got Wink