Our Easter promo offer is on! Join now or renew your subscription with 25% OFF! Read More

Support Forum

vincent
vincent
Offline
As the title says. I've tried things like article.extra_fields, of course they don't work.

Besides, I wanna see the key values of "article", so I tried doing
  <dl>
{% for key,value in articles|last %}
<dt>
{{key}}
</dt>
<dd>
{{value}}
</dd>
{% endfor %}
</dl>


But it outputs


Could you please teach me about what I did wrong?
Responses (1)
  • Accepted Answer

    Tuesday, April 13 2021, 03:05 PM - #Permalink
    Hi Vincent,

    It is not possible to fetch article custom fields in the particles.
    For more details, please have a look at this discussion and the links in it.

    In the above discussion you will find many useful links to topics in the official Gantry 5 documentation.
    Apart from them, you might want to have a look at this one as well.
    The reply is currently minimized Show
Your Reply

Become an insider | Subscribe to our Newsletter
Subscribe to our mailing list and stay up-to-date with all our awesome releases, latest updates and amazing discount offers!