Loading...
 
Features / Usability

Features / Usability


BlogList - #Comments & Last user

posts: 3 Germany

Dear Community

A question to BlogList control ... is it possible to somehow add two columns to the Bloglist table

1. The number of comments present on the blog post
2. The user name of the last person to comment

Many thanks.

posts: 8633 Israel

Herr... Are you asking about having forum options to your blog ? :-)

Blog and Comments are different feature and the blog list doesn’t have the option you are looking for.

You can use the forum for such or you should be able using the plugin list or listExecute and dig out the object type and value from https://doc.tiki.org/Unified-Index to create your own list.


posts: 3 Germany

Well yes, I was expecting that as the kind of reply, i.e. go use a forum :-)

Thank you so much for posting an actual reply - I will give it a go.


posts: 3 Germany

This was excellent advice and moved me forward.

Copy to clipboard
{LIST()} {filter field="blog_id" content="1"} {list max="5"} {OUTPUT(template="table")} {column field="creation_date" label="Date" mode="raw"} {column field="title" label="Title" mode="raw"} {column field="contributors" label="Author"} {column field="comment_count" label="Comments"} {OUTPUT} {sort mode="creation_date_desc"} {FORMAT(name="creation_date")}{display name="creation_date" format="date"}{FORMAT} {FORMAT(name="title")}{display name="title" format="objectlink"}{FORMAT} {LIST}  {BOX}


What I am struggling with now is how to go from the Blog object, to its sub comments.

Question - do you have any advice (or links to examples) how to use access child objects in the Format command for a List()?


posts: 8633 Israel

Mmm...

I did something similar a few times using the trackers and tracker item comments (+ semantic alias with a wiki page as template) but I’m (almost) not using blog.

I don’t have an instant answer for your case and it require some experimentation (and time).
May be wait a little for someone else comment ?



Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting