Permission based Edit+ Configuration


(Harinder Singh) #1

Matrix Version:5.5.3.0

I am trying to override the global settings for Create wizard categories as per user’s permissions but it is not working. Surely, the syntax in the script tags is incorrect. Can anyone help?

Global settings in Edit+ Manager:

createWizardCategories : {
    'Assets': {
        display_name: 'Assets',
        assets: [
            {
                type_code:      'bulk_upload',
                interface_type: 'wizard_default', 
                display_name:   'Bulk Upload Files',
                description:    'Select multiple files to upload in bulk'     
            },
            {
                type_code:      'page_standard',
                interface_type: 'wizard_default', 
                display_name:   'Standard Page',
                description:    'Use Standard Pages for Manuals pages'
            },            
            {
                type_code:      'folder',
                display_name:   'Folder',
                interface_type: 'wizard_default',
                description:    'Folders are used to organise documents, images, movies and other files within your system.'

            }      
        ]
    }
}

Customised section

%begin_in_admin_staff:152182% 
<script>
    EasyEditConfig.assetFinderLocations =   [
         %globals_asset_assetid:154639%,   /* Admin Section */
         %globals_asset_assetid:151844%,   /* Library */
         %globals_asset_assetid:154643%    /* Gallery Folder */    
    ];
    EasyEditConfig.createWizardCategories = [
	    'Assets': {
	        display_name: 'Assets',
	        assets: [
	            {
	                type_code:      'bulk_upload',
	                interface_type: 'wizard_default', 
	                display_name:   'Bulk Upload Files',
	                description:    'Select multiple files to upload in bulk'     
	            },
	            {
	                type_code:      'page_standard',
	                interface_type: 'wizard_default', 
	                display_name:   'Standard Page',
	                description:    'Use Standard Pages for Manuals pages'
	            }
	        ]
	    }
    ];
</script>
%end_in_admin_staff:152182%

Thanks


(Bart Banda) #2

What part part “isn’t working”? Is the keyword condition not working or the code that is inside the keyword condition is not updating the actual asset creator?


(Harinder Singh) #3

It was the json code inside the condition. I knew my json syntax was incorrect but wasnt able to figure it out.

After few attempts, I managed to fix it. It is working great.