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
|
MIssing fields |
This doc is missing several fields compared to my 1.8.6 install LDAP Group DN: similar to User DN but both should be called User or Group RDN LDAP Group Attribute: LDAP Group OC: LDAP Member Attribute: LDAP Member Is DN: \\Greg |
146 |
2005-11-03 03:57:45 |
Page needs to discuss link aliasing |
This page needs a subsection explaining how to create aliased wiki links. |
145 |
2005-10-30 05:15:34 |
Re: Demo movie |
> I created a quick demo movie that shows the two methods to create a new page. It might be nice to link to it from this page (let folks actually see how to create and edit pages). I like the demo movie, but I would prefer to have a movie that separate the role of a user with the one of an administrator. Adding modules to a site is done by an administrator. I see the tutorials mainly from a User point of view. May be there will be some tutorials from an administrator point of view but I don't want to mix the two roles. |
144 |
2005-10-26 12:16:57 |
Demo movie |
I created a quick demo movie that shows the two methods to create a new page. It might be nice to link to it from this page (let folks actually see how to create and edit pages). |
143 |
2005-10-24 13:47:43 |
Restricting 'other' files |
I have added this to the end of my rewrite rules, as a safety net against users retrieving/running sql, perl, tpl, shell, etc from any directory in tikiwiki. tiki-download-file.php handles other files stored in the galleries. Comments welcome. RewriteRule !\.(?i:php|gif|jpe?g|png|tiff?|pdf|css|js|csv|rtf)$ - [[F]] |
142 |
2005-10-20 19:28:55 |
ALT works too! |
Need to mention that the ALT element works as well. For example: |
141 |
2005-10-18 01:25:03 |
Re: list problems |
You can't breakup a numbered list with non-numbered paragraphs — the list will restart. For example, you can't have: 1. Step One 2. Step Two Some text here 3. Step three Instead, TIKI will reset the count at: 1. Step tree. This should be mentioned in the doc |
140 |
2005-10-18 01:23:16 |
Create Page is confusing |
The current TIKI concept of how to create a new page is very confusing to new users — you have to already be editing an existing wiki page in order to create a new one. This is (IMHO) very anti-user friendly. This section should mention the two ways to create a new page: 1. Using the quick_edit module to create a new page from scratch 2. Using the MyNewPage method, docuemented here. |
139 |
2005-10-18 01:18:48 |
Re: I'm still unsure what trackers do. |
Trackers appear to be designed to allow you to, well, track things. I'm sure that the original intent was to track bugs in the software, but they've made it an open ended system where you can track whatever you want. One bit of documentation I read said it is more of a forms editor, so you can devise trackers to collect any kind of information that you want, but all items appear to get the status of open, pending, or closed, so there is still a notion of "tracking" regardless of the content. We have just set up a tracker to help us track the production status of items in our application. Since they can exist on many layers (hand coded files, database objects and procedures, input data files, generated templates, etc.) it's hard to make sure that everything has been pushed from development to test to production. We're just setting it up, but it looks like will work well without me having to go find yet another package to do this sort of thing. |
138 |
2005-09-29 15:16:48 |
I'm still unsure what trackers do. |
I've heard people talk about trackers but still not clear - is this a mini database tool for holding and sorting data input by users or is it a tool to program database queries with? the name suggests the latter, but the function seems to be the former. suppose i want to create a page in my tiki that displays how many wiki pages contain the word "beer", with who edited that word in and when? can i do that with a tracker or with something else? |
137 |
2005-09-27 22:33:02 |
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
|
MIssing fields |
This doc is missing several fields compared to my 1.8.6 install LDAP Group DN: similar to User DN but both should be called User or Group RDN LDAP Group Attribute: LDAP Group OC: LDAP Member Attribute: LDAP Member Is DN: \\Greg |
wiki page: LDAP authentication |
146 |
2005-11-03 03:57:45 |
Page needs to discuss link aliasing |
This page needs a subsection explaining how to create aliased wiki links. |
wiki page: Wiki-Syntax Links |
145 |
2005-10-30 05:15:34 |
Re: Demo movie |
> I created a quick demo movie that shows the two methods to create a new page. It might be nice to link to it from this page (let folks actually see how to create and edit pages). I like the demo movie, but I would prefer to have a movie that separate the role of a user with the one of an administrator. Adding modules to a site is done by an administrator. I see the tutorials mainly from a User point of view. May be there will be some tutorials from an administrator point of view but I don't want to mix the two roles. |
wiki page: Tutorial - Editing Wiki Pages |
144 |
2005-10-26 12:16:57 |
Demo movie |
I created a quick demo movie that shows the two methods to create a new page. It might be nice to link to it from this page (let folks actually see how to create and edit pages). |
wiki page: Tutorial - Editing Wiki Pages |
143 |
2005-10-24 13:47:43 |
Restricting 'other' files |
I have added this to the end of my rewrite rules, as a safety net against users retrieving/running sql, perl, tpl, shell, etc from any directory in tikiwiki. tiki-download-file.php handles other files stored in the galleries. Comments welcome. RewriteRule !\.(?i:php|gif|jpe?g|png|tiff?|pdf|css|js|csv|rtf)$ - [[F]] |
wiki page: Apache Clean URLs |
142 |
2005-10-20 19:28:55 |
ALT works too! |
Need to mention that the ALT element works as well. For example: |
wiki page: Wiki-Syntax Images |
141 |
2005-10-18 01:25:03 |
Re: list problems |
You can't breakup a numbered list with non-numbered paragraphs — the list will restart. For example, you can't have: 1. Step One 2. Step Two Some text here 3. Step three Instead, TIKI will reset the count at: 1. Step tree. This should be mentioned in the doc |
wiki page: Wiki-Syntax Lists |
140 |
2005-10-18 01:23:16 |
Create Page is confusing |
The current TIKI concept of how to create a new page is very confusing to new users — you have to already be editing an existing wiki page in order to create a new one. This is (IMHO) very anti-user friendly. This section should mention the two ways to create a new page: 1. Using the quick_edit module to create a new page from scratch 2. Using the MyNewPage method, docuemented here. |
wiki page: Using Wiki Pages |
139 |
2005-10-18 01:18:48 |
Re: I'm still unsure what trackers do. |
Trackers appear to be designed to allow you to, well, track things. I'm sure that the original intent was to track bugs in the software, but they've made it an open ended system where you can track whatever you want. One bit of documentation I read said it is more of a forms editor, so you can devise trackers to collect any kind of information that you want, but all items appear to get the status of open, pending, or closed, so there is still a notion of "tracking" regardless of the content. We have just set up a tracker to help us track the production status of items in our application. Since they can exist on many layers (hand coded files, database objects and procedures, input data files, generated templates, etc.) it's hard to make sure that everything has been pushed from development to test to production. We're just setting it up, but it looks like will work well without me having to go find yet another package to do this sort of thing. |
wiki page: Trackers |
138 |
2005-09-29 15:16:48 |
I'm still unsure what trackers do. |
I've heard people talk about trackers but still not clear - is this a mini database tool for holding and sorting data input by users or is it a tool to program database queries with? the name suggests the latter, but the function seems to be the former. suppose i want to create a page in my tiki that displays how many wiki pages contain the word "beer", with who edited that word in and when? can i do that with a tracker or with something else? |
wiki page: Trackers |
137 |
2005-09-27 22:33:02 |
|