Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-23 20:39:50

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Give <txp:article_custom /> ability to be tag pairs

It would stop me having to make a new form for little things.

e.g.

<txp:article_custom section="stuff">
<li><a href="<txp:permlink />"><txp:title /></a></li>
</txp:article_custom>

Offline

#2 2007-05-23 21:47:46

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Give <txp:article_custom /> ability to be tag pairs

Yes, that would be nice, not just for article_custom, but for all the tags that have a form attribute. With break and wraptag attributes (for tags that generate lists).

Especially for the smaller forms, it’s often easier to see it all at once in the template than having to switch between template and forms. And it would reduce the number of forms I need, which is good, because that list just keeps growing.

Last edited by ruud (2007-05-23 21:55:54)

Offline

#3 2007-05-24 02:35:14

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

Re: Give <txp:article_custom /> ability to be tag pairs

I think that’s reasonable enough. It could go into crockery.

Offline

#4 2007-05-24 05:01:59

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: Give <txp:article_custom /> ability to be tag pairs

Great, thanks. I think it is definitely worth considering as it would save people a lot of output forms. A recent project I was doing I had about five output forms just for different tiny lists like that.

I wonder if it would be possible to have it on <txp:article /> too.

Good point about the wraptags too Ruud.

Last edited by FireFusion (2007-05-24 05:07:56)

Offline

#5 2007-06-24 12:37:49

anoke
Archived Plugin Author
Registered: 2006-04-15
Posts: 152

Re: Give <txp:article_custom /> ability to be tag pairs

Might that help with nested if tags?


- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -

Offline

#6 2007-06-24 13:30:21

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Give <txp:article_custom /> ability to be tag pairs

anoke, if I understand your question correctly, that would a change in the tag parser. The one in crockery does this correctly, I think.

Last edited by ruud (2007-06-24 13:30:50)

Offline

#7 2007-06-24 14:45:39

anoke
Archived Plugin Author
Registered: 2006-04-15
Posts: 152

Re: Give <txp:article_custom /> ability to be tag pairs

Ok – and yes you did. I haven’t dared installing Crockery yet..


- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -

Offline

Board footer

Powered by FluxBB