Hi,
I'm working with a Content collection that I'm trying to define some custom templates for. I can create new collection items just fine, but when I try to edit an existing one using my custom template, I'm getting an error Exception while invoking method 'adminUpdateDoc' TypeError: Cannot call method 'update' of undefined. When I test Session.get('admin_collection_name') in the console it's printing out "Content" as it should.
I have these templates defined in admin_config.js:
Hi, I'm working with a Content collection that I'm trying to define some custom templates for. I can create new collection items just fine, but when I try to edit an existing one using my custom template, I'm getting an error
Exception while invoking method 'adminUpdateDoc' TypeError: Cannot call method 'update' of undefined
. When I testSession.get('admin_collection_name')
in the console it's printing out"Content"
as it should.I have these templates defined in admin_config.js:
The AdminDashboardContentNew template works fine, since it's pretty simple right now for testing:
And here is my AdminDashboardContentEdit template for reference:
Any help would be greatly appreciated, don't know where I'm going wrong here!