I have a plugin that's loaded on the edit page of an entry.
Whenever I open the entry edit page, I would like to retrieve the id of this particular entry. I've tried this:
{% set someId = craft.request.getParam('entryId') %}
But this just returns null.
I need the id because I use it in my service: craft.pluginName.getRecordByEntryId(someId).
Which will return information that's bound to that page.
I've also tried this:
{% for entry in craft.entries %}
{% if entry.id %}
<p>EntryId: <input type="text" value="{{ entry.id }}"/></p>
{% endif %}{% endfor %}
But this will return all the entry id's, which I can't really use.
Any help or advice on how I should tackle this differently?
Thanks in advance!