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.
ttadej
7 years agoAdvisor
"Teaser" refers to a text preview. You might be trying to get the "cover image".. in that case try this API v2 call
<#assign blogId = (page.context.message.uniqueId)! /> <#-- Then the v2 call is something like SELECT cover_image from messages WHERE id = '${blogId!}' -->
Related Content
- 12 years ago
- 4 years ago
- 4 years ago
- 13 years agoInactive User