I have grid property and i am using doctype grid editor. One of the editors uses tags property editor. What i want to do is when content is saved in the pre save event get the grid content and more specifically get the tags property and get what user has entered.
I have the event wired up but wasnt sure now about the best way of getting to the tags dtg value. Anyone any ideas ?
Doctype grid editor in pre save event
I have grid property and i am using doctype grid editor. One of the editors uses tags property editor. What i want to do is when content is saved in the pre save event get the grid content and more specifically get the tags property and get what user has entered.
I have the event wired up but wasnt sure now about the best way of getting to the tags dtg value. Anyone any ideas ?
Ismail
Looks like you can use the method outlined here in the source to get some strongly typed data back:
https://github.com/skttl/umbraco-doc-type-grid-editor/blob/90459245d4583b5ffef68394556390a4ecbdd1ed/src/Our.Umbraco.DocTypeGridEditor/Web/UI/App_Plugins/DocTypeGridEditor/Render/DocTypeGridEditor.cshtml#L26
which is using this method here:
https://github.com/skttl/umbraco-doc-type-grid-editor/blob/90459245d4583b5ffef68394556390a4ecbdd1ed/src/Our.Umbraco.DocTypeGridEditor/Helpers/DocTypeGridEditorHelper.cs#L21
hmm could have bigger issue here, https://github.com/skttl/umbraco-doc-type-grid-editor under known issues apparantly tags is one of them. So at the moment i get issue in grid
Yeah Tags is one of the data types which has compatibility issues and probably will never work with DTGE according to Soren:
https://github.com/skttl/umbraco-doc-type-grid-editor/issues/156
is working on a reply...