In case this is to long to read...the back office editor checks whether the user can edit a document...can I hook into that and prevent edits based on user type and either a property on the document or at least document type?
[Original post below]
Still trying to prove Umbraco can host an Intranet for a client. And to do that without having to code the underlying logic (ie happy to create partial views with Razor and macros, but trying to avoid coding at the Api level if possible - this frightens clients with issues of supportability / upgradeability)
I've kind asked this before, but may have to approach this from a new angle.
The idea is that the Intranet will have new articles : some that anyone can create/edit and some that only admins can edit.
I created two parent nodes ('user docs' and 'admin docs') and users' starting node is 'user docs'.
The home page combines lists of both, and anyone can view them so all is well.
However, the problem is they want to add comments to be listed under each article.
I created comments as child documents under the articles, and again, this works really well, particularly using the markdown editor to allow some styling of content.
However, because ordinary users can't edit the admin articles, nor can they create child documents.
This is a shame as I was using the excellent Frontend Editing package to allow them to edit documents from the front end.
I was hoping to find a way to allow them to create child documents but not edit / delete or unpublish the parent.
I am coming to the conclusion there is no way of doing this with Umbraco 'as is'.
I did wonder about using some Ajax to create the comments documents and linking them to the parent article but not sure where to begin?
Any ideas?
I have noticed people on this forum are very helpful.
Sooooooooooo close!
In case this is to long to read...the back office editor checks whether the user can edit a document...can I hook into that and prevent edits based on user type and either a property on the document or at least document type?
[Original post below]
Still trying to prove Umbraco can host an Intranet for a client. And to do that without having to code the underlying logic (ie happy to create partial views with Razor and macros, but trying to avoid coding at the Api level if possible - this frightens clients with issues of supportability / upgradeability)
I've kind asked this before, but may have to approach this from a new angle.
The idea is that the Intranet will have new articles : some that anyone can create/edit and some that only admins can edit.
I created two parent nodes ('user docs' and 'admin docs') and users' starting node is 'user docs'.
The home page combines lists of both, and anyone can view them so all is well.
However, the problem is they want to add comments to be listed under each article.
I created comments as child documents under the articles, and again, this works really well, particularly using the markdown editor to allow some styling of content.
However, because ordinary users can't edit the admin articles, nor can they create child documents.
This is a shame as I was using the excellent Frontend Editing package to allow them to edit documents from the front end.
I was hoping to find a way to allow them to create child documents but not edit / delete or unpublish the parent.
I am coming to the conclusion there is no way of doing this with Umbraco 'as is'.
I did wonder about using some Ajax to create the comments documents and linking them to the parent article but not sure where to begin?
Any ideas?
I have noticed people on this forum are very helpful.
Consider that flattery - and a challenge! ;-)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.