Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pedro Melo 4 posts 75 karma points
    Oct 01, 2016 @ 20:23
    Pedro Melo
    1

    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?

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Oct 03, 2016 @ 09:06
    Alex Skrypnyk
    0

    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

  • Pedro Melo 4 posts 75 karma points
    Oct 03, 2016 @ 09:32
    Pedro Melo
    0

    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

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Oct 03, 2016 @ 09:34
    Alex Skrypnyk
    0

    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.

  • Pedro Melo 4 posts 75 karma points
    Oct 03, 2016 @ 09:41
    Pedro Melo
    0

    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.

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Oct 03, 2016 @ 09:47
    Alex Skrypnyk
    0

    Yes, you can do it centralized.

    Do you create node for each comment?

  • Steve Morgan 1346 posts 4453 karma points c-trib
    Oct 03, 2016 @ 09:52
    Steve Morgan
    0

    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

  • Pedro Melo 4 posts 75 karma points
    Oct 03, 2016 @ 10:45
    Pedro Melo
    0

    @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...

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Oct 03, 2016 @ 11:30
    Alex Skrypnyk
    0

    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.

  • Damien (Slipoch) 62 posts 346 karma points
    Jan 11, 2017 @ 04:03
    Damien (Slipoch)
    0

    Are there any step by step tutorials on adding a custom section WITH the code to view stuff, all too many just say :

    and now we put in the code below

    And magically expect people to know where to put the code in.

    Massive sections skipped.

Please Sign in or register to post replies

Write your reply to:

Draft