BuddyDev

Search

Move media between albums

  • Participant
    Level: Master
    Posts: 279
    Richard Foley on #12941

    It’s possible I’m missing something here, but how does a front-end user move media from one gallery to another…?

  • Keymaster
    (BuddyDev Team)
    Posts: 21814
    Brajesh Singh on #12947

    Hi Richard,
    The UI is not available for moving a media from one gallery to another.

    We do have the support in code though.

    
     mpp_move_media( $media_id, $gallery_id );
    

    That will move a media to the given gallery(including the updating of component, moving file physically and all).

    I do suggest clearing media cache after moving

    		
    // clear media cache(details have changed).
    mpp_clean_media_cache( $media_id );
    
    

    We don’t have plans to provide any UI in core for moving the media as it seems too complex for core(and offers little functionality).

    I hope that either our team or someone form the community provides it as an addon using the underlying function.

    Best regards
    Brajesh

  • Participant
    Level: Master
    Posts: 279
    Richard Foley on #12958

    ok, Brajesh, I’ll look into doing that.

    Cheers

  • Keymaster
    (BuddyDev Team)
    Posts: 21814
    Brajesh Singh on #13122

    Hi Richard,
    Sorry for missing this. If you ever did it, please do let me know 🙂

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 279
    Richard Foley on #13141

    hi Brajesh,

    no worries, I’m keen to do this, after my pile of TUITs has reduced… As soon as I have something, I’ll let you know. I may even have questions 😀

    Cheers

    R.

You must be logged in to reply to this topic.

This topic is: not resolved