Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Get Media File GUID Via Admin Portal

$
0
0
For @wysocki's suggestion append a PermissionTypes attribute to the MessageBoxAction, like this:
<MessageBoxAction 
          Label="GUID" MessageBoxTitle="${C1:Data:Composite.Data.Types.IMediaFile:FileName}" 
          MessageBoxMessage="${C1:Data:Composite.Data.Types.IMediaFile:Id}" 
          PermissionTypes="administrate" /> 
See https://docs.composite.net/Console/Tree-Schema-Definition-Reference/MessageBoxAction

For @burningice's suggestion, edit the source code of the GetMediaLinkActionToken and GetPageLinkActionToken classes and limit the permission type to only "PermissionType.Administrate" (removing "PermissionType.Edit") - around line 17,19 in both classes.

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>