Copied to clipboard

Flag this post as spam?

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


  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Dec 07, 2018 @ 16:03
    Ali Sheikh Taheri
    0

    Disable Create and Delete

    Hi

    Is there any way to disable Create and Delete action and just to allow update?

    Also is there any way to change the default view (basically filter the result based on a column value? for example all active members.

    Thanks

    Ali

  • Comment author was deleted

    Dec 08, 2018 @ 18:41

    Filter yes, you can hook into the event model and update the query, there are some exampkes on the forum here,

    Only update I don't think so, read only yes but it's read only or crud

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Dec 10, 2018 @ 09:13
    Ali Sheikh Taheri
    0

    Thanks Tim.

    I know this might be a very rare case, but in this case, I only need to allow users to update an existing record without letting them to delete or create a new record.

    Do you have any suggestion or can you think of any approach that I can implement to add that functionality?

  • Comment author was deleted

    Dec 10, 2018 @ 09:26

    You can always fork and tweak or you could do some backoffice tweaking and just hide the options with some js/css logic...

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Dec 10, 2018 @ 15:06
    Ali Sheikh Taheri
    0

    Hi Tim,

    Thanks, I ended up just removing the delete and create button from the UI. that should do the trick for now.

    Cheers

    Ali

  • fatmazayed 41 posts 122 karma points
    May 11, 2022 @ 07:16
    fatmazayed
    0

    go to vs umbraco->Views->components->propertyeditors->listview->listview.html then in listview page in div

     {{(listViewAllowedTypes[0].id}}
     <!-- Renders when it's only possible to create one specific document type for, which no blueprint exists-->
                      <div class="btn-group" ng-show="createAllowedButtonSingle &&
                                   (
                                         (listViewAllowedTypes[0].id!=2081) 
                             )">
    

    instead of 2081 write your document id

    to get your document id write {{(listViewAllowedTypes[0].id}}

Please Sign in or register to post replies

Write your reply to:

Draft