separate each user file in sppb media manager - Forum | JoomShaper
Awaiting an answer SP Page Builder

separate each user file in sppb media manager

Asked by saman 2 years ago Last activity 2 years ago

hi
i write some code and can separate each user's file in media manager. means if user 1 login and upload some picture or file via media manager, then user2 can not see that files or pics. i implement that and work fine. but to implement that, i change some core code of sppb. i need only two line change in the core to can publish these plugin for sppb. i want send you my plugin for separate each user files in sppb. can you check that? how to send for you?

3 replies

saman Asked this

friendly bump , please answer me.
i change these:
**\components\com_sppagebuilder\assets\js\engine.js
after unminify , line 9668

key: "getMediaItems", value: function (e) {

                    // this code is require to restrict sp media based on SpRestrictedFs plugin
                    if(e.type != "folders")
                    {
                        this.handleCategoryChange("folders");
                        return ;
                    }
                    // end

if it is possible i send my modified file here.
thank you and wait for your reply

Ofi Khan Staff

Hello saman

Sorry, we do not have any plan to implement this. You can customize it on your site. But remember that if you update SP Page Builder, it will be changed to the default.

Best regards

saman Asked this

but if you modify only 2 line in engine , we can release a plugin for your users as a free to separate different admin media file upload or create via AI . please dubble check if you can

Log in to reply.