? NPM Resource Changed ? Pending

User tests: Successful: Unsuccessful:

avatar dgrammatiko
dgrammatiko
30 Jun 2021

Pull Request is a follow up for #34634 .

Summary of Changes

  • Expose the types attribute for the media fields
  • Adjusts the preview

Testing Instructions

Will post them once the other PR is merged.

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

Screenshot 2021-06-30 at 03 19 08

Screenshot 2021-06-30 at 03 19 37

Screenshot 2021-06-30 at 03 19 22

Documentation Changes Required

3600cfe 26 Jun 2021 avatar dgrammatiko meh
cf8e4bb 27 Jun 2021 avatar dgrammatiko oops
d7397f2 27 Jun 2021 avatar dgrammatiko meh
4fb968b 27 Jun 2021 avatar dgrammatiko meh
bf991eb 27 Jun 2021 avatar dgrammatiko meh
4dade0e 27 Jun 2021 avatar dgrammatiko erm
8e7766f 27 Jun 2021 avatar dgrammatiko nope
avatar dgrammatiko dgrammatiko - open - 30 Jun 2021
avatar dgrammatiko dgrammatiko - change - 30 Jun 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 Jun 2021
Category Administration com_content com_media JavaScript NPM Change Language & Strings Repository SQL Installation Postgresql Layout Libraries
avatar brianteeman
brianteeman - comment - 30 Jun 2021

I dont see the need for this PR. Those are image fields. Or am I missing something?


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

avatar dgrammatiko
dgrammatiko - comment - 30 Jun 2021

@brianteeman my intention is not to change existing image fields to support more media types. The change in the article form is an artifact as I was working/testing this

avatar brianteeman
brianteeman - comment - 30 Jun 2021

sorry I dont understand

avatar dgrammatiko
dgrammatiko - comment - 30 Jun 2021

sorry I dont understand

So, this PR introduces a new attribute for the Media Field (xml types="images,audios,videos,documents").

  • Without setting this field the media field is totally compatible (eg only images)
  • Setting the value in a field's xml a dev can control what types of media the field could handle

The change in the article.xml file is purely for testing/valiation purposes, won't be part of the PR

avatar Quy
Quy - comment - 30 Jun 2021

Will this fix #19954 for media custom field?

avatar dgrammatiko dgrammatiko - change - 30 Jun 2021
Labels Added: ? NPM Resource Changed ?
avatar dgrammatiko
dgrammatiko - comment - 30 Jun 2021

Will this fix #19954 for media custom field?

Yes, that's the idea

avatar dgrammatiko
dgrammatiko - comment - 30 Jun 2021

Closing this as I merged the changes to the other PR

avatar dgrammatiko dgrammatiko - change - 30 Jun 2021
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2021-06-30 13:42:37
Closed_By dgrammatiko
avatar dgrammatiko dgrammatiko - close - 30 Jun 2021

Add a Comment

Login with GitHub to post a comment