Templating the UID field

The UID field is a unique identifier that can be used specifically to create SEO-friendly website URLs. 

Get the UID value

To get the UID value, you just need to access UID property on the retrieved document object as shown below.

  • php (sdk v4 or later)
  • php (sdk v3 or earlier)
Copy
<?php
$uid = $document->uid;
Copy
<?php
$uid = $document->getUid();

Was this article helpful?
Not really
Yes, Thanks

Can't find what you're looking for? Get in touch with us on our Community Forum.