Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-03-03 19:39:49

qaisc
Member
Registered: 2008-06-10
Posts: 13

[textile] how to create txp tags?

i have this in my css

h4 { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9pt; color: gray; padding-top: 7px; padding-bottom: 1px;
}

i want to use txp tags like h4. (my text here) <— so that it applies <h4> </h4> . could someone tell me what i need to do to use h4. instead of <h4></h4>. thank you.

-qais

Offline

#2 2009-03-03 19:53:57

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: [textile] how to create txp tags?

I’m not quite sure I understand you correctly, but h4., when typed in an article’s body text, is being converted to <h4> in the markup by textile, so your css rule would apply.

You would never use h4. in your css.

Last edited by masa (2009-03-03 19:57:05)

Offline

#3 2009-03-03 20:07:48

qaisc
Member
Registered: 2008-06-10
Posts: 13

Re: [textile] how to create txp tags?

let me see if i can explain.

i stuck this in my css
h4 { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9pt; color: gray; padding-top: 7px; padding-bottom: 1px;
}

now when i go into my article, and do

some text here

it does not make the text h4.

but if i do

<h4> some text here </h4>
then it applies the padding, color and all.

i can use h3. but not h4. in my articles.

i hope this clarifies my issue.

-qais

Offline

#4 2009-03-03 20:11:07

qaisc
Member
Registered: 2008-06-10
Posts: 13

Re: [textile] how to create txp tags?

never mind. it is working now, don’t know what happened, but h4 is working now. i had the same thing with jnm_audio plugin, the txp tags would not work and next day they showed up fine.

-qais

Offline

#5 2009-03-03 20:16:35

qaisc
Member
Registered: 2008-06-10
Posts: 13

Re: [textile] how to create txp tags?

i was not putting a blank line between my paragraphs.

sometext
sometext
(blank line)
then if i put h4 with a dot, it will work. if there is no blank line it will show as plain text. so that was the issue.

-qais

Offline

#6 2009-03-04 09:17:41

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: [textile] how to create txp tags?

qaisc,

Just some vocabulary FYI so you explain things more clearly in the future and not lose anybody trying to help.

  • hn (where “n” is a number) = header element (W3C terminology)
    • e.g., h1, h2, h3, h4, etc
  • <h4> ... </h4> = header tag(s) (W3C terminology)
  • h4. = header element written in Textile (don’t think there’s a single term for this)
  • <txp:article /> = a Textpattern tag (Textpattern terminology)

The key thing here is to ensure when you’re talking about a Textpattern tag, your talking about one of these, and not a xhtml element written with Textile.

Yes, you have to have the blank lines between block elements so Textile can effectively distinguish between them and render them properly.

Offline

Board footer

Powered by FluxBB