No Code Attached Yet
avatar coolcat-creations
coolcat-creations
28 Apr 2020

Steps to reproduce the issue

If you want to define an own path in the media field it's not possible.
It's not possible in the field itself which would increase speed of workflow for administrators and it's also not possible in the media manager to add a custom path, at least I can't find it anywhere...

grafik

Expected result

Input should be allowed

Actual result

Input is disabled
No possibility to add a path

avatar coolcat-creations coolcat-creations - open - 28 Apr 2020
avatar joomla-cms-bot joomla-cms-bot - change - 28 Apr 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 28 Apr 2020
avatar brianteeman
brianteeman - comment - 28 Apr 2020

It's not possible in the field itself which would increase speed of workflow for administrators

its also not possible in j3 (thats an observation not an explanation or excuse)

it's also not possible in the media manager to add a custom path,

You can add as many paths as you want now in joomla 4 using the FileSystem - Local plugin (again not saying its correct just explaining how)

avatar coolcat-creations
coolcat-creations - comment - 28 Apr 2020

It's not possible in the field itself which would increase speed of workflow for administrators

its also not possible in j3 (thats an observation not an explanation or excuse)

In some places it is possible in Joomla 3 (Article Intro Image for example)
grafik

it's also not possible in the media manager to add a custom path,

You can add as many paths as you want now in joomla 4 using the FileSystem - Local plugin (again not saying its correct just explaining how)

For example to define a custom path in the template style settings in the image field - where can I input the custom path? Can you lead me to it?

avatar brianteeman
brianteeman - comment - 28 Apr 2020

I do not have that option in my joomla 3 article intro image
image

avatar coolcat-creations
coolcat-creations - comment - 28 Apr 2020

Oh sorry it's an enhancement by JCE MM ... I am already so used to it...
It's really useful to be able to add the path...

But still I don't know where in the new MM Modal can you add the custom path I did not find it? The old Media Manager (not JCE) has a path input in the modal...

avatar brianteeman
brianteeman - comment - 28 Apr 2020

You can add as many paths as you want now in joomla 4 using the FileSystem - Local plugin (again not saying its correct just explaining how)

avatar ReLater
ReLater - comment - 28 Apr 2020

It's really useful to be able to add the path...

and copy/paste paths or change them quickly and so on...

avatar coolcat-creations
coolcat-creations - comment - 28 Apr 2020

You can add as many paths as you want now in joomla 4 using the FileSystem - Local plugin (again not saying its correct just explaining how)

I am not sure if we speak of the same thing... when I want to manually write something like media/foldername/imagename.jpg into the MediaManager - where could I do that?

For example here Joomla 3:

grafik

Background of my question: I often need to write there the link of a svg as it's not supported yet, also like @ReLater just stated I can quickly change the name of the path to -2.jpg or something if I want to insert a second version of the image ... etc.

avatar jwaisner jwaisner - change - 28 Apr 2020
Build staging 4.0-dev
avatar jwaisner jwaisner - change - 28 Apr 2020
Category Feature Request
avatar Razzo1987
Razzo1987 - comment - 5 May 2020

@coolcat-creations I found the same problem.
I joomla 3 I use sometimes an external image URL (CDN, autognerate image, ...)

avatar Razzo1987
Razzo1987 - comment - 16 May 2020

From API works correctly.
See: #29020 (comment)

avatar uglyeoin
uglyeoin - comment - 15 Sep 2020

I would certainly use this

avatar dgrammatiko
dgrammatiko - comment - 15 Sep 2020

@coolcat-creations you just need to remove readonly attribute from the input eg:

<input type="text" name="<?php echo $name; ?>" id="<?php echo $id; ?>" value="<?php echo htmlspecialchars($value, ENT_COMPAT, 'UTF-8'); ?>" readonly="readonly"<?php echo $attr; ?>>

BUT it's WRONG. It might enable some users to manually input any text but that text will never be validated either client side or server side. FWIW the readonly exists there as a way to validate the inputed data as there's nothing to verify something like foobar on the server side. In sort removing this, as you call it limitation I will call it a very well thought implementation, needs some magic either client side (eg is the path valid, is the file in the allowed list, etc) or server side or both.

avatar brianteeman
brianteeman - comment - 15 Sep 2020

and thats why we have the FileSystem - Local plugin

avatar dgrammatiko
dgrammatiko - comment - 15 Sep 2020

and thats why we have the FileSystem - Local plugin

No to mention that the new manager supports Dropbox, AWS S3, etc so basically covers all needs

Also creating a simple override and removing readonly is within anyone's reach ?

avatar bcwang535
bcwang535 - comment - 5 Feb 2022

Hi everyone, I just solved this need through Razzo1987's guidance, let me thank him first.

Next, let me explain why this feature is still important to people like me. Basically, my hosting plan choice is less expensive, which means I have less node storage, so I always use existing web image assets, including the intro images. Furthermore, there will be multiple Joomla site mounted under my main domain, and I also want them to use the same image resources instead of uploading the same image once for each website.

Based on the above requirements, I think that via url to add intro image is still a very important function in Joomla4, I really hope this feature will be included in the official version in the future, thanks.

avatar dgrammatiko
dgrammatiko - comment - 5 Feb 2022

Based on the above requirements, I think that viaurl to add intro image is still a very important function in Joomla4, I really hope this feature will be included in the official version in the future, thanks.

I'm against for the reasons I stated #28852 (comment) and #28852 (comment)
Also I already provided the solution for those that want TO COMPROMISE THE PERFORMANCE of their sites by entering directly the url of the images (will be missing the width and height info thus no lazy loading)

avatar coolcat-creations
coolcat-creations - comment - 5 Feb 2022

This is against all usability, I can't tell you how often I need to paste the path because of migrating between sites or articles. If there must be a special path to increase performance, ok, but then let me paste a path and transform it into the weird format?

avatar dgrammatiko
dgrammatiko - comment - 5 Feb 2022

but then let me paste a path and transform it into the weird format?

If you want to do it your way, as I said before, create an override of the media field layout and remove the readonly attribute. The core shouldn't ship broken things and thus a proper implementation requires as I said before quite more logic: validate the URL, get the image adapter, get the image dimensions. If you're willing to provide this functionality then you can have the non readonly input field in the core. BUT not without addressing the validation, adapter and dimensions. I hope this clears up why I'm against just removing the readonly attribute...

avatar coolcat-creations
coolcat-creations - comment - 5 Feb 2022

Sorry but I am not skilled enough to do something like this and feel pushed miles backwards as a user.
What does this feature cost exactly so I can maybe organise a crowdfunding?

avatar dgrammatiko
dgrammatiko - comment - 5 Feb 2022

so I can maybe organise a crowdfunding?

You know you can just create a PR removing the readonly attribute, so no crowdfunding is needed. Pretty sure it will also be accepted...

avatar alikon alikon - change - 6 Feb 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-02-06 10:49:31
Closed_By alikon
Labels Added: No Code Attached Yet
Removed: ?
avatar alikon alikon - close - 6 Feb 2022
avatar alikon
alikon - comment - 6 Feb 2022

please test #36945

avatar bcwang535
bcwang535 - comment - 7 Feb 2022

Haha, did I poke a hornet's nest?

Basically, Joomla4 is a very good CMS build tool, I like its flexibility and hierarchical permission control, which is why I choose it as the base of the website.

To talk a little about my background, I'm a UX/UI designer, and I know some interactive programming.

However, with my fairly rich design background, I still encountered many obstacles in solving the requirement of "using network images as Intro images". I will not discuss whether to restart this function here, because the views on both sides have their own basis for their arguments.

I was just from the perspective of a UX/UI user, and removing this function did make me have some doubts and needs to solve (compared to Joomla3).

Below I list my experience and solution steps so far, hoping to help general users at the same level as me, or even more outside the field.

https://bcwgo.com/resource/html/joomla4-notice/enable-intro-image-via-web-link-function-in-joomla4.html

avatar coolcat-creations
coolcat-creations - comment - 7 Feb 2022

@bcwang535 I don't know what you try to show in the screenshots but I appreciate your work to create and share :-)

So to summarize my problem:

  1. As an admin I sometime migrate between articles and website-copies or speed up my workflow by copying a path and typing the image name myself. That all happens with relative paths, no absolute paths.

Example 1: Article A has images/general/intros/main/motors.jpg (just an example path, it's not a real one) as intro image, I need the same for article B so instead of: click, click, click, click, click - I do: right click, copy path, click paste path.
It's a time saver!
Example 2: Website WP A needs to migrate some, but not all articles, left screen has the wp site open, right one the Joomla site. Almost same procedure as in Example 1, I just need to move a copy of the images to Joomla Media directory before (yes all, it's time saving)
Example 3: I have some content using intro images like images/general/intros/main/motors-1.jpg, I know next article will have images/general/intros/main/motors-2.jpg, next one images/general/intros/main/motors-3.jpg and so on. I just copy paste the path instead of clicking gazzilion times.
Actually there are more examples where I need to paste a path.

The PR to remove the readonly, solves the symptom but leaves me hanging as a user to not take advantage of Lazy Load and other features. Isn't there a way to make it possible to past a path AND have the same abilities as selecting it manually? I really don't understand what has to be done in detail to make this happen.

avatar bcwang535
bcwang535 - comment - 7 Feb 2022

@coolcat-creations My step-by-step screenshots just wanted to give someone less familiar with Joomla than me a clear guide to enabling web intro images, and all your needs can be executed, just replace it from second layer( the media selector ) to the first layer( Intro Image preview block ) of the article editing page, as for the "Lazy Load and other features" you mentioned, I have no experience and need help from other friends.

Add a Comment

Login with GitHub to post a comment