Skip to main content
Community site session details

Community site session details

Session Id :
Power Pages - Customize & Extend
Suggested answer

Liquid how to use custom objects?

(0) ShareShare
ReportReport
Posted on by
Hi all
I try following lines of code in a Power Page Website:
{% assign myObject = {"A": 123, "B": 47839} %}
{% if myObject %}
    myObject.A: '{{ myObject.A }}'
{% else %}
    myObject is null!
{% endif %}
 
output is always 'myObject is null!
 
Is it possible to work with custom objects in Power Pages liquid? What do I wrong?
Categories:
  • Suggested answer
    Lucas001 Profile Picture
    2,253 Super User 2025 Season 2 on at
    Liquid how to use custom objects?
     
    unfortunately custom objects are not really supported inside power pages liquid.
     
    There are defined objects like the user, ad, forum etc. but custom objects are not a thing.
     
    In case you really need a custom object you could use a longer string in combination with split.
    If you have a specific usecase, please share it with us and we can have a look if there is another way.
     
     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 2

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 2

#3
surya narayanan Profile Picture

surya narayanan 35

Featured topics