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
|
friend |
Seems like there should be a simplified way of linking between wiki pages and articles in the same TW. But, external linking seems to be the the closest thing. |
243 |
2007-05-05 05:43:47 |
Limiting the number of feeds? |
I have created an rss module and the feed coming from the other site is rather large it comes up with about 20 headilnes , is there a way that I can limit the number of headlines displayed? |
240 |
2007-04-30 04:46:14 |
Linking to attached files? |
This page should document how to link to attahed files. I havn't found the definitive guide anywhere, and the functionality is annoying at best 😑 No such attachment on this page is the only example I've found so far. I can't find the definition of this or how to use more functionality |
238 |
2007-04-24 07:40:14 |
great. but articles/faq should have wysiwyg too. |
This is really great, I installed the development 1.10 and it's a relief to have wysiwyg. However, it's not possible to use the wysiwig editor for articles, faq, etc. This should be added to there as well. |
230 |
2007-04-19 06:04:03 |
Can you use Smarty to create Web Forms? |
Can't you use Smarty to create web forms? Is there a howto on this? |
220 |
2007-04-18 05:08:24 |
Walkthrough? |
How about something like this ? I started it a while ago, but never got around to completing.... 😑 |
211 |
2007-03-16 10:54:12 |
popup on the left |
Sometimes it is comvenient to have the popup on the left (because you have ne right column). To do that add in the calendar templates (in 1.9 tiki-calendar.tpl), in the popup parameters {popup... } {popup left=true ...} |
210 |
2007-01-12 15:41:47 |
LDAP auth to active directory |
I had success with the configuration below. None of the above worked as-is for me, and I had to change some code to get this working properly. In lib/LDAP.php I changed line 189 from: Copy to clipboard if ((@ldap_bind($this->conn_id)) == false) { to Copy to clipboard if ((@ldap_bind($this->conn_id,"user@domain.tld","password")) == false) { Then I used the following values for "Login" in Admin panel: Create user if not in Tiki? checked Create user if not in Auth? unchecked Just use Tiki auth for admin? checked LDAP URL: blank LDAP Host: my.domain.controller.com LDAP Port: 389 LDAP Scope: sub LDAP Base DN: DC=domain, DC=tld LDAP User DN: CN=Users (this is for default AD users container) LDAP User Attribute: sAMAccountName LDAP User OC: * LDAP Group DN: blank LDAP Group Attribute: blank LDAP Group OC: blank LDAP Member Attribute: LDAP Member Is DN: n LDAP Admin User: blank LDAP Admin Pwd: blank YMMV. Hope this helps someone. |
208 |
2006-11-14 22:28:56 |
slider |
Will nice to have a tracker field like http://webfx.eae.net/dhtml/slider/slider.html (but this one has not the right license) |
205 |
2006-10-12 17:24:03 |
Re: Is this syntax correct? |
> I don't seem to be able to include a poll in a wiki page with: > > {poll id=2} this is smarty syntax to be used in "custom modules" (Admin -> Modules) you can then include the whole module with poll into a wiki page via MODULE wiki plugin > > as indicated in this doc page. However, this does work: > > {POLL(pollId=>2)}{POLL} this is POLL wiki plugin |
203 |
2006-10-05 19:24:50 |
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
|
friend |
Seems like there should be a simplified way of linking between wiki pages and articles in the same TW. But, external linking seems to be the the closest thing. |
wiki page: Wiki-Syntax Links |
243 |
2007-05-05 05:43:47 |
Limiting the number of feeds? |
I have created an rss module and the feed coming from the other site is rather large it comes up with about 20 headilnes , is there a way that I can limit the number of headlines displayed? |
wiki page: RSS Modules |
240 |
2007-04-30 04:46:14 |
Linking to attached files? |
This page should document how to link to attahed files. I havn't found the definitive guide anywhere, and the functionality is annoying at best 😑 No such attachment on this page is the only example I've found so far. I can't find the definition of this or how to use more functionality |
wiki page: Wiki-Syntax Links |
238 |
2007-04-24 07:40:14 |
great. but articles/faq should have wysiwyg too. |
This is really great, I installed the development 1.10 and it's a relief to have wysiwyg. However, it's not possible to use the wysiwig editor for articles, faq, etc. This should be added to there as well. |
wiki page: WYSIWYG |
230 |
2007-04-19 06:04:03 |
Can you use Smarty to create Web Forms? |
Can't you use Smarty to create web forms? Is there a howto on this? |
wiki page: HTML Pages |
220 |
2007-04-18 05:08:24 |
Walkthrough? |
How about something like this ? I started it a while ago, but never got around to completing.... 😑 |
wiki page: Basic Docs Project |
211 |
2007-03-16 10:54:12 |
popup on the left |
Sometimes it is comvenient to have the popup on the left (because you have ne right column). To do that add in the calendar templates (in 1.9 tiki-calendar.tpl), in the popup parameters {popup... } {popup left=true ...} |
wiki page: Calendar Admin |
210 |
2007-01-12 15:41:47 |
LDAP auth to active directory |
I had success with the configuration below. None of the above worked as-is for me, and I had to change some code to get this working properly. In lib/LDAP.php I changed line 189 from: Copy to clipboard if ((@ldap_bind($this->conn_id)) == false) { to Copy to clipboard if ((@ldap_bind($this->conn_id,"user@domain.tld","password")) == false) { Then I used the following values for "Login" in Admin panel: Create user if not in Tiki? checked Create user if not in Auth? unchecked Just use Tiki auth for admin? checked LDAP URL: blank LDAP Host: my.domain.controller.com LDAP Port: 389 LDAP Scope: sub LDAP Base DN: DC=domain, DC=tld LDAP User DN: CN=Users (this is for default AD users container) LDAP User Attribute: sAMAccountName LDAP User OC: * LDAP Group DN: blank LDAP Group Attribute: blank LDAP Group OC: blank LDAP Member Attribute: LDAP Member Is DN: n LDAP Admin User: blank LDAP Admin Pwd: blank YMMV. Hope this helps someone. |
wiki page: LDAP authentication |
208 |
2006-11-14 22:28:56 |
slider |
Will nice to have a tracker field like http://webfx.eae.net/dhtml/slider/slider.html (but this one has not the right license) |
wiki page: PluginVote |
205 |
2006-10-12 17:24:03 |
Re: Is this syntax correct? |
> I don't seem to be able to include a poll in a wiki page with: > > {poll id=2} this is smarty syntax to be used in "custom modules" (Admin -> Modules) you can then include the whole module with poll into a wiki page via MODULE wiki plugin > > as indicated in this doc page. However, this does work: > > {POLL(pollId=>2)}{POLL} this is POLL wiki plugin |
wiki page: Poll Admin |
203 |
2006-10-05 19:24:50 |
|