Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[request] Remove title=caption from image tag
I’ve searched all over and can’t seem to find a plugin that will do this, if there is one and I’ve missed it can someone point me in the right direction?
What I’m after is a plugin that at least just removes the title=$caption out of the image tags
I’m using the caption area of the image as a link, so it has “quotes” in it and it’s screwing up the validation of the site as the image tag comes out something like: <img src="image.jpg" alt="alt tag" title=""linktext":/link" />
and it’s just a mess. So with that title tag gone, my troubles seem to melt away.
Temporarily, I’ve just hacked (I know, shame on me) taghandlers.php so that line 181 is commented out. This works okay, but I really want a plugin that does this so that all of my Textpattern files are pristine.
This seems like it should be pretty easy to do. I’m no expert coder, but I’m willing to take a stab at this if someone could give me a pointer or two. I’ve written a couple of internal plugins to add things to different sites, but I’ve never written a plugin to override something that Textpattern already does.
Thanks for any help you can provide,
-Ryan
Offline
#2 2007-06-08 10:03:54
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [request] Remove title=caption from image tag
I think upm_image will handle this.
Offline
Re: [request] Remove title=caption from image tag
Yes, I believe upm_image will do this on an image by image basis, unfortunately, because it’s actually used by another plugin I need titles turned off for the whole site. Maybe I’ll look at Mary’s code and see if I can just incorporate that into the other plugin I’m using.
Last edited by visualpeople (2007-06-08 14:53:50)
Offline