Archive for the 'projects' Category

One more gallery trick

Thursday, May 13th, 2004

oh yeah, I forgot that I had also added another thing for gallery integration.
I found this neat hack which includes a php file that outputs javascript to display a link. I tweaked the script to look like this:

..
echo “document.write(’<a href=”" .
makeAlbumUrl($gallery->album->fields[”name”]) . “”>” .
$gallery->album->getThumbnailTag($gallery->album->getHighlight() ) .
[…]

Adding gallery support

Thursday, May 13th, 2004

For another secret website I’m making for a certain future trip, I needed a way to easily link to a photo gallery (created with the awesome Gallery Project software) in a blog post.
That was pretty easy. I just added
<MTKeyValues source=”[MTEntryKeywords]”> <MTIfKeyExists key=”gallery”> <div class=”blog-entry-gallery”> <a href=”/gallery/<$MTKeyValue key=”gallery”$>”>gallery</a> </div> </MTIfKeyExists> </MTKeyValues>
And now in my keywords field, […]

Creating a private category

Tuesday, May 11th, 2004

Today I hacked on MovableType to accomplish two things:

A private category that I could post without worrying that my stuff goes public
Sane URLs instead of those annoying date fields

Ok, really I was just trying to make sane URLs. But then these ended up overlapping and the act of making sane URLs allowed me […]