About   |   Projects   |   Elsewhere   |   Work   |   Feeds   |   Contact

Archive for 15 April 2004

Dreamweaver changes < characters to %3C in links – the solution…

I’ve just spent a wild half-hour battling with Dreamweaver – I’d created myself some library items for the right and left-hand blocks of a blog page so that I could change the code at will and have it update the Moveable Type templates on the fly (OK, I know purists would use server-side includes, but library items are quicker, ok?)

The problem was that everytime I inserted the code into the page, it transformed some of the tags – so what started out as

<a href=”Library/<$MTArchiveLink$>” class=”rightbar”>

was being inserted into the code as

<a href=”Library/%3C$MTArchiveLink$%3E” class=”rightbar”>

Needless to say, the link was broken once the page was built and posted.

Much wailing and gnashing of teeth and googling (or should that be wailing and googling of teeth and gnashing?) ensued, until inspiration struck. The cause of the problem is Dreamweaver rewriting the code as it hits the page, so that it translates the URL encoding on the fly. Normally this wouldn’t be a problem, but if the URLS are Moveable Type tags, it does.

The solution is to check the Code Rewriting section in the Dreamweaver preferences – chances are, it’ll be set to ‘Encode special characters using &#’. Change this to ‘Do not encode special characters’, and all will be well once more.

15 April 2004

Technical

No comments yet

Curse Of The Uneven Backlighting strikes

Hmmm. The Curse Of The Uneven Backlighting appears to have struck. Something that my previous Wintel laptop suffered from, and I pretty much ignored – but of course this is a Powerbook, and it’s supposed to be perfect, dammit. I can’t decide whether it’s a) worth worrying about, not being a hair-trigger graphics geek; b) sufficiently much of a problem to be worth arguing with Apple / dealer about; c) drastic enough to cause an involuntary separation between me and My Precious (phrase copyright by Youngest Offspring); or d) the perfect excuse to lash out on a rather attractive Apple Cinema Display.

Actually, I already know the answer to d) – it’s GBP1049, which is a heinous amount to be spending on a screen. Even if it is something that you spend all day staring at, so what price your eyesight, yadda yadda yadda. And I’m still prone to getting lost on the vast expanse of screen real estate that is the 15″ version, so put me in front of a 20″ monitor and I’d probably need a map and compass to find the Dock.

15 April 2004

Technical

No comments yet