4 users online. Create an account or sign in to join them.Users
getting post "entry_id"
This is an open discussion with 4 replies, filed under Troubleshooting.
Search
Have you tried $context['entry']->get('id')?
It's great to have the API documented for methods like this now.
thanks craig. that worked. is there any documentation on how to access properties like that get method? i think that's one of the hardest things I've been trying to deal with when trying to understand how an extension works and how to access the actual content returned.
ah sweet, thanks stephen. I wasn't sure if that stuff was in there or not and where to exactly look
Create an account or sign in to comment.
after creating a post, I am trying to get the "entryid" of that newly created post. However, I am looking through the returned array, and the "entryid" is only available in a protected field which when I try and access, throws an error.
something like this:
which throws this:
is there another way to get this value?