Skip to content

[4.0] Full Image class hint#36267

Merged
Quy merged 1 commit intojoomla:4.0-devfrom
brianteeman:full_image_hint
Dec 28, 2021
Merged

[4.0] Full Image class hint#36267
Quy merged 1 commit intojoomla:4.0-devfrom
brianteeman:full_image_hint

Conversation

@brianteeman
Copy link
Copy Markdown
Contributor

Based on feedback and user requests this simple pr adds a hint for the type of class you can add in the image class for the full article image

cc @softforge

image

Based on feedback and user requests this simple pr adds a hint for the type of class you can add in the image class for the full article image

cc @softforge
@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators PR-4.0-dev labels Dec 8, 2021
@softforge
Copy link
Copy Markdown
Contributor

softforge commented Dec 8, 2021

Even those that know how to use classes can have a senior moment so such class hints are really helpful. Its a half way hose to the hard coded way we had in J3 that had left and right switch and the universal way to allow any styling to be added

@brianteeman
Copy link
Copy Markdown
Contributor Author

please test and report results

@dgrammatiko
Copy link
Copy Markdown
Contributor

@brianteeman could you add is also here

<div class="input-group">
<label class="input-group-text" for="${this.parentId}-classes">${this.classestext}</label>
<input class="form-control" type="text" id="${this.parentId}-classes" data-is="img-classes"/>
</div>

Something like

    <div class="input-group">
      <label class="input-group-text" for="${this.parentId}-classes">${this.classestext}</label>
      <input class="form-control" type="text" id="${this.parentId}-classes" data-is="img-classes"/>
      <small for="${this.parentId}-classes">${Joomla.Text._('JLIB_FORM_MEDIA_IMAGE_CLASS_DESC')}</small>
    </div>

and adding the text here

Text::script('JLIB_FORM_MEDIA_PREVIEW_EMPTY', true);
like

Text::script('JLIB_FORM_MEDIA_IMAGE_CLASS_DESC', true);

BTW the text needs to be in the joomla.ini

@brianteeman
Copy link
Copy Markdown
Contributor Author

@dgrammatiko I will do that in a separate pr

@ChristineWk
Copy link
Copy Markdown

I have tested this item ✅ successfully on 1b57e8b


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

1 similar comment
@chmst
Copy link
Copy Markdown
Contributor

chmst commented Dec 10, 2021

I have tested this item ✅ successfully on 1b57e8b


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

@chmst chmst removed Language Change This is for Translators PR-4.0-dev labels Dec 10, 2021
@chmst
Copy link
Copy Markdown
Contributor

chmst commented Dec 10, 2021

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Dec 10, 2021
@khu5h1
Copy link
Copy Markdown
Contributor

khu5h1 commented Dec 14, 2021

I have tested this item ✅ successfully on 1b57e8b


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

@Quy Quy added this to the Joomla 4.0.6 milestone Dec 28, 2021
@Quy Quy merged commit 06c3250 into joomla:4.0-dev Dec 28, 2021
@joomla-cms-bot joomla-cms-bot added the Language Change This is for Translators label Dec 28, 2021
@Quy
Copy link
Copy Markdown
Contributor

Quy commented Dec 28, 2021

Thanks

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

Labels

Language Change This is for Translators

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants