Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
unknown attribute "limit" for txp:article when showing indiv. article
Updated via SVN and in the most recent revision (current is r1499 – not sure at exactly which changeset this began, though – has arisen only in the past few days) I get the following error/notice (in test mode) when showing an individual article:
tag_error <txp:article form="body_text_2col" limit="1" /> -> Textpattern Notice: unknown_attribute: limit on line 565
I don’t get the error in the article_list view. Has something changed in the way I should be using txp:article, or is this an error? (It is intentional that only the most recent article displays in list view).
I also received errors for the use of listform with article_custom, but see that listform should no longer be used – now only form="...".
TXP Builders – finely-crafted code, design and txp
Offline
#2 2006-07-10 20:28:44
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: unknown attribute "limit" for txp:article when showing indiv. article
listform remains for article, just not article_custom, because it never worked anyway (form == listform in article_custom).
I know which revision is the cause. Hang tight while this gets figured out…
Offline
Re: unknown attribute "limit" for txp:article when showing indiv. article
just for info – almost definitely related: I also get: tag_error <txp:zem_link_to_next id="projektnav_next" title="nächstes Projekt"> -> Textpattern Notice: unknown_attribute: id on line 565
TXP Builders – finely-crafted code, design and txp
Offline
#4 2006-07-12 01:44:23
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: unknown attribute "limit" for txp:article when showing indiv. article
r1515.
The unknown attribute warning will show up for some plugins. Those plugins will need to be updated. (This is not really a bug; we’ve made error checking slightly stricter).
The fix, for plugin devs, is to do one of two things:
1. Include defaults for all supported attributes in your call to lAtts; or
2. If that’s not possible (arbitrary attribute names are valid), use the extra $warn=0 lAtts parameter to turn off unknown_attribute errors.
Last edited by zem (2006-07-12 01:48:30)
Alex
Offline
#5 2006-07-13 07:52:37
- heikki74
- Member
- From: Finland
- Registered: 2004-08-17
- Posts: 100
Re: unknown attribute "limit" for txp:article when showing indiv. article
r1518 and no plugins installed:
<code>tag_error <txp:article form=“single_article” listform=“article_list” /> -> Textpattern Notice: unknown_attribute: listform on line 565</code>
Offline