Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-05-06 06:48:07

verum
Member
Registered: 2007-01-28
Posts: 21

Does <txp:body /> HAVE to wrap itself in <p> tags?

I’m trying to use <txp:body /> in an article form, but I want a link to appear right after the body text, in the same paragraph (not on a new line). Is there a way to tell textpattern to just return the raw text from the body without putting it in <p> tags?

I’ve searched, but not finding answers, maybe I’m using the wrong terms. Any help appreciated!

Offline

#2 2009-05-06 08:37:24

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

Re: Does <txp:body /> HAVE to wrap itself in <p> tags?

It’s because your ‘Article Markup’ setting is on ‘Use Textile’
you can switch it to ‘Convert linebreaks’
but then you will not have ‘Textile’ style
If you do want ‘Textile’ you can use css to display the <p> as inline (display:inline;)

example:

<style type=“text/css”>
div.txp_body p {
display:inline;
}
</style>
<div class=“txp_body”>
<txp:body />
bla bla text after the body in the same line as the body text.
</div>

Offline

#3 2009-05-06 08:41:32

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,538
Website GitHub Twitter

Re: Does <txp:body /> HAVE to wrap itself in <p> tags?

Hi

In your article textile add <p> tag to all paragraph, and in textbook you have that

Maybe putting your article with “no textile” (at left colonne in article tab) can help!

Cheers

Offline

Board footer

Powered by FluxBB