By Sabih on Thursday, 09 November 2017
Replies 5
Likes 0
Views 1.4K
Votes 0
Personally I do not like the fact that users can upload images for blog posts to several folders including deleting files and creating new folders. My achievement was to have only one folder where all users can upload to and select images from. Since EasyBlog already offers a "shared folder" the easiest way was to make this folder default and hide all other folders. If you like this idea just follow my guide to achieve this.

At first we need to hide the "create folder" and "delete file" buttons by CSS. So add the following to your custom.css:


#eb .can-delete.has-selections .eb-nmm-actionbar .btn-nmm-delete {
display: none;
}
#eb .can-create-folder .eb-nmm-actionbar .btn-nmm-new-folder {
display: none;
}


Now we need to make the "shared folder" the default one when opening the media manager inside the composer. Therefor open /components/com_easyblog/themes/wireframe/composer/toolbar/default.php and on line 99 you will find this:


<button type="button" class="btn eb-comp-toolbar__nav-btn" data-eb-composer-media data-uri="post">


and change it to:


<button type="button" class="btn eb-comp-toolbar__nav-btn" data-eb-composer-media data-uri="shared">


Finally we need to hide the folder selection in the media manager. Therefor add this to your custom.css:


#eb .is-places-open .eb-nmm .eb-nmm-places {
display: none;
}
#eb .is-places-open .eb-nmm {
padding-left: 0px;
}
Thanks for sharing Sabih
·
Thursday, 09 November 2017 10:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing. That does simplify things and in principle would be good. However, you could end up with a huge amount of media in just one folder. I would like each user to have their own folder and inside the shared folder would be a useful central place for it. All the other kinds of folders just make it rather confusing and difficult to find stuff. I don't mind if people want to create sub-folder within their named folder as it makes it easier to keep track of different kind of media.
·
Tuesday, 27 February 2018 23:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Kirsten,

I have replied you on your other thread at https://stackideas.com/forums/media-locations
·
Tuesday, 27 February 2018 23:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks
·
Wednesday, 28 February 2018 00:26
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem Kirsten
·
Wednesday, 28 February 2018 00:35
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post