I’m experimenting with a new CSS layout. the basic layout I got from here, but I’m tinkering with it. At the moment, it only applies to the homepage, but I’m working on it.
Category: Blogging
Upload test
A very Nice Man
Sean Voisen is a very nice man. His blog has long been part of my daily blog reading for quite a while. As part of my whole blogging experiment I’ve been trying out his MTCodeBeautifier Plugin for Moveable Type. It allows me to post actionscript and have it appear beautifully formatted and colour coded, like so:
// returns true if file is on specified server.
// returns false if file is not on specified server.
// server format - http://www.myDomain.com
function atHome(myDomain){
if(_root._url.indexOf(myDomain)==0){
text1=true;
}else if(_root._url.indexOf("file://")==0){
text1=false;
}else{
text1=false;
}
return text1;
}
Anyway, I couldn’t get it working. I’d been over everything and couldn’t get it to work. My code just disappeared from the page – it wasn’t even in the html source. I tried all I could think of, and even asked around for help (Kristine tried to help me – thanks for that) but to no avail. So i finally emailed Sean, not wanting to bother him, but seeing no other way. He wrote back within a few hours, with the exact answer to my problem. Seems I was putting the plugin language as “Actionscript” rather than “ActionScript” (spot the capitalised S). now it all works beautifully. So I just wanted to a) say a big thanks to Sean and b) post this so that it hopefully gets googled and helps someone else.
Category Links with Posts
While looking around at various blogs I saw on An Architects View that there is a little link with each post to the archive of that post’s category type.
I really likesd the effect, but hadn’t been able to do it. Being a relative MT virgin, I thought it must be a plugin or something, but I saw on a list somewhere someone pointing to the MT documentation where this was discussed. The problem was that I could get it to list my current category, but not link to it.
I kept getting this error message:
You used an tag outside of the proper context
I finally found the answer on this discussion on the moveable type support forums. It’s the small snippet of code towards the end of Maddy’s last post:
<a href="<$MTEntryLink archive_type="Category"$>#<$MTEntryID pad="1"$>"><$MTEntryCategory$></a>
(drool)
// returns true if file is on specified server.
// returns false if file is not on specified server.
// server format - http://www.myDomain.com
function atHome(myDomain){
if(_root._url.indexOf(myDomain)==0){
text1=true;
}else if(_root._url.indexOf("file://")==0){
text1=false;
}else{
text1=false;
}
return text1;
}