Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-12 00:32:53

m0rt
Member
Registered: 2005-07-12
Posts: 12

Article Image and Textile

Hi,

With Textile turned on, when I post an article with a txp:article_image tag directly before the first paragraph (leaving no space), the first paragraph of the article is outputted without any p tags and any subsequent paragraphs are outputted with p tags.

I guess Textile thinks I’m putting a space before the first paragraph but I’m not, just an article image.

Any way round this?

Thanks,
Jonathan

Offline

#2 2006-01-12 01:23:55

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: Article Image and Textile

just to clarify – do you want your article image enclosed within the p tags of the first paragraph?

if so, try starting the paragraph with p. <txp:article_image />And so it begins.

Offline

#3 2006-01-12 01:29:32

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Article Image and Textile

Textile handles <txp:... /> tags differently, to avoid messing up code. It’s not perfect. Nardo’s suggestion works for me.


Alex

Offline

#4 2006-01-12 02:20:40

m0rt
Member
Registered: 2005-07-12
Posts: 12

Re: Article Image and Textile

Ahh… I just noticed, if I leave a blank line after the article_image tag, it works perfectly.

Like this:

article_image

Paragraph

Paragraph

Thanks for your help.

Offline

Board footer

Powered by FluxBB