Jump to content

Featured Replies

Posted

How to get the ID of the record on Pages templates?

I have tried:

$record->id

$record->_id

$record->primary_id_field

->primary_id_field would be right, but you need to make sure the variable is correct. If you are in a different template inside a loop it could be $row for instance instead.

  • Author
 

->primary_id_field would be right

Perfect, I guess caching was the reason it did not work before.

Recently Browsing 0

  • No registered users viewing this page.