Loading...
 
Skip to main content

Features / Usability


BlogList - #Comments & Last user

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.

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.


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()?


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 ?