Copied to clipboard

Flag this post as spam?

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


  • David Zweben 266 posts 750 karma points
    Jul 15, 2016 @ 17:25
    David Zweben
    0

    Content Picker with Image Preview

    Hi,

    We have a need to store images with user editing permissions on them, so it looks as though we'll need to store them in the Content section, instead of under Media.

    The problem is that we'll need a 'picker' property editor which can display previews like the Media picker does, but I don't know of one that will display thumbnails of images on Content nodes.

    Could anyone suggest a way we could achieve something like this? Is there an existing package that does this, or one we could modify to have this functionality?

    Ideally, we'd have something just like the Media picker but for Content nodes, but anything that allows selection under a specific start node, and shows thumbnails before node selection, should work.

    Any ideas or suggestions appreciated!

    Thanks, David

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Jul 15, 2016 @ 18:10
    Hendy Racher
    0

    Hi David,

    Just a thought, but you could use nuPickers to pick content, using Custom Labels to display the image.

    HTH, Hendy

  • David Zweben 266 posts 750 karma points
    Jul 15, 2016 @ 21:10
    David Zweben
    0

    Hi Hendy,

    Thanks for the reply. I took a look, though, and that looks like it only works with pre-configured lists of options. I'm looking for something dynamic like the built-in Media Picker property editor.

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Jul 15, 2016 @ 21:26
    Hendy Racher
    0

    Hi David,

    What's the query to pick the content nodes for selection - would XPath to get all nodes under a specific ancestor do it ?

    Eg.

    Select all nodes with alias NewsItem that are underneath a node with alias News on the current site (indicated with a site node of alias HomePage):

    $ancestorOrSelf/ancestor-or-self::HomePage[position()=1]//News//NewsItem
    
  • David Zweben 266 posts 750 karma points
    Jul 15, 2016 @ 21:31
    David Zweben
    0

    Hi Hendy,

    Yes, pretty much, we're looking to offer all of the nodes under a specific ancestor for selection except for certain blank document types being used as folders. But we need to support nested folders, so it would need to be some sort of tree or folder-based picker, not just a simple dropdown. Is that possible with uComponents?

    Thanks,

    David

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Jul 15, 2016 @ 21:40
    Hendy Racher
    0

    Unfortunately there isn't a tree picker (would be good if there was)

    The closest drill-down of options would be the typeahead picker which could use the folder name ?

Please Sign in or register to post replies

Write your reply to:

Draft