Forum Discussion
vishwajeet_hol
10 years agoExpert
I want the teaser image of blog article.
For this i am using this rest api call :
<#assign blog_article_teaser = restadmin("/messages/id/<blog_article_ID>/teaser?restapi.response_style=view").value />
I used below context object for blog_article_ID, but its of no use. :
- ${page.context.message.id}
- ${env.context.message.id}
- ${message.id}
- ${message.uniqueId}
- ${page.context.message.uniqueId}
- ${env.context.message.uniqueId}
Let me know if you have any idea.
Thank you.
Regards,
Vishwajeet.
vishwajeet_hol
10 years agoExpert
Hi,
Just for your information.
I have done that using freemrker.
<#assign pageurl=http.request.url/> <#assign pathparams=pageurl?split("/")/> <#assign blog_ID = pathparams[(pathparams?size)-1]/> <#assign blog_article_teaser = restadmin("/messages/id/${blog_ID}/teaser?restapi.response_style=view").value />
Let me know if we can do the same using freemarker context object
Thank you.
Regards,
Vishwajeet
Related Content
- 12 years ago
- 4 years ago
- 4 years ago
- 13 years agoInactive User