JCB Media Manager #352

Closed
opened 2018-10-25 06:34:28 +00:00 by peterpetrov · 6 comments
peterpetrov commented 2018-10-25 06:34:28 +00:00 (Migrated from github.com)

The idea of this feature is to get external JCB file for libs and includes into one place with easy packing. So for example in my component i need to add AWS S3 library. With the media manager i will upload the structure there and reference the folder by selecting it as a checkbox for example. Then these files will be copied to the correct location and reference will be set as component path. Could even use some sort of placeholders.

Does this make sense?

The idea of this feature is to get external JCB file for libs and includes into one place with easy packing. So for example in my component i need to add AWS S3 library. With the media manager i will upload the structure there and reference the folder by selecting it as a checkbox for example. Then these files will be copied to the correct location and reference will be set as component path. Could even use some sort of placeholders. Does this make sense?

Have you looked at the following options:

I am not sure if I fully understand your request, but I know you can already include any type of folder and field into the component even with dynamic placeholder inside the file to get external content on compilation. There is already a media including ability that is truly powerful.

Have you looked at the following options: - [Dynamic File and Folder Inclusion concept](https://www.youtube.com/watch?v=_c7wzW075lA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=0s&index=56) - [Library Manager Anticipated Functionality](https://www.youtube.com/watch?v=joT8weuPcwU&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=0s&index=69) I am not sure if I fully understand your request, but I know you can already include any type of folder and field into the component even with dynamic placeholder inside the file to get external content on compilation. There is already a media including ability that is truly powerful.
peterpetrov commented 2018-10-25 12:42:54 +00:00 (Migrated from github.com)

I actually did earlier today. Had to use custom UIKit and put it there for the library options. I guess that will work out for me. My point was some sort of drop zone with file list.

I actually did earlier today. Had to use custom UIKit and put it there for the library options. I guess that will work out for me. My point was some sort of drop zone with file list.

Hmmm... I see yes well if you are working on an offline development environment, which is the safest option, then this will not make that much sense.

But if you are working on a cloud environment... well then it makes sense, we could add some sort of option to upload files to the custom folder & zipped folders which then gets unzipped into the custom folder, from where you can then link it into any component/project. That is the purpose of the custom folder, to hold files in safe keeping to use in projects.

So I would not rebuild the relationship concept that is being managed by the Dynamic File and Folder Inclusion, I will just add an uploading ability.

What do you think?

Hmmm... I see yes well if you are working on an offline development environment, which is the safest option, then this will not make that much sense. But if you are working on a cloud environment... well then it makes sense, we could add some sort of option to upload files to the custom folder & zipped folders which then gets unzipped into the custom folder, from where you can then link it into any component/project. That is the purpose of the custom folder, to hold files in safe keeping to use in projects. So I would not rebuild the relationship concept that is being managed by the **Dynamic File and Folder Inclusion**, I will just add an uploading ability. What do you think?

O yes, and you do realize the UIKIT lib is one of the few libs that has automated adding to projects and views?

O yes, and you do realize the UIKIT lib is one of the few libs that has automated adding to projects and views?
peterpetrov commented 2018-10-25 13:22:44 +00:00 (Migrated from github.com)

Just upload/download function to the custom folder was my idea. Regarding UIKIT - i saw the min file in my component and realised how it works. So to create custom libs from the current available copy/paste is required hence the file manager request.

Just upload/download function to the custom folder was my idea. Regarding UIKIT - i saw the min file in my component and realised how it works. So to create custom libs from the current available copy/paste is required hence the file manager request.

Okay after more research and contemplation, I have come to realize that using FTP, or SSH will simple be the safest option.

Setting up a whole new media manager, that is as secure as the current default media manger of Joomla for pictures and other media files, when working with PHP files is going to be a whole mission on its own. Honestly this is to big of a risk, making JCB vulnerable to attack.

Unless we decouple it from JCB as a separate component (which you can build 👍 ), I do not really want to take on this task.

I would rather have us move the custom folder to images, which you can in-fact already do in the global options area under the folder paths tab. Then you can access it via the default media manger, and then we can add a plugin, or tweak or something to the media manger to allow the upload of PHP files. This seems like a faster solution and better use case.

Hope you will understand.

Okay after more research and contemplation, I have come to realize that using FTP, or SSH will simple be the **safest option**. Setting up a whole new media manager, that is as secure as the current default media manger of Joomla for pictures and other media files, when working with PHP files is going to be a whole mission on its own. Honestly this is to big of a risk, making JCB vulnerable to attack. Unless we decouple it from JCB as a separate component (which you can build :+1: ), I do not really want to take on this task. I would rather have us move the custom folder to images, which you can in-fact already do in the global options area under the folder paths tab. Then you can access it via the default media manger, and then we can add a plugin, or tweak or something to the media manger to allow the upload of PHP files. This seems like a faster solution and better use case. Hope you will understand.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#352
No description provided.