[textpattern] r3586 committed - Add 'id' attribute to <txp:linklist />, the red-headed stepchild of al...

0 views
Skip to first unread message

textp...@googlecode.com

unread,
Aug 24, 2011, 7:12:56 AM8/24/11
to txp...@googlegroups.com
Revision: 3586
Author: r.wetzlmayr
Date: Wed Aug 24 04:12:04 2011
Log: Add 'id' attribute to <txp:linklist />, the red-headed stepchild
of all list tags.
http://code.google.com/p/textpattern/source/detail?r=3586

Modified:
/development/4.x/textpattern/publish/taghandlers.php

=======================================
--- /development/4.x/textpattern/publish/taghandlers.php Mon Jul 25
04:43:51 2011
+++ /development/4.x/textpattern/publish/taghandlers.php Wed Aug 24
04:12:04 2011
@@ -428,6 +428,7 @@
'auto_detect' => 'category, author',
'class' => __FUNCTION__,
'form' => 'plainlinks',
+ 'id' => '',
'label' => '',
'labeltag' => '',
'pageby' => '',
@@ -443,6 +444,7 @@
$pageby = ($pageby=='limit') ? $limit : $pageby;

if ($category) $where[] = "category IN ('".join("','",
doSlash(do_list($category)))."')";
+ if ($id) $where[] = "id IN ('".join("','", doSlash(do_list($id)))."')";
if ($author) $where[] = "author IN ('".join("','",
doSlash(do_list($author)))."')";
if ($realname) {
$authorlist = safe_column('name', 'txp_users', "RealName IN ('".
join("','", doArray(doSlash(do_list($realname)), 'urldecode')) ."')" );

Reply all
Reply to author
Forward
0 new messages