Copied to clipboard

Flag this post as spam?

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


  • John Harman 2 posts 22 karma points
    Feb 09, 2020 @ 10:55
    John Harman
    0

    Image Media Picker for the current content

    The current behavior of the media picker is that the images uploaded are available to any other content within the site.

    Is there anyway that the media picker can be configured so that the images you upload while editing / creating some new content can only be viewed from that item?

    I want to avoid the user needing to manually create folders and upload into that folder, streamlining the process for them.

    if not, would it be possible to create that behavior by making my own editor? Ideally with a tidy up of old photos once the content is deleted.

  • Ryan Helmn 23 posts 153 karma points
    Feb 10, 2020 @ 14:07
    Ryan Helmn
    0

    Is there anyway that the media picker can be configured so that the images you upload while editing / creating some new content can only be viewed from that item?

    By this, do you mean, you have essentially a media folder for every page (to create if not already created) when a user uploads a new media item on that particular page?

    Out of the box this isn't achievable. However, I couldn't imagine it being too complicated to make a new media picker property editor that does the following:

    1. Once opened, check for a folder with the same id/name (depends how you want to structure the media folder)
    2. If the above exists, set the start content to that folder, if not, create it using the content service
  • John Harman 2 posts 22 karma points
    Feb 16, 2020 @ 22:09
    John Harman
    0

    Thanks for your reply Ryan.

    I've been looking into this, getting to grips with the concepts of property editors.

    I'm struggling to see how I can re-use the media picker within my own property editor, and set the startNodeId?

    The only options I can see are to copy the existing media pickers, and then modify it to use the startNodeId I would like. Is that correct?

  • 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.

Please Sign in or register to post replies