Limit the media types based on user's root media folder?
I'm assuming this isn't implemented but wanted to check before viewing the source.
Is there a way to limit the media types that are displayed to an end user based off of the user's root media folder (from the User Section setup). We were wondering if this is possible without creating a new Digibiz media picker data type for each client. We're using this data type in a multi site environment and want to hide media types specific to client A from client B (example below).
Thanks
Zac
For example,
Only data types would be FolderA, FolderB, CustomA and CustomB
Media Root
-- FolderA - CustomA
-- FolderB - CustomB
Client A's root media folder is set to FolderA.
When client A clicks create, they would only have the option to create FolderA or CustomA.
Limit the media types based on user's root media folder?
I'm assuming this isn't implemented but wanted to check before viewing the source.
Is there a way to limit the media types that are displayed to an end user based off of the user's root media folder (from the User Section setup). We were wondering if this is possible without creating a new Digibiz media picker data type for each client. We're using this data type in a multi site environment and want to hide media types specific to client A from client B (example below).
Thanks
Zac
For example,
Only data types would be FolderA, FolderB, CustomA and CustomB
Media Root
-- FolderA
- CustomA
-- FolderB
- CustomB
Client A's root media folder is set to FolderA.
When client A clicks create, they would only have the option to create FolderA or CustomA.
Hello,
Currently it's not possible to limit the media types based on root media folder, but it is possible to give the user a different start node based on the root node. It's all explained in this video from 14:00 http://codegarden12.com/sessions/day-two/slot-four/lightning-package-heaven.aspx
Here is a little example of how it could work.
Media tree:
- Website1 (Folder MediaType)
--- Folder1 (Folder MediaType)
-----Media1 (Image MediaType)
-----Media2 (Image MediaType)
- Website2 (Folder MediaType)
--- Folder1 (Folder MediaType)
----- Media3 (Image MediaType)
The first User has Website1 as root node and the second User has Website2 as root node.
In DAMP you could use this XPath as start node:
If User1 uses DAMP to select media this is his tree:
- Folder1
--- Media1
--- Media2
If User2 uses the same DAMP datatype to select media this is his tree:
- Folder1
--- Media3
So you don't need different MediaTypes, but User1 still can't see the media from User2.
Jeroen
Thanks for the quick and helpful response Jeroen.
It looks like I'll just have to create custom DAMP data types for each unique client (since my issue is due to custom media types for each client)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.