You might want to display all comments, and this script will retrieve them:
Wiki Output Sample Copy to clipboard {LIST(cache="n")}
{filter type="comment"}
{pagination max="10"}
{OUTPUT( template="table")}
{column field="title"}
{column field="comment_content"}
{column field="object_link" mode="raw"}
{column field="date"}
{OUTPUT}
{FORMAT( name="object_link")}
{display name="object_id" format="objectlink"}
{FORMAT}
{sort mode="date_desc"}
{LIST}
The FORMAT control block defines an object with the name object_link which is displayed in such a way that it is object_id which is displayed and formatted as objectlink; which makes the id clickable. This object reference is then used in the column control block in the body of the OUTPUT table.
This gives us the following result:
Title
|
Comment
|
Thread Id
|
Date
|
can a url be made into a LINK automatically? |
can a url be made into a link automatically? |
104 |
2005-01-05 15:39:29 |
Static page rewrite rule |
I changed the second rule to work for static pages - was 'page-' suppose to work with for static pages? In both rules I allowed + _ - let me know if you can think of problems that might arise by doing this. RewriteRule wiki-([[-_\+A-Za-z0-9]]+) tiki-index_raw.php?page=$1 [[QSA,L]] RewriteRule page-( -_\+A-Za-z0-9 +) tiki-page.php?pageName=$1 [[QSA,L]] |
102 |
2004-12-02 22:05:06 |
Amélioration de la traduction |
Quelqu'un devrait installer Tiki sur Windows en français et vérifier si les mots clefs sont bien traduits. Par exemple, le nom des boutons à cliquer, le noms des champs à remplir, les items de menu de Tiki, etc... |
101 |
2004-11-28 23:13:42 |
re: applying the line spacing standard |
This is because my multi-tiki where doc.tikiwiki.org sits is running the smarty, remove whitespace output filter. Nothing can be done about it. It does exist correctly on the page and in the database. the filter is just removing it. Damian |
99 |
2004-11-14 20:48:17 |
applying the line spacing standard |
The standard specifies there should be an empty line before each heading. In the example of what's right, there is no blank line before the second and third headings. The only difference is a space demonstrating the Capitalisation standard. This is in the Line Spacing example. |
93 |
2004-11-08 02:54:12 |
Applying formatting standards |
I suggest we apply the formatting standards to the examples, since this will be used as template by a lot of contributors. There should be a space between the exclamation marks and the titles. |
92 |
2004-11-08 02:47:59 |
the use of this page |
I think this page should include a chart of where templates are used e.g. tiki-simple_plugin.tpl is where $display_catobjects is created. |
91 |
2004-11-03 20:11:09 |
Require in httpd.conf too |
I am using the Rewrite rule in a Directory stanza from the httpd.conf file of Apache/1.3.31 (Debian GNU/Linux). I had to make these changes as well; many thanks for figuring this out, it was a big help! |
90 |
2004-10-26 02:35:17 |
Suggested clarification |
I had some trouble grasping the implications of this statement; I thought maybe Tiki 1.9 required MySQL 4.1+ as well: "MySQL 4.1+ works with TikiWiki 1.9 onwards due to a ADODB upgrade." Perhaps: "MySQL 4.1+ requires TikiWiki 1.9 or later due to the ADODB upgrade. The ADODB upgrade is compatible with earlier TikiWiki versions. Thanks |
89 |
2004-10-25 21:23:54 |
How to apply a theme |
I know it should have been obvious, but I could have used a mention at the top of this page that says that you apply a theme on the 'General' page of the admin section. |
84 |
2004-10-08 10:37:53 |
We see that this only gives us the information about the object (the comment in this case), but what if I want to have more information before visiting the comment?
One way to do this is to add a column which indicates the item being commented on. It is typically a wiki page or tracker item which is clickable and takes me there.
So let's make some changes and see what we have:
Wiki Output Sample Copy to clipboard {LIST(cache="n")}
{filter type="comment"}
{pagination max="10"}
{OUTPUT( template="table")}
{column field="contributors"}
{column field="title"}
{column field="comment_content"}
{column field="parent_object_title" mode="raw"}
{column field="object_link" mode="raw"}
{column field="date"}
{OUTPUT}
{FORMAT( name="object_link")}
{display name="object_id" format="objectlink"}
{FORMAT}
{FORMAT( name="parent_object_title")}
{display name="parent_object_type"}: {display name="wikiplugin_objectlink" format="wikiplugin" type="parent_object_type" id="parent_object_id"}
{FORMAT}
{sort mode="date_desc"}
{LIST}
Here we have just added a new column whose label is "Parent Object".
The new FORMAT control block formats the parent_object_title field, which is the title of the comment's parent object, then with {display} tag we first display the name of the parent object, which is stored in the parent_object_type field. For example, if the parent object is a trackeritem, it will display "trackeritem:", and finally we display the link to the parent object, using the wikiplugin_objectlink plugin. This plugin allows you to create a link to a Tiki object according to its type and its identifier. Here you specify the link format as "wikiplugin", the object type as parent_object_type, and the object id as parent_object_id. For example, if the parent object is a trackeritem with id 1, this will generate a link to "tiki-view_tracker_item.php?itemId=1".
So you get a field that displays the name and link of the comment's parent object. For example, if the comment is linked to an item called "This is my first item", you display "trackeritem: This is my first item".
This gives us the following result:
Title
|
Comment
|
Parent Object
|
Thread Id
|
Date
|
can a url be made into a LINK automatically? |
can a url be made into a link automatically? |
wiki page: Wiki-Syntax Links |
104 |
2005-01-05 15:39:29 |
Static page rewrite rule |
I changed the second rule to work for static pages - was 'page-' suppose to work with for static pages? In both rules I allowed + _ - let me know if you can think of problems that might arise by doing this. RewriteRule wiki-([[-_\+A-Za-z0-9]]+) tiki-index_raw.php?page=$1 [[QSA,L]] RewriteRule page-( -_\+A-Za-z0-9 +) tiki-page.php?pageName=$1 [[QSA,L]] |
wiki page: Apache Clean URLs |
102 |
2004-12-02 22:05:06 |
Amélioration de la traduction |
Quelqu'un devrait installer Tiki sur Windows en français et vérifier si les mots clefs sont bien traduits. Par exemple, le nom des boutons à cliquer, le noms des champs à remplir, les items de menu de Tiki, etc... |
wiki page: Installer Tiki sur un PC Windows |
101 |
2004-11-28 23:13:42 |
re: applying the line spacing standard |
This is because my multi-tiki where doc.tikiwiki.org sits is running the smarty, remove whitespace output filter. Nothing can be done about it. It does exist correctly on the page and in the database. the filter is just removing it. Damian |
wiki page: Tiki Manual of Style |
99 |
2004-11-14 20:48:17 |
applying the line spacing standard |
The standard specifies there should be an empty line before each heading. In the example of what's right, there is no blank line before the second and third headings. The only difference is a space demonstrating the Capitalisation standard. This is in the Line Spacing example. |
wiki page: Tiki Manual of Style |
93 |
2004-11-08 02:54:12 |
Applying formatting standards |
I suggest we apply the formatting standards to the examples, since this will be used as template by a lot of contributors. There should be a space between the exclamation marks and the titles. |
wiki page: Documentation Templates |
92 |
2004-11-08 02:47:59 |
the use of this page |
I think this page should include a chart of where templates are used e.g. tiki-simple_plugin.tpl is where $display_catobjects is created. |
wiki page: Smarty Templates |
91 |
2004-11-03 20:11:09 |
Require in httpd.conf too |
I am using the Rewrite rule in a Directory stanza from the httpd.conf file of Apache/1.3.31 (Debian GNU/Linux). I had to make these changes as well; many thanks for figuring this out, it was a big help! |
wiki page: Apache Clean URLs |
90 |
2004-10-26 02:35:17 |
Suggested clarification |
I had some trouble grasping the implications of this statement; I thought maybe Tiki 1.9 required MySQL 4.1+ as well: "MySQL 4.1+ works with TikiWiki 1.9 onwards due to a ADODB upgrade." Perhaps: "MySQL 4.1+ requires TikiWiki 1.9 or later due to the ADODB upgrade. The ADODB upgrade is compatible with earlier TikiWiki versions. Thanks |
wiki page: Requirements |
89 |
2004-10-25 21:23:54 |
How to apply a theme |
I know it should have been obvious, but I could have used a mention at the top of this page that says that you apply a theme on the 'General' page of the admin section. |
wiki page: Styles and Themes |
84 |
2004-10-08 10:37:53 |
|