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
|
Print - Only Current? |
Print button on a structure only prints the current page. This behavior is inconsistent with the PDF button. Since both are output methods, they should both operate on the same scope, either just this page, or all structure pages. There is currently not a print entire structure, as far as I know. Just Print Pages, and then you must cherry pick the correct structure pages. Print entire strucuture would be very helpful |
122 |
2005-06-23 22:48:51 |
Filtering on user selector |
It would be very helpful if the docs explained how to filter a tracker based on the user selector. For instance, if you want to implement trackers that the user can only see their own items, you append a "&my=" to the tracker url. It took me quite a while to find this in the code. |
117 |
2005-05-02 19:24:13 |
Re: Suggested clarification |
Mysql 4.1+ works with php-mysql. It does not work with php-mysqli, because adodb did not clean the mysqli-adodb module |
116 |
2005-04-29 10:38:15 |
Re: Full TOC on root page mandatory? |
> How can one insert a toc containing only direct descendants on the root page? A: remove recursion from build_subtree_toc |
115 |
2005-04-16 21:40:40 |
Full TOC on root page mandatory? |
How can one insert a toc containing only direct descendants on the root page? |
114 |
2005-04-16 21:31:03 |
db or file? |
For wiki attachements, which is better, storing in the database or a file directory? How about adding a "best practicies" section to detail the pros/cons of each method. Why should I select one method over the other? |
113 |
2005-04-13 20:04:09 |
Possible revision of this page |
Review Tiki Installation Follow the installation steps to establish a working environment (database server, webserver with php). To install TikiWiki: 1. Download latest official Tiki release 2. Extract the compressed file into web hosting directory of webserver 3. Create and use database for Tiki in database server a) Create tikidatabase b) Create tikisqluser, assign tikisqluser password c) Assign permissions on tikidatabase to tikisqluser d) Edit db/local.php to include: tikisqluser, tikisqluser password, tikidatabase 4. Establish permissions on the "directory of webserver/setup.sh" with command: CHMOD 755 setup.sh 5. Run the setup script: ./setup.sh user group rights list of virtual host domains 6. Open Tiki in web browser: http://127.0.0.1/tiki-index_raw.php 7. Login to Tiki Admin page using username: admin, password admin You will be greeted by the default configuration, opening the Wiki Features default HomePage. |
111 |
2005-02-12 12:08:52 |
non-admin user gallery |
This page fails to mention that when you are logged in as a non-admin user, the create gallery page does not give you the option to show to non-admin users. So when a user creates a gallery, it does not show up in the list of galleries, letting the user think that there is an error somewhere. |
109 |
2005-02-05 10:23:21 |
Are forums/articles etc wiki pages? |
How about blogs? etc Is there any wiki-syntax links for these? At the moment I treat these as external links eg http://tikiwiki.org/tiki-view_forum.php?forumId=6 which doesn't feel correct. Should I ever merge or split a site, updating the links like this will be a nightmare! |
108 |
2005-01-14 17:44:24 |
Re: can a url be made into a LINK automatically? |
Yes there is a autolinks option on your Admin->Features page. |
107 |
2005-01-13 13:37:18 |
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
|
Print - Only Current? |
Print button on a structure only prints the current page. This behavior is inconsistent with the PDF button. Since both are output methods, they should both operate on the same scope, either just this page, or all structure pages. There is currently not a print entire structure, as far as I know. Just Print Pages, and then you must cherry pick the correct structure pages. Print entire strucuture would be very helpful |
wiki page: Structures |
122 |
2005-06-23 22:48:51 |
Filtering on user selector |
It would be very helpful if the docs explained how to filter a tracker based on the user selector. For instance, if you want to implement trackers that the user can only see their own items, you append a "&my=" to the tracker url. It took me quite a while to find this in the code. |
wiki page: Tracker User |
117 |
2005-05-02 19:24:13 |
Re: Suggested clarification |
Mysql 4.1+ works with php-mysql. It does not work with php-mysqli, because adodb did not clean the mysqli-adodb module |
wiki page: Requirements |
116 |
2005-04-29 10:38:15 |
Re: Full TOC on root page mandatory? |
> How can one insert a toc containing only direct descendants on the root page? A: remove recursion from build_subtree_toc |
wiki page: Structures |
115 |
2005-04-16 21:40:40 |
Full TOC on root page mandatory? |
How can one insert a toc containing only direct descendants on the root page? |
wiki page: Structures |
114 |
2005-04-16 21:31:03 |
db or file? |
For wiki attachements, which is better, storing in the database or a file directory? How about adding a "best practicies" section to detail the pros/cons of each method. Why should I select one method over the other? |
wiki page: Wiki Config |
113 |
2005-04-13 20:04:09 |
Possible revision of this page |
Review Tiki Installation Follow the installation steps to establish a working environment (database server, webserver with php). To install TikiWiki: 1. Download latest official Tiki release 2. Extract the compressed file into web hosting directory of webserver 3. Create and use database for Tiki in database server a) Create tikidatabase b) Create tikisqluser, assign tikisqluser password c) Assign permissions on tikidatabase to tikisqluser d) Edit db/local.php to include: tikisqluser, tikisqluser password, tikidatabase 4. Establish permissions on the "directory of webserver/setup.sh" with command: CHMOD 755 setup.sh 5. Run the setup script: ./setup.sh user group rights list of virtual host domains 6. Open Tiki in web browser: http://127.0.0.1/tiki-index_raw.php 7. Login to Tiki Admin page using username: admin, password admin You will be greeted by the default configuration, opening the Wiki Features default HomePage. |
wiki page: Initial Configuration |
111 |
2005-02-12 12:08:52 |
non-admin user gallery |
This page fails to mention that when you are logged in as a non-admin user, the create gallery page does not give you the option to show to non-admin users. So when a user creates a gallery, it does not show up in the list of galleries, letting the user think that there is an error somewhere. |
wiki page: Image Gallery User |
109 |
2005-02-05 10:23:21 |
Are forums/articles etc wiki pages? |
How about blogs? etc Is there any wiki-syntax links for these? At the moment I treat these as external links eg http://tikiwiki.org/tiki-view_forum.php?forumId=6 which doesn't feel correct. Should I ever merge or split a site, updating the links like this will be a nightmare! |
wiki page: Wiki-Syntax Links |
108 |
2005-01-14 17:44:24 |
Re: can a url be made into a LINK automatically? |
Yes there is a autolinks option on your Admin->Features page. |
wiki page: Wiki-Syntax Links |
107 |
2005-01-13 13:37:18 |
|