Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
[wiki] txp:article form="default"
The article page has two examples showing:
<txp:article form="default" />
I think it would be better to use
<txp:article />
with an explanation of the default form. Thoughts?
Code is topiary
Offline
Re: [wiki] txp:article form="default"
There’s no need to set an attribute explicitly to its default value. That’s just more typing and it’s slightly slower as well.
Offline
Re: [wiki] txp:article form="default"
That’s just what I mean. I am going to edit the page as I suggested; just wanted to post here to see if there is some reason I haven’t thought that the page was written this way.
[Edit]: I have made the changes, but it could use further work. The concept of article context is a tough one for new users (at least it was for me) and tough to explain briefly.
Last edited by jsoo (2009-01-19 18:40:47)
Code is topiary
Offline
#4 2009-01-19 16:53:00
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [wiki] txp:article form="default"
ruud wrote:
There’s no need to set an attribute explicitly to its default value. That’s just more typing and it’s slightly slower as well.
I don’t know how many users use the tag builder (I never do, but new users might), but if someone diligently fills all the attributes with default values, the tag is created with all those attributes as well. Since you say it also affects performance, wouldn’t it be better to have the tag builder not output attributes with default values? Or at least give an indication of what the default values are and that it’s not necessary to enter them?
I know this is not the appropriate thread nor forum to post this, if it makes any sense at all I can post it in Feature Ideas.
Offline
Re: [wiki] txp:article form="default"
I haven’t done any benchmarks on how much slower it is, but I don’t think it has a big impact.
Offline
#6 2009-01-19 22:44:54
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [wiki] txp:article form="default"
OK thanks, forget what I said then :)
Offline
Pages: 1