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
|
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> That didn't work either. |
624 |
2008-04-12 15:52:22 |
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> |
623 |
2008-04-12 15:49:09 |
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 |
622 |
2008-04-12 15:38:18 |
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? |
621 |
2008-04-12 15:04:18 |
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 . |
619 |
2008-04-12 13:49:32 |
blog on the main page |
How do I put a blog on the main page? |
616 |
2008-04-12 09:23:15 |
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. |
615 |
2008-04-12 09:20:28 |
How to turn it off? |
I cannot find "external wikis" on the Admin Features page. How do I disable this feature? Thank you. |
604 |
2008-03-26 20:12:12 |
Re: Comment on Overview |
No new table is created. Data is stored in existing tables. |
599 |
2008-03-20 11:34:27 |
Some system considerations |
To be able to upload image for fckeditor, the server needs to have permission to scan the directory img/wiki_up/ tikidomain /image (repalce tikidomain with the domain if working in a multitiki context) and no index.php must be in this directory |
598 |
2008-02-25 20:57:32 |
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
|
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> That didn't work either. |
wiki page: Banners |
624 |
2008-04-12 15:52:22 |
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> |
wiki page: Banners |
623 |
2008-04-12 15:49:09 |
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 |
wiki page: Banners |
622 |
2008-04-12 15:38:18 |
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? |
wiki page: Banners |
621 |
2008-04-12 15:04:18 |
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 . |
wiki page: Banners |
619 |
2008-04-12 13:49:32 |
blog on the main page |
How do I put a blog on the main page? |
wiki page: Blog Config |
616 |
2008-04-12 09:23:15 |
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. |
wiki page: Banners |
615 |
2008-04-12 09:20:28 |
How to turn it off? |
I cannot find "external wikis" on the Admin Features page. How do I disable this feature? Thank you. |
wiki page: External Wikis |
604 |
2008-03-26 20:12:12 |
Re: Comment on Overview |
No new table is created. Data is stored in existing tables. |
wiki page: Trackers |
599 |
2008-03-20 11:34:27 |
Some system considerations |
To be able to upload image for fckeditor, the server needs to have permission to scan the directory img/wiki_up/ tikidomain /image (repalce tikidomain with the domain if working in a multitiki context) and no index.php must be in this directory |
wiki page: Wysiwyg Editor Admin |
598 |
2008-02-25 20:57:32 |
|