Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2010-02-18 10:42:15
- HerrJemineh
- New Member
- Registered: 2010-01-10
- Posts: 4
[solved] upm_image: Validation issues
Hello everyone,
I’m using upm_image to create clickable thumbnails on my website. I’m using an own form and this txp-syntax in my articles:
Look, here's a picture
<txp:upm_image image_id="12" form="image_tn" />
Click on it to view it fullsize
And this is image_tn:
<div class="bild" style="width: <txp:upm_img_thumb_width />px"><p>
<a href="<txp:upm_img_full_url />" onclick="upm_pop_img(this.href, '<txp:upm_img_full_width />', '<txp:upm_img_full_height />', '<txp:upm_img_href />', this.title); return false;"><img src="<txp:upm_img_thumb_url />" alt="<txp:upm_img_alt />" width="<txp:upm_img_thumb_width />" height="<txp:upm_img_thumb_height />" /></a></p>
<txp:upm_img_caption wraptag="p" class="bild_tn" />
</div>
Now my Problem: This doesn’t create valid xhtml! It will look like this (simplified):
<p>Look, here's a picture</p>
<p><div class="bild" …>
<p><img … /></p>
<p>Description</p>
</div></p>
<p>Click on it to view it fullsize</p>
Is there any way to get rid off those p-tags around the div?
I didn’t found help with Google, so thank you in advance for all hints! :-)
Last edited by HerrJemineh (2010-02-22 18:16:12)
Offline
Re: [solved] upm_image: Validation issues
How do I change the article markup?, in particular see #1.
Code is topiary
Offline
#3 2010-02-22 18:15:10
- HerrJemineh
- New Member
- Registered: 2010-01-10
- Posts: 4
Re: [solved] upm_image: Validation issues
jsoo schrieb:
How do I change the article markup?, in particular see #1.
D’oh! Didn’t thought it was that easy.
But thank you very much, that helped me a lot! :-)
Offline
Pages: 1