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
|
Custom LESS New in Tiki 15 |
New in 15.x custom LESS pref. Example: @brand-primary: #abb; @gray-base: #431; @navbar-inverse-bg: #797; @navbar-default-bg: #cea; |
835 |
2016-01-22 16:33:44 |
Manage Product Inventory |
Any details on "Manage Product Inventory" or "anonymous shopping" ? Thanks, luci |
834 |
2015-08-03 22:29:51 |
Does not seem to work in 9.x |
Does not seem to work in 9.x nor here. |
833 |
2012-11-06 01:38:49 |
Tiki7 |
But if all goes well, we can backport for 6.3 |
831 |
2011-02-09 18:59:21 |
PluginTrackerToggle for for which Tiki version? |
for which Tiki version? |
830 |
2011-02-09 10:16:18 |
Re: added to the structure now |
lindon wrote: added as the last feature. Should features be in alphabetical order on the doc page? He he, good question, lindon. There was not agreement on this issue in the past (afaik), but it could be a good moment to request some agreement on this topic again, since the list is growing and growing with each release, and new users (at least, besides many of us) don't understand the logics of that (semi-random?) sorting... Imho, we need an easy way (feature) to re-sort pages under a node (äll children pages) in alphabetical order with the power of a single click in structure administration panel... (I don't know how to do that myself... and structure management need more care from coders) Another example is that we seem to have lost again the ability to easily add a page to the structure by editing it from the box at the header of a previous (or parent) page in the same structure... How did you add this page to the structure? (I bet that you have to make lots of clicks through the admin structures interface...) |
829 |
2010-12-20 10:11:04 |
added to the structure now |
added as the last feature. Should features be in alphabetical order on the doc page? |
828 |
2010-12-20 04:50:45 |
mmm, not added to the doc structure? |
mmm, for some reason, this page doesn't get added to the documentation structure (by means of editing it from edit box in the header of a previous page in that structure)... |
827 |
2010-12-14 19:11:35 |
+1 |
As per tikiwiki.org/where |
826 |
2010-07-03 16:07:17 |
Dev |
Shouldn't the content of this page be on dev.tw.o instead? The content is mostly internals and future ideas. |
825 |
2010-07-01 15:56:43 |
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
|
Custom LESS New in Tiki 15 |
New in 15.x custom LESS pref. Example: @brand-primary: #abb; @gray-base: #431; @navbar-inverse-bg: #797; @navbar-default-bg: #cea; |
wiki page: Customization |
835 |
2016-01-22 16:33:44 |
Manage Product Inventory |
Any details on "Manage Product Inventory" or "anonymous shopping" ? Thanks, luci |
wiki page: Shopping Cart |
834 |
2015-08-03 22:29:51 |
Does not seem to work in 9.x |
Does not seem to work in 9.x nor here. |
wiki page: PluginScroll |
833 |
2012-11-06 01:38:49 |
Tiki7 |
But if all goes well, we can backport for 6.3 |
wiki page: PluginTrackerToggle |
831 |
2011-02-09 18:59:21 |
PluginTrackerToggle for for which Tiki version? |
for which Tiki version? |
wiki page: PluginTrackerToggle |
830 |
2011-02-09 10:16:18 |
Re: added to the structure now |
lindon wrote: added as the last feature. Should features be in alphabetical order on the doc page? He he, good question, lindon. There was not agreement on this issue in the past (afaik), but it could be a good moment to request some agreement on this topic again, since the list is growing and growing with each release, and new users (at least, besides many of us) don't understand the logics of that (semi-random?) sorting... Imho, we need an easy way (feature) to re-sort pages under a node (äll children pages) in alphabetical order with the power of a single click in structure administration panel... (I don't know how to do that myself... and structure management need more care from coders) Another example is that we seem to have lost again the ability to easily add a page to the structure by editing it from the box at the header of a previous (or parent) page in the same structure... How did you add this page to the structure? (I bet that you have to make lots of clicks through the admin structures interface...) |
wiki page: Accounting |
829 |
2010-12-20 10:11:04 |
added to the structure now |
added as the last feature. Should features be in alphabetical order on the doc page? |
wiki page: Accounting |
828 |
2010-12-20 04:50:45 |
mmm, not added to the doc structure? |
mmm, for some reason, this page doesn't get added to the documentation structure (by means of editing it from edit box in the header of a previous page in that structure)... |
wiki page: Accounting |
827 |
2010-12-14 19:11:35 |
+1 |
As per tikiwiki.org/where |
wiki page: Score Details |
826 |
2010-07-03 16:07:17 |
Dev |
Shouldn't the content of this page be on dev.tw.o instead? The content is mostly internals and future ideas. |
wiki page: Score Details |
825 |
2010-07-01 15:56:43 |
|