Copied to clipboard

Flag this post as spam?

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


  • Zac 239 posts 541 karma points
    Nov 17, 2012 @ 02:53
    Zac
    0

    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.

     

     

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Nov 17, 2012 @ 14:18
    Jeroen Breuer
    0

    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:

    /descendant::Folder[@nodeName='Folder1']

    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

  • Zac 239 posts 541 karma points
    Nov 19, 2012 @ 18:24
    Zac
    0

    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)

     

Please Sign in or register to post replies

Write your reply to:

Draft