web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Can we assign a ADX liquid template object to a javascript object like the "posts" in below liquid code

(0) ShareShare
ReportReport
Posted on by 745

I had tried this var quotes = JSON.parse({{ posts| json }}); var quotes = ({{ posts| json }}); wasted a lot of time can some body help OR can tell the attributes of blogpost

{% assign posts = blogs.posts | paginate: 0,4 %}
<div class="content-panel panel panel-default">
  <div class="panel-heading">
    {% assign sitemarker = sitemarkers["Blog Home"] %}
    {% assign snippet = snippets["Home Blog Activity Heading"] %}
    <a class="pull-right" href="{{sitemarker.url}}"> All Blogs </a>
    <h4> 
<div>

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Andreas Cieslik Profile Picture
    9,267 on at

    Hi,

    This guide may help you to find the required Attributes:

    community.adxstudio.com/.../blogs

    Cheers,

    Andreas

  • MMK Profile Picture
    745 on at

    Thanks Andreas for your reply

    i had picked the above code from the link you shared but unable get its attributes like image and blogpost url   just getting the tiltle i am trying to create a custom designed page for blogs and its details so i had to get its other attributes also

  • Andreas Cieslik Profile Picture
    9,267 on at

    post.url should give the URL

    maybe post.content provides the image along with the text, because I could not find an image attribute in the documentation

    or try to use snippet from here github.com/.../121

    to check the output in your browsers debug console to check what contents or attribs are available.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans