Edit Record with RazorRenderForm- AllowEditing/SubmitButtonText
Hi Tim
After recently upgrading to Contour 3 and then just today 3.0.4, I connot get AllowEditing or SubmitButtonText working on the Razor Macro. The form whether it is passed a ?recordGuid=... querystring or not, forms always create a new record and don't populate with the original record values. I have added the AllowEditing / SubmitButtonText to the Macro Parameters without joy. Note: I see I will need to modify the forms.cshtml View to get the update the button text, but that is not as important as getting record editing running.
I have Umbraco 4.11.1 + Contour 3.0.4
Further, not sure if related or not, but the Javascript in the script view: umbraco/plugins/umbracoContour/Views/Script.cshtml - renders empty, eg: the foreach in following doesn't return anything.
function PopulateRecordValues() { contourFieldValues = new Array();
You can edit a record in the backoffice... but the option to render the razor macro in edit mode by providing a record id isnt available yet, setting this to the 3.0.8 release that get's released on 4 march
Of just made a change that makes it possible with the razor macro
just add ?recordGuid=d944a872-f3dc-4518-ab0f-3ab3ca4caa45 to the querystring and it will be possible to edit a record (proving it the correct id of the record)
Edit Record with RazorRenderForm- AllowEditing/SubmitButtonText
Hi Tim
After recently upgrading to Contour 3 and then just today 3.0.4, I connot get AllowEditing or SubmitButtonText working on the Razor Macro. The form whether it is passed a ?recordGuid=... querystring or not, forms always create a new record and don't populate with the original record values. I have added the AllowEditing / SubmitButtonText to the Macro Parameters without joy. Note: I see I will need to modify the forms.cshtml View to get the update the button text, but that is not as important as getting record editing running.
I have Umbraco 4.11.1 + Contour 3.0.4
Further, not sure if related or not, but the Javascript in the script view: umbraco/plugins/umbracoContour/Views/Script.cshtml - renders empty, eg: the foreach in following doesn't return anything.
Any thoughts?
Thanks
Josh
Comment author was deleted
Hey Josh,
Currently record editing isn't supported by the razor macro but will have a go at it this week so will post result here
Any idea when this will be available ?
I also have Umbraco 4.11.1 + Contour 3.0.4
I need urgently help on this.
Edit record isn't still available? How it's possible that such a simple thing still not working?
Comment author was deleted
You can edit a record in the backoffice... but the option to render the razor macro in edit mode by providing a record id isnt available yet, setting this to the 3.0.8 release that get's released on 4 march
Comment author was deleted
If you want to follow the progress: http://issues.umbraco.org/issue/CON-248
Comment author was deleted
Of just made a change that makes it possible with the razor macro
just add ?recordGuid=d944a872-f3dc-4518-ab0f-3ab3ca4caa45 to the querystring and it will be possible to edit a record (proving it the correct id of the record)
possible with 3.0.8 WIP http://nightly.umbraco.org/Umbraco%20Contour/3.0.8%20WIP/
Hi Tim,
Thanks for efforts, but 3.0.8 WIP is not compatible with 4.11
It throws an error when upgrading, so I had restored 3.0.6 from backup
Should I update umbraco to V6 ?
is working on a reply...