Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-12 21:27:04

csandberg
Plugin Author
From: Sweden
Registered: 2006-01-07
Posts: 40
Website

Paragraph starting with article_image = no paragraph?

If I start a paragraph by adding a < txp:article_image / > it doesn’t wrap that paragraph with < p >.

Example:

< txp:article_image align=“right” / >This is some text.

This is some more text.

The second paragraph is correctly wrapped with p-tags but the first one isn’t. If I put the article_image somewhere else in the first paragraph everything is working as it is supposed to.

Is this a bug? Will it be fixed?

Thank you!

Offline

#2 2006-04-12 21:34:24

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Paragraph starting with article_image = no paragraph?

Hi csandberg,

usually, if you start a line with a tag (txp tag or html tag), textile is overrided for that line (experts correct me if i’m wrong).
So, if you want to wrap your line with <p> simple put a p. in front of it.

Like:

<code>p. <txp:article_image align=“right” /> This is some text.

This is some more text.</code>

That will output:
<code><p><txp:article_image align=“right” /> This is some text.</p>
<p>This is some more text.</p></code>
as you want.

So, concluding p. is the alternative textile-tag for creating paragraphs.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#3 2006-04-12 21:37:49

csandberg
Plugin Author
From: Sweden
Registered: 2006-01-07
Posts: 40
Website

Re: Paragraph starting with article_image = no paragraph?

Allright. I guess that’s easy enough. Thank you!

Offline

Board footer

Powered by FluxBB