ContributionsMost RecentMost LikesSolutionsRe: Get attachment date VarunGrazitti This workaround would work for one attachement per article... "Unfortunatly" we've got several documents on articles, an not uploaded at the same time (and often updated). So we can rely on the article dates. Maybe a custom metadata could do the trick, if metadata are supported on attachment of course. Thanks for your help JC Re: Get attachment date GrazittiI thanks for the précision. anyway, is it possible to get the "created date" for an attachement? regards JC Get attachment date Hi is there a way to get the last updated date for an attachment? Don't see anything related to this in the doc. Thanx per advance. JC Re: Disable mobile view with freemarker Ok for the moment i've got this workaround: <#if coreNode.id == "my-blog" && clientDevice.mobile> <#assign mob_check = http.session.attributes.name.get("mobilecheck", "no") /> <#if mob_check == "no"> ${http.session.setAttribute("mobilecheck", "done")} <#assign redir_url = http.request.url?replace("?device-view=mobile","") /> <#assign redir_url = redir_url + "?device-view=desktop" /> ${http.response.setRedirectUrl(redir_url)} </#if> </#if> but I guess I could do the same thing in a proper way ... Can we access the session var for the clientDevice? More generally , any suggestion ? regards JC Disable mobile view with freemarker Hi I would like to disable the mobile view for a particular blog (and go responsive). I know I we can set a skin in the page initialization like that: <#if page.name == "custom-page-id" > ${skin.set("custom_skin")} </#if> Is there a way to force the desktop view to be applied? regards JC Re: REST API: Retrieve user latest messages only for selected category or board Hi Sam! thanks, that's what i was looking for! blogs/id/blog-dev/search/messages?q=is_root:true&author_id=5&restapi.format_detail=full_list_element&restapi.response_style=view do the trick now ;) regards JC Re: REST API: Retrieve user latest messages only for selected category or board Hi , thanx for the reply, but i've got no problem with the location (but you're syntax is better than the other ;) ).... My problem is that i've got no result if i don't specify the q parameter : search/messages?q=test&board_id=blog-dev&author_id=5&restapi.response_style=view will return results search/messages?board_id=blog-dev&author_id=5&restapi.response_style=view return an empty response : <response status="success"> <messages/> </response> regards JC Re: REST API: Retrieve user latest messages only for selected category or board Hi ! i know it is an old topic, but i'd like to do the same thing: retreive messages from an author on a particular blog. The problem with?location=blog-board%3Atest-blog&author_id=5 is that my rest response is empty. I need to add the q parameter to make the results appear... Moreover, ,n the standard search page result, whereas leaving the search box empty in the Lithosphere return all posts by default, in our community we get the error "Empty search query. Please enter one or more keywords and try again." Thus this rest call which works perfectly here: http://community.lithium.com/restapi/vc/search/messages?location=Board%3Astudio&author_id=12780 would failed on our side. Is there a param in the admin to specify that the search query can be empty? If not , is there a wildcard i can set in the url for the q param? Regards JC Re: Latest 3 blog articles (Freemarker) Hi Paolo thanx for the answer. Well, from my point of view (i'm not into the product team :smileyhappy:) i don't see the difference between the Teaser html field and the Body html field... the Body is also a text field that the user can populate with arbitrary HTML... As it seems to be the same, adding a rest call for images of that field or include the images contained in the teaser in message/image method doesn't seem to be impossible... (as http://community.lithium.com/restapi/vc/messages/id/128039/images). Well i'll create a macro as well, many thanx. JC Re: Latest 3 blog articles (Freemarker) Hi We're trying to do almost the same... but i was wondering if there is an rest api method to retreive images from the blog teaser. There is an api call for the images contained in a blog message (example: http://community.lithium.com/restapi/vc/messages/id/128039/images ), but i can't found the teaser's images. In the example you provide, we need to manually parse the teaser string, which is quite tedious and having it in a rest call would simplify the customisation on a blog page... regards JC