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
|
All I can say is... |
WOW! |
803 |
2009-02-12 23:12:17 |
Suggest redesign of doc.tw.o page |
For the first time in a while I scrolled down and saw some article headings for the Editorial Board. I think a lot of folks don't pay attention to it because "out of sight, out of mind". I think there's a LOT of information overload on this site/page. Maybe get rid of the What's New box, get rid of the Keywords box (should be able to do a search on those), and maybe instead add a box to the left (or right) for the Editorial Board topics under the search box? Just some thoughts. I think some important stuff is getting overlooked because it's getting lost in the page, or so far down that people don't think it's relevant. |
802 |
2008-11-22 00:07:21 |
Perms example |
Imagine a site where * Anonymous see nothing * Registereds see the approved pages and not the stagging pages * Authors see the staging+approved pages. They can edit staging pages. They see all the pages: They can categorized with other categories the pages. * Approvers see the staging+approved pages. They can approve pages. The groups are included in each other Anonymous < Registered < Authors < Approvers Group perms * Registered ** tiki_p_view * Authors ** tiki_p_edit ** tiki_p_wiki_view_history * Approvers ** tiki_p_remove ** tiki_p_rename ** tiki_p_rollback If you have other categories, you can add tiki_p_view_categories... as global permissions to Registered 2 categories * Staging * Approved Categories perms * Staging ** Authors: tiki_p_view_categorized ** Authors: tiki_p_edit_categorized * Approved ** Registered: tiki_p_view_categorized ** Approvers : tiki_p_edit_categorized Wiki staging setting: * If not in the group, edit is always redirected to the staging page edit: Approvers * Delete staging pages at approval: yes * Categorize approved pages with categories of staging copy on approval: yes * Force bounce of editing of approved pages to staging: yes * Category for staging pages: Staging * Category for approved pages: Approved * Category for pages out of sync: none * Unique page name prefix to indicate staging copy: * What happens during the staging process with this configuration? * For example a page named mypage. During the staging, 2 pages will be able to coexist, mypage = approved version, *mypage = stagging version * An author clicks edit on mypage, the edit page pannel opens the stagging page *mypage. When he saves *mypage, tikiwiki assigns *mypage to the stagging category. If an author clicks edit on *mypage, the edit page opens on *mypage * An approver approves *mypage. tikiwiki copies all the history of *mypage changes on top of mypage history and assigns the category approved to mypage. tikiwiki deletes *mypage |
800 |
2008-07-23 12:18:45 |
Calendar links not accepted |
It is not possible to use a Calendar link in a Wiki page. The brackets which are required to specify the calendar ID cause the link to not be recognized as a link. [http:tiki-calendar.php?viewlist=list&calIds[]=1|Click here for Calendar] |
799 |
2008-07-11 23:44:44 |
Easy PHP Download points to SourceForge |
I got a 404 when using the EasyPHP download link. The EasyPHP site points to Sourceforge for downloads so I added that link. |
796 |
2008-06-30 19:51:40 |
"Quiz Stats" Automation |
It would be nice if the user was automatically redirected to "Quiz Stats", or have the "Quiz Stats" appear under the "Result: Thank you for your submission." section |
792 |
2008-05-25 02:38:20 |
Re: Where is Chat in 1.10Beta? |
|
791 |
2008-05-17 09:26:32 |
Where is Chat in 1.10Beta? |
I know I used Chat in 1.09.x and am experimenting with 1.10Beta - but where did Chat go - how do I activate it? |
790 |
2008-05-16 12:54:13 |
Use tikiwiki.org forums for support |
Comments here should be about the documentation itself. For questions about how to use TikiWiki, etc., please post at http://tikiwiki.org/tiki-forums.php . More people will see the questions there. -- Gary |
782 |
2008-04-13 13:58:14 |
Re: Re: Re: Re: Re: Re: Adding ads to Tikiwiki |
> > > > > > So how do I do it? > > > > > > Do I use site identity? > > > > > > Do I make a module for each kind of ad? > > > > > > Do I edit the theme? > > > > > > Do I edit something else? > > > > > > > > > > > > I want a half banner at the top. > > > > > > I want some smaller ads on either side. > > > > > > Maybe one somewhere in the center or at the > > > > > > end. > > > > > > > > > > # Create banner zone and put your banner there on Admin → Banners > > > > > # Put the on SI and enable the checkbox " Site ads and banners " and Publish checkbox > > > > > > > > > > Example code to put in the Content area: > > > > > Copy to clipboard <div style="margin-top: 2px; margin-right: 3px; position: absolute; top: 0; right: 0;">{banner zone=Firefox}</div> > > > > > > > > > > For left/right column you can use another banner zone banners using the in custom module which you have to create on Admin → Modules . > > > > > > > > I got this: > > > > Fatal error: Smarty error: in evaluated template line 1 : syntax error: expecting '=' after attribute name 'top' (Smarty_Compiler.class.php, line 1555) in /home/dogshed/public_html/lib/smarty/libs/Smarty.class.php on line 1095 > > > > > > > > Do we need the locations if we are using site identity? > > > > > > it needed id=something > > > I thought that was optional > > Copy to clipboard <div id=htb style="margin-top:2px; margin-right:3px; position:absolute; top:0;right:0; ">{banner zone='home top banner'}</div> apostrophes around 'home top banner' |
625 |
2008-04-12 16:02:55 |
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
|
All I can say is... |
WOW! |
wiki page: PluginDBReport |
803 |
2009-02-12 23:12:17 |
Suggest redesign of doc.tw.o page |
For the first time in a while I scrolled down and saw some article headings for the Editorial Board. I think a lot of folks don't pay attention to it because "out of sight, out of mind". I think there's a LOT of information overload on this site/page. Maybe get rid of the What's New box, get rid of the Keywords box (should be able to do a search on those), and maybe instead add a box to the left (or right) for the Editorial Board topics under the search box? Just some thoughts. I think some important stuff is getting overlooked because it's getting lost in the page, or so far down that people don't think it's relevant. |
wiki page: Documentation |
802 |
2008-11-22 00:07:21 |
Perms example |
Imagine a site where * Anonymous see nothing * Registereds see the approved pages and not the stagging pages * Authors see the staging+approved pages. They can edit staging pages. They see all the pages: They can categorized with other categories the pages. * Approvers see the staging+approved pages. They can approve pages. The groups are included in each other Anonymous < Registered < Authors < Approvers Group perms * Registered ** tiki_p_view * Authors ** tiki_p_edit ** tiki_p_wiki_view_history * Approvers ** tiki_p_remove ** tiki_p_rename ** tiki_p_rollback If you have other categories, you can add tiki_p_view_categories... as global permissions to Registered 2 categories * Staging * Approved Categories perms * Staging ** Authors: tiki_p_view_categorized ** Authors: tiki_p_edit_categorized * Approved ** Registered: tiki_p_view_categorized ** Approvers : tiki_p_edit_categorized Wiki staging setting: * If not in the group, edit is always redirected to the staging page edit: Approvers * Delete staging pages at approval: yes * Categorize approved pages with categories of staging copy on approval: yes * Force bounce of editing of approved pages to staging: yes * Category for staging pages: Staging * Category for approved pages: Approved * Category for pages out of sync: none * Unique page name prefix to indicate staging copy: * What happens during the staging process with this configuration? * For example a page named mypage. During the staging, 2 pages will be able to coexist, mypage = approved version, *mypage = stagging version * An author clicks edit on mypage, the edit page pannel opens the stagging page *mypage. When he saves *mypage, tikiwiki assigns *mypage to the stagging category. If an author clicks edit on *mypage, the edit page opens on *mypage * An approver approves *mypage. tikiwiki copies all the history of *mypage changes on top of mypage history and assigns the category approved to mypage. tikiwiki deletes *mypage |
wiki page: Flagged revisions tab |
800 |
2008-07-23 12:18:45 |
Calendar links not accepted |
It is not possible to use a Calendar link in a Wiki page. The brackets which are required to specify the calendar ID cause the link to not be recognized as a link. [http:tiki-calendar.php?viewlist=list&calIds[]=1|Click here for Calendar] |
wiki page: Wiki-Syntax Links |
799 |
2008-07-11 23:44:44 |
Easy PHP Download points to SourceForge |
I got a 404 when using the EasyPHP download link. The EasyPHP site points to Sourceforge for downloads so I added that link. |
wiki page: Windows Local Install EasyPhp |
796 |
2008-06-30 19:51:40 |
"Quiz Stats" Automation |
It would be nice if the user was automatically redirected to "Quiz Stats", or have the "Quiz Stats" appear under the "Result: Thank you for your submission." section |
wiki page: Quiz User |
792 |
2008-05-25 02:38:20 |
Re: Where is Chat in 1.10Beta? |
|
wiki page: Chat |
791 |
2008-05-17 09:26:32 |
Where is Chat in 1.10Beta? |
I know I used Chat in 1.09.x and am experimenting with 1.10Beta - but where did Chat go - how do I activate it? |
wiki page: Chat |
790 |
2008-05-16 12:54:13 |
Use tikiwiki.org forums for support |
Comments here should be about the documentation itself. For questions about how to use TikiWiki, etc., please post at http://tikiwiki.org/tiki-forums.php . More people will see the questions there. -- Gary |
wiki page: Banners |
782 |
2008-04-13 13:58:14 |
Re: Re: Re: Re: Re: Re: Adding ads to Tikiwiki |
> > > > > > So how do I do it? > > > > > > Do I use site identity? > > > > > > Do I make a module for each kind of ad? > > > > > > Do I edit the theme? > > > > > > Do I edit something else? > > > > > > > > > > > > I want a half banner at the top. > > > > > > I want some smaller ads on either side. > > > > > > Maybe one somewhere in the center or at the > > > > > > end. > > > > > > > > > > # Create banner zone and put your banner there on Admin → Banners > > > > > # Put the on SI and enable the checkbox " Site ads and banners " and Publish checkbox > > > > > > > > > > Example code to put in the Content area: > > > > > Copy to clipboard <div style="margin-top: 2px; margin-right: 3px; position: absolute; top: 0; right: 0;">{banner zone=Firefox}</div> > > > > > > > > > > For left/right column you can use another banner zone banners using the in custom module which you have to create on Admin → Modules . > > > > > > > > I got this: > > > > Fatal error: Smarty error: in evaluated template line 1 : syntax error: expecting '=' after attribute name 'top' (Smarty_Compiler.class.php, line 1555) in /home/dogshed/public_html/lib/smarty/libs/Smarty.class.php on line 1095 > > > > > > > > Do we need the locations if we are using site identity? > > > > > > it needed id=something > > > I thought that was optional > > Copy to clipboard <div id=htb style="margin-top:2px; margin-right:3px; position:absolute; top:0;right:0; ">{banner zone='home top banner'}</div> apostrophes around 'home top banner' |
wiki page: Banners |
625 |
2008-04-12 16:02:55 |
|