Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Lists and Class

#1 2006-08-17 16:25:08

sparkybarkalot
Member
Registered: 2004-10-13
Posts: 43

Lists and Class

I’m runnig TXP 4.0.3 and it seems that Textile is not acting as indicated in the docs I could find online. According to all the info I could find, the way to add a class to a UL is like in Example 1, but it doesn’t work. Example 2, however, DOES add the correct class to the UL:

EXAMPLE 1
(class)* one
* two
* three

EXAMPLE 2
*(class) one
* two
* three

According to the docs, that is how one would set a class for the first LI tag, but that is not what is happening… it’s adding the class to the UL tag instead, which is just fine for me since that was what I was trying to do anyway. Since it doesn’t reflect the usage laid out in the docs, I thought I’d point that out in case I’m missing something ;)

Last edited by sparkybarkalot (2006-08-19 15:10:01)

Offline

#2 2006-09-10 02:51:41

kaline
Member
From: Plymouth, MN
Registered: 2005-07-18
Posts: 38
Website

Re: Lists and Class

I’m having a problem with this. I need to put a class on my li items. As stated above, doing example 2 puts the class on the ul, not the li. Any ideas?

Offline

#3 2006-09-10 14:19:37

sparkybarkalot
Member
Registered: 2004-10-13
Posts: 43

Re: Lists and Class

Are you sure you really a need a class on all list items? As long as you can declare a class for the UL in the way mentioned here, then you can just put this in your CSS file:

ul.class li {/* style declarations for the list items go here */ }

You can style all your list items that way.

Offline

#4 2006-09-10 15:07:17

kaline
Member
From: Plymouth, MN
Registered: 2005-07-18
Posts: 38
Website

Re: Lists and Class

I’ll give that a shot. Thanks sparkybarkalot. Funny.

Offline

#5 2006-09-10 16:14:01

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Lists and Class

According to the docs, that is how one would set a class for the first LI tag…

What “docs” are these? ‘cuz that’s not so, neither in actual output, nor in expected output.

Offline

#6 2006-09-10 18:19:25

sparkybarkalot
Member
Registered: 2004-10-13
Posts: 43

Re: Lists and Class

Mary, not sure which “docs” I was referring to since I haven’t looked at this for a bit. I believe I couldn’t find any Textpattern documentation about this particular question, so the “docs” were probably referring to something other than Textpattern’s Textile implementation. Is there some documentation somewhere about Textpattern’s Textile implemenation of lists and classes?

As far as actual output is concerned, it is the case with my installation that Example 2 adds the class to the UL, while Example 1 doesn’t.

Offline

  1. Index
  2. » Archives
  3. » Lists and Class

Board footer

Powered by FluxBB