How to add "page.updated_at" in each page

Solved
JLbyone
Navigator
284 20 79

Hi there community, im trying to get last updated date on each page, but unfortunatly there is no updated_at object on page.liquid.. 

i managed to get date from now.. but i cannot make it to get desired date..

<div class="page-block__info">
   <span class="page-block__date">
    Última actualización: {{ "now" | date: "%Y-%m-%d %H:%M" }}.
   </span>                  
  </div>
"updated_at": "2008-07-16T20:00:00-04:00"

https://shopify.dev/api/admin-rest/2021-10/resources/page#resource_object

 

 

Anyone is able to help me? in advance thanks !

Accepted Solution (1)

Accepted Solutions
LitCommerce
Trailblazer
257 61 67

This is an accepted solution.

Hi @JLbyone,

Please add code: {{ page.published_at }}

Returns the timestamp of when the page was created. https://i.imgur.com/zEItMCC.png

Hope it helps!

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!

View solution in original post

Replies 4 (4)
JLbyone
Navigator
284 20 79
LitCommerce
Trailblazer
257 61 67

This is an accepted solution.

Hi @JLbyone,

Please add code: {{ page.published_at }}

Returns the timestamp of when the page was created. https://i.imgur.com/zEItMCC.png

Hope it helps!

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!

View solution in original post

JLbyone
Navigator
284 20 79

@LitCommerce thanks for this! it works perfect! 

LitCommerce
Trailblazer
257 61 67

Hi @JLbyone,

If you have any difficulty, you can contact me

Happy to help you

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!