Consider this cenario.
A website that allows users to add comments to each page. Comments must be approved before beeing displayed on the site. The approval has to be made by one content editor. How can we display in the backoffice a page that shows the comments waiting to be approved and an approval mecanism?
You have to create custom property editor with list of waiting for approval comments. And pust this editor on the page. Also you can restrict access to this page or to all admin part for all other users.
Depends on structure what you have, as I understood each page will have comments, so you can add property editor to pages where possibly can be some comments.
Well I was thinking more of having a centralized place in the backoffice to manage all comments waiting for aproval, independently of the specific page of the site where the comment was done.
But you'll want first to create a section and then use the code above in that section rather than using the settings (as I did) - I can't find a single fully guided tutorial (though I am sure this is one somewhere!) but the folllowing links will help - there are source code examples in the links.
I'm new to Umbraco and I'm not sure what do you mean by "Do you create node for each comment?"
I have created a site where I can coment on a specific page and then under that page in the Content Section view a list of all comments made.
@Steve
Thanks for your reply!
I´ll have to look with more detail to the links you provided but this seems to be the way to go, although a very laborious one.
Best practices to extend backoffice
Consider this cenario. A website that allows users to add comments to each page. Comments must be approved before beeing displayed on the site. The approval has to be made by one content editor. How can we display in the backoffice a page that shows the comments waiting to be approved and an approval mecanism?
Hi Pedro,
You have to create custom property editor with list of waiting for approval comments. And pust this editor on the page. Also you can restrict access to this page or to all admin part for all other users.
https://our.umbraco.org/documentation/tutorials/Creating-a-Property-Editor/
Thanks,
Alex
Hello Alex,
Thanks for your reply!
When you say "And put this editor on the page.", to which page are you refering to?
Thanks, Pedro
Depends on structure what you have, as I understood each page will have comments, so you can add property editor to pages where possibly can be some comments.
Well I was thinking more of having a centralized place in the backoffice to manage all comments waiting for aproval, independently of the specific page of the site where the comment was done.
Yes, you can do it centralized.
Do you create node for each comment?
That you probably want to look at creating a Custom Section.
I have a blog post which shows you how to create custom trees and
Extending with a Custom Tree1
But you'll want first to create a section and then use the code above in that section rather than using the settings (as I did) - I can't find a single fully guided tutorial (though I am sure this is one somewhere!) but the folllowing links will help - there are source code examples in the links.
http://jondjones.com/how-to-create-a-custom-section-in-umbraco-7/
http://www.nibble.be/?p=440
@Alex
I'm new to Umbraco and I'm not sure what do you mean by "Do you create node for each comment?" I have created a site where I can coment on a specific page and then under that page in the Content Section view a list of all comments made.
@Steve
Thanks for your reply! I´ll have to look with more detail to the links you provided but this seems to be the way to go, although a very laborious one.
UmbracoTV offers NO tutorials about this...
Pedro, than you need to add property editor to root node or as Steve said new section for moderation Comments.
Depends on how do you want to do it.
Are there any step by step tutorials on adding a custom section WITH the code to view stuff, all too many just say :
And magically expect people to know where to put the code in.
Massive sections skipped.
is working on a reply...