Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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.
Offline
Re: Paragraph starting with article_image = no paragraph?
Allright. I guess that’s easy enough. Thank you!
Offline