Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-28 19:25:06

minusf
Member
Registered: 2005-02-15
Posts: 104

let me customize txp:body and txp:excerpt

the pop up help file says:

<blockquote>
Body
The body of the article. Note that the body of articles processed with Textile will already have <p> tags around each paragraph. Thus it is superfluous to use additional paragraph tags.
</blockquote>

(the same with txp:excercpt)
i realize this is documented and intentional. but i don’t understand this design choice.
if at least the tag took a class argument or something. but it just stubornly puts the
p tags around it.

i have seen people suggesting to put txp:body inside div’s.
for my design this is not working. (the div spans the whole page width while
my p is has a great left margin)

i find it logical to define the plain p the way the majority of my p’s in the article
should look like. but txp:body’s stubornness makes this difficult.

e.g. the news almost always looks diferent, because it’s different content.
but it still needs to showed using txp:body, obviously.

so as i see it, my only choice at the moment is change the plain p to fit the news
section, and change all the others and use the <tt>p(class).</tt> (because that
can be customizes) in front of every single paragraph in my articles.
this much more work to do.

for me, it boils down to this:
i think that it is much easier to add something to the forms then to override
something the txp tags put there by themselves, therefore i would like to suggest
that txp:body and txp:excerpt not to output p tags.


we is experts™

Offline

#2 2005-10-28 22:17:08

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

Re: let me customize txp:body and txp:excerpt


Alex

Offline

#3 2005-10-29 01:23:11

minusf
Member
Registered: 2005-02-15
Posts: 104

Re: let me customize txp:body and txp:excerpt

ok ;-)

i have read the answer and it is not precisely what i am looking for.

but.

it cleared up a very important issue between me and txp.

a very philosophical moment i must say, and for that i thank you.
i consider this thread closed because i would now form the question
in a very different way – and by that i probably wouldn’t ask it.

(if you find yourself saying “huh?”, just ignore me, it’s 0322 here ;)

Last edited by minusf (2005-10-29 18:56:08)


we is experts™

Offline

Board footer

Powered by FluxBB