Forum
itemUpdated data
Hi,
I am looking to access the itemUpdated data that is displayed when using the <perch:showall> tag within a template. The particular region is shared.
Is it possible to retrieve using the API or a perch function?
Thanks Marc
If you can see it in
<perch:showall>
you should be able to use it by ID directly in the template.Thanks Drew, I will see what I can do
It works but shows up in the editing form as an editable text field, is there a way to hide it from an editor?
Hello Marc,
You can use
type="hidden"
.Hi Hussein,
I have already tried that as I thought that be the solution but no luck.
Can you show us your template? A field with type
hidden
shouldn't show on an edit form.This template seems to function as it should. It does not show the field in the edit form for me and outputs the timestamp to the page when the edit form is saved.
It seems to work when using
perch_content
but not withperch_content_custom
perch_content_custom()
outputs content from an existing region. It doesn't affect your region's edit form.Is there another method to access this field? Maybe through the api?
You may be overthinking it a little.
Create the shared region:
Output the region using
my_template.html
:Or if you wish to use a different template to output it:
You should be able to use the
itemUpdated
field in the template you use for output.