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
|
what to do after downloaded php_iamgick.dll |
how to make this dll can be invoke by PHP or windows( which one really invoke it?), that is a big hurdle. |
56 |
2004-02-10 20:18:07 |
thumbnails can work by installing without GD or Image Magick? |
I'm a newbie lives in Windows I setup 1.8 by apache, php and mysql, by it seems the thumbernails in image gallery works by invoking the third or extented part lib, which was set by default in *nix systems.(?) And i want to see the thunbnails, how to do this? |
55 |
2004-02-10 19:10:11 |
how to install GD or image magick in Windows? |
I've setup 1.8, but thumbnails were just the original images. Apache2+php4+MySQL, lateset versions, and default settings. How to add GD or image magick lib to PHP/PEAR? to make thumbnails work? |
54 |
2004-02-10 19:04:01 |
Needs images |
There should be some images on this page - something to show them what the installer should look like. Also - if they are running MySql to create the dbase - they should make note of which version it is. IE 3x or 4.0 for the install. Also - Error messages - mostly that is in the form of directories - a listing should be given so that people with only FTP access can chmod them by hand. There is also the Temporary directory which can be named anything in the php.ini file. Probably Temp but maybe Tmp. 😊 |
53 |
2004-02-08 19:48:34 |
for 1st para |
On a laptop ..add your reason here! |
50 |
2004-02-07 19:45:31 |
loading problems |
No, I hadn't read the whole document. Shame on me! You did mention GD and ImageMagick! But there can be another problem arising (for me, for example) from folder permissions so the images can't be imported through the default temporary folders. Code has to be modified. Thanks again Markku for your help with this. |
38 |
2004-01-22 00:17:57 |
other problems |
Unless something has changed in Tiki 1.74, the Image Galleries depend on the GD or ImageMagick libraries. My unfortunate experience is a hosting where the first works badly (some versions - unlucky!), and the second is waiting (3 months!) for someone to install it correctly. Everything apparently works but there's no thumbnail or picture. Windows doesn't have the libraries though I think I've got a version of ImageMagick for Windows somewhere. |
37 |
2004-01-21 23:55:27 |
Re: Version 1.8? |
I commited this code in CVS HEAD and it's true that it has not been merged in 1.8RC3, I suppose it will be in 1.9 ... |
28 |
2004-01-16 16:48:01 |
TOC & Settings |
Two items. 1 The examples given on this page make the assumption that the Table Syntax is set to "\n" instead of "|| for rows" - the installation default - this is not mentioned. 2 This page is long enought that it really should have a TOC. I added the Hidden Details and the Text Continuation Headings to it |
25 |
2004-01-09 09:30:44 |
Version 1.8? |
I reviewed that and don't get the same page title neither the automatic stuff. Was 1.9 used? My 1.8 looks just like tw.o's WikiAdmin picture. |
16 |
2004-01-06 07:11: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
|
what to do after downloaded php_iamgick.dll |
how to make this dll can be invoke by PHP or windows( which one really invoke it?), that is a big hurdle. |
wiki page: ImageMagick Install |
56 |
2004-02-10 20:18:07 |
thumbnails can work by installing without GD or Image Magick? |
I'm a newbie lives in Windows I setup 1.8 by apache, php and mysql, by it seems the thumbernails in image gallery works by invoking the third or extented part lib, which was set by default in *nix systems.(?) And i want to see the thunbnails, how to do this? |
wiki page: Windows Desktop Install |
55 |
2004-02-10 19:10:11 |
how to install GD or image magick in Windows? |
I've setup 1.8, but thumbnails were just the original images. Apache2+php4+MySQL, lateset versions, and default settings. How to add GD or image magick lib to PHP/PEAR? to make thumbnails work? |
wiki page: Image Gallery Config |
54 |
2004-02-10 19:04:01 |
Needs images |
There should be some images on this page - something to show them what the installer should look like. Also - if they are running MySql to create the dbase - they should make note of which version it is. IE 3x or 4.0 for the install. Also - Error messages - mostly that is in the form of directories - a listing should be given so that people with only FTP access can chmod them by hand. There is also the Temporary directory which can be named anything in the php.ini file. Probably Temp but maybe Tmp. 😊 |
wiki page: Linux |
53 |
2004-02-08 19:48:34 |
for 1st para |
On a laptop ..add your reason here! |
wiki page: Windows Desktop Install |
50 |
2004-02-07 19:45:31 |
loading problems |
No, I hadn't read the whole document. Shame on me! You did mention GD and ImageMagick! But there can be another problem arising (for me, for example) from folder permissions so the images can't be imported through the default temporary folders. Code has to be modified. Thanks again Markku for your help with this. |
wiki page: Image Gallery User |
38 |
2004-01-22 00:17:57 |
other problems |
Unless something has changed in Tiki 1.74, the Image Galleries depend on the GD or ImageMagick libraries. My unfortunate experience is a hosting where the first works badly (some versions - unlucky!), and the second is waiting (3 months!) for someone to install it correctly. Everything apparently works but there's no thumbnail or picture. Windows doesn't have the libraries though I think I've got a version of ImageMagick for Windows somewhere. |
wiki page: Image Gallery User |
37 |
2004-01-21 23:55:27 |
Re: Version 1.8? |
I commited this code in CVS HEAD and it's true that it has not been merged in 1.8RC3, I suppose it will be in 1.9 ... |
wiki page: Mail-in |
28 |
2004-01-16 16:48:01 |
TOC & Settings |
Two items. 1 The examples given on this page make the assumption that the Table Syntax is set to "\n" instead of "|| for rows" - the installation default - this is not mentioned. 2 This page is long enought that it really should have a TOC. I added the Hidden Details and the Text Continuation Headings to it |
wiki page: Wiki-Syntax Lists |
25 |
2004-01-09 09:30:44 |
Version 1.8? |
I reviewed that and don't get the same page title neither the automatic stuff. Was 1.9 used? My 1.8 looks just like tw.o's WikiAdmin picture. |
wiki page: Mail-in |
16 |
2004-01-06 07:11:02 |
|