I'm using pdoResource to make a simple call to list a group of news items. That works fine and the information renders. I'm also using Newspublisher to allow front-end editing. This is the chunk that is being used to include an edit button with the editor being on the resource 66:
<article class="news">
<h3>[[+pagetitle]]</h3>
[[+content]]
[[!NpEditThisButton? &np_id=`66` &np_edit_id=`[[+id]]`]]
</article>
And in the front each item is listed with the appropriate and relevant id for each resource is listed in the form - an example below:
form class="np_button_form" method="post" action="newspublisher/">
<input type="hidden" value="true" name="np_existing">
<input type="hidden" value="72" name="np_doc_id">
<input class="np_edit_this_button" type="submit" value="Edit" name="submit">
</form>
However, when I click the edit button all but the last item on the list gets the following message when I try to edit:
The last item in the list does go through to the editor - the rest don't.
I have successfully used getResources and Newspublisher on previous sites, but for some reason this is not working here. I think the pdoResource is aggregating the information correctly, but for some reason the edit button isn't actually firing quite right.
There is nothing in the error log either!
This is a site currently under development with Revo 2.2.3 on MODX Cloud.