Skip to content

[4.2] com_media (Mediamanager) configuration view. Text fields to textarea.#38281

Merged
roland-d merged 8 commits intojoomla:4.2-devfrom
GHSVS-de:mm-textarea
Aug 1, 2022
Merged

[4.2] com_media (Mediamanager) configuration view. Text fields to textarea.#38281
roland-d merged 8 commits intojoomla:4.2-devfrom
GHSVS-de:mm-textarea

Conversation

@GHSVS-de
Copy link
Copy Markdown
Contributor

@GHSVS-de GHSVS-de commented Jul 15, 2022

Summary of Changes

Changed field types text to textarea:

  • restrict_uploads_extensions
  • image_extensions
  • audio_extensions
  • video_extensions
  • doc_extensions
  • ignore_extensions
  • upload_mime
  • upload_mime_illegal

Checked that array_map('trim', explode()) is used consistently at all relevant code points and adapted the code if not. To clarify that step: Joomla core uses array_map('trim', explode()) nearly at all code points when reading these parameters. I took it over where not.

I haven't included field upload_mime_illegal because I couldn't find any usage in core (#38280).

Testing Instructions

  • Go to mediamanager component > Options.
  • Change configuration options.
  • Test uploads if settings are respected.
  • & code review.

BEFORE applying this Pull Request

See that some fields are really hard to configure if you use higher window zoom and/or smaller devices:

image

image

Expected result AFTER applying this Pull Request

Nothing changed but the UI view.

image

image

  • Easier to read and configure.
  • Even spaces and/or newlines are possible because of consistent usage of array_map('trim', explode()) in core now.

Change some configuration settings and test if uploads still work like configured even if you add spaces or newlines after commas in textarea. Commas as separators are still mandatory as before!

@GHSVS-de GHSVS-de changed the title [4.2] com_media configuration view. Text fields to textarea. [4.2] com_media (Mediamanager) configuration view. Text fields to textarea. Jul 15, 2022
@ChristineWk
Copy link
Copy Markdown

I have tested this item ✅ successfully on 5373646


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38281.

@viocassel
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 5d534b9


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38281.

@richard67
Copy link
Copy Markdown
Member

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38281.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jul 17, 2022
@roland-d roland-d merged commit 1cd3cc7 into joomla:4.2-dev Aug 1, 2022
@roland-d
Copy link
Copy Markdown
Contributor

roland-d commented Aug 1, 2022

Thank you

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Aug 1, 2022
@roland-d roland-d added this to the Joomla! 4.2.0 milestone Aug 1, 2022
@GHSVS-de GHSVS-de deleted the mm-textarea branch August 1, 2022 10:38
brianteeman pushed a commit to brianteeman/joomla-cms that referenced this pull request Aug 2, 2022
…tarea. (joomla#38281)

* restrict_uploads_extensions

* image_extensions

* audio_extensions

* video_extensions and doc_extensions

* ignore_extensions

* upload_mime
rdeutz pushed a commit to joomla-projects/joomla-cms that referenced this pull request Aug 8, 2022
…tarea. (joomla#38281)

* restrict_uploads_extensions

* image_extensions

* audio_extensions

* video_extensions and doc_extensions

* ignore_extensions

* upload_mime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants