Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-01-11 19:51:24

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

[wiki] Label -> Wraptag -> Break interaction

In the Common Presentational Attributes template it states:

label -> … if wraptag is available and is set to ol or ul, the label will be the first list item.

Given that I made the template in the first place, I obviously approved this before. :) (I’m pretty sure I just copied what was already listed on the various tags over to the template.) However, label doesn’t actually behave that way. I can’t find that it ever did. I’m going to change the template to correct this, unless someone can prove me wrong about how label works with wraptag.


Code is topiary

Offline

#2 2011-01-11 20:02:01

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,821
Website GitHub

Re: [wiki] Label -> Wraptag -> Break interaction

jsoo wrote:

label doesn’t actually behave that way

Hmmm, you’re right. I think the labeltag wraps the label and, if omitted, the label is just plonked naked above the list, regardless of wraptag which is always applied to just the list contents. Or maybe the label’s ignored if there’s no labeltag, I can’t remember. Either way, I agree that I don’t think I’ve ever seen the label as the first item of the list (but I am reknowned for bad eyesight).

btw, I still haven’t figured a satisfactory solution to the doLabel() thing which might be (loosely) related to this.

Last edited by Bloke (2011-01-11 20:04:31)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2011-01-11 20:42:04

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: [wiki] Label -> Wraptag -> Break interaction

It wouldn’t really make sense to have the label as the first list item anyway. I’m changing the docs.

Edit: Done.

Last edited by jsoo (2011-01-11 20:45:16)


Code is topiary

Offline

Board footer

Powered by FluxBB