? ? Pending

User tests: Successful: Unsuccessful:

avatar coolcat-creations
coolcat-creations
8 Sep 2018

This PR Adds an Option in the Backend Template to add a custom Login Logo and to show the Sitename or not.

Sitename + Login Logo

grafik

Only Login Logo:
grafik

None of both:
grafik

Test Instructions:

  1. Apply the patch
  2. Change your desired settings Logo / Sitename

grafik

  1. logout of the backend
  2. Login page should show your desired logo and or Sitename
  3. Try with different combinations
avatar coolcat-creations coolcat-creations - open - 8 Sep 2018
avatar coolcat-creations coolcat-creations - change - 8 Sep 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Sep 2018
Category Administration Language & Strings Templates (admin)
avatar coolcat-creations coolcat-creations - change - 8 Sep 2018
Labels Added: ? ?
avatar farrelljsec
farrelljsec - comment - 8 Sep 2018

I have tested this item successfully on 3280db0


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

avatar farrelljsec farrelljsec - test_item - 8 Sep 2018 - Tested successfully
avatar brianteeman
brianteeman - comment - 8 Sep 2018

The accessibility team have requested that this page has an H1 title - this PR removes that
also any image must have an alt description OR if it is purely decorative then it must have alt=""

avatar brianteeman
brianteeman - comment - 8 Sep 2018

I have tested this item ? unsuccessfully on d53bda4


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

avatar brianteeman brianteeman - test_item - 8 Sep 2018 - Tested unsuccessfully
avatar coolcat-creations
coolcat-creations - comment - 8 Sep 2018

Changed to adding the custom logo if exists, @brianteeman @farrelljsec please retest

avatar coolcat-creations
coolcat-creations - comment - 8 Sep 2018

Hm I copied a field from isis template, seems no code style is followed there, thats where the mistake came from. Should be fixed now.

avatar crommie
crommie - comment - 8 Sep 2018

I have tested this item successfully on ba2709d

Followed instructions. Result as expected.


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

afbeelding

:):):)

avatar brianteeman
brianteeman - comment - 8 Sep 2018

dont see any issue in isis or i would fix it

				<field 
					name="loginLogoFile" 
					type="media" 
					label="TPL_ISIS_LOGIN_LOGO_LABEL"
					description="TPL_ISIS_LOGIN_LOGO_DESC"
					class="" 
					default=""
				 />

avatar crommie crommie - test_item - 8 Sep 2018 - Tested successfully
avatar coolcat-creations
coolcat-creations - comment - 8 Sep 2018
avatar brianteeman
brianteeman - comment - 8 Sep 2018

no idea what you have on your computer but it is not the same code we have in github

avatar coolcat-creations
coolcat-creations - comment - 8 Sep 2018

Perhaps keep site title when logo is not specified?
Sitetitle is now always kept because of a11y issues @brianteeman mentioned.

avatar SharkyKZ
SharkyKZ - comment - 8 Sep 2018

@coolcat-creations oops, I meant to say remove if specified.

I think @brianteeman means that image alt could be added as another param.

avatar coolcat-creations
coolcat-creations - comment - 8 Sep 2018

@SharkyKZ as far I understood he said to keep the h1 title for a11y.

avatar brianteeman
brianteeman - comment - 8 Sep 2018

BTW the xml you copied came from a very very old version of joomla - thats why you had the problem

avatar tonypartridge
tonypartridge - comment - 9 Sep 2018

@coolcat-creations can we add a toggle for the Page heading? Default on of course.

avatar coolcat-creations
coolcat-creations - comment - 9 Sep 2018

@tonypartridge if it’s an accessibility thing I rather would not add an option to remove it. Only thing is that I do not understand why the sitename increases the accessibility- I rather see here then a title that explains where I am. Something like „Joomla Backend Login Page“ - this can be written in small letters and below / sitename or Logo or both.

avatar tonypartridge
tonypartridge - comment - 9 Sep 2018

But to me there are cases where design wins over accessibility. In terms of a company which has no employee with accessibility needs, so a customising toggle to put a logo in and hide H1 tag would be much more beneficial.

For a11y I would have thought it would need an Administrator string attached so they know they are in the backend?

On Sep 9, 2018 at 6:33 pm, <Elisa Foltyn (mailto:notifications@github.com)> wrote:

@tonypartridge (https://github.com/tonypartridge) if it’s an accessibility thing I rather would not add an option to remove it. Only thing is that I do not understand why the sitename increases the accessibility- I rather see here then a title that explains where I am. Something like „Joomla Backend Login Page“ - this can be written in small letters and below / sitename or Logo or both.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub (#22084 (comment)), or mute the thread (https://github.com/notifications/unsubscribe-auth/ABVglkDweYD_rT3tmVRKnpunj8BfuNzBks5uZVD9gaJpZM4Wf5Nw).

avatar coolcat-creations
coolcat-creations - comment - 9 Sep 2018

Yes I have the similar thought about that it makes more sense to tell people where they are instead of output of the sitename. Doesn’t make sense to me regarding a11y. I will have a thought about how to solve your request and remain a11y compliant :)

avatar coolcat-creations
coolcat-creations - comment - 11 Sep 2018

@tonypartridge I added the functionality to show the sitename or not and added the A11y h1 with the information where the User is at...

What I will have to do in another PR is to refactor the whole login page because it has a lot of useless additional classes and is not using the BS4 that is already providing those classes.

avatar coolcat-creations coolcat-creations - change - 11 Sep 2018
The description was changed
avatar coolcat-creations coolcat-creations - edited - 11 Sep 2018
avatar coolcat-creations
coolcat-creations - comment - 11 Sep 2018

Testing Instructions and PR Description is updated.

avatar brianteeman
brianteeman - comment - 11 Sep 2018

I am not in favour of this change. If a site builder wants to customise the login page they should create an override

avatar tonypartridge
tonypartridge - comment - 11 Sep 2018

I have to disagree with your @brianteeman this is a nice and easy way to provide some basic branding to the admin area for the clients.

You shouldn't need complex template overrides to give a basic style to the backend login page which this does nicely.

avatar coolcat-creations
coolcat-creations - comment - 11 Sep 2018

I agree to @tonypartridge

  1. Easy Layout adjustments should be able to be done with few clicks - I would even add a few more (Background Color and Image) - as well as changes for the backend colors. (like described in the backend concept - Please read the concept for that)
  2. There is no possibility to override a core template. If so, then I missed possibly a huge feature. You can only copy and assign the copy and then some day you will be completely out-of-date with your copy.
  3. Override of a core template would be great, for that we would need to define where the overrides will be stored. I can try to add this feature so that we have basic options in the template and advanced options per override.
avatar tonypartridge
tonypartridge - comment - 11 Sep 2018

I have tested this item successfully on 57a1839

Tested working as desired.


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

avatar tonypartridge tonypartridge - test_item - 11 Sep 2018 - Tested successfully
avatar coolcat-creations
coolcat-creations - comment - 11 Sep 2018

@SharkyKZ can you retest? If this is merged I will work on the other mentioned points in seperate PRs

avatar tonypartridge
tonypartridge - comment - 11 Sep 2018

@coolcat-creations just to add something else to your list... we could do with enhancing the note field to be 100% width, the label jumps onto another line at present. Maybe an if only label and no description fill 100% like if we set hr="true"

avatar crommie
crommie - comment - 11 Sep 2018

I have tested this item successfully on 57a1839

Installed patch. Added logo. Set Show site name to no. Logo shown, sitename not shown.
Set Show site name to yes. Logo and sitename shown.


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

avatar crommie
crommie - comment - 11 Sep 2018

I have tested this item successfully on 57a1839

Installed patch. Added logo. Set Show site name to no. Logo shown, sitename not shown.
Set Show site name to yes. Logo and sitename shown.


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

avatar crommie crommie - test_item - 11 Sep 2018 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 11 Sep 2018
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 11 Sep 2018

Ready to Commit after two successful tests.

avatar coolcat-creations
coolcat-creations - comment - 11 Sep 2018

@tony and @crommie thank you for testing and the suggestions.
I will create another PR with some general code improvements on the login view. This is independant of this PR and I will do it as soon as this is merged.

avatar mbabker
mbabker - comment - 11 Sep 2018

Override of a core template would be great, for that we would need to define where the overrides will be stored. I can try to add this feature so that we have basic options in the template and advanced options per override.

No. Just, no. The template is the primary source of truth for all things markup. If we start introducing systems where template markup can be overridden, it will make things even more complicated than they are.

You shouldn't need complex template overrides to give a basic style to the backend login page which this does nicely.

What defines "basic" options and what defines options that are best suited as a new template? By your logic, almost everything that is controlled with some form of CSS variable (default font size, font family, color schemes of every element, etc.) could be considered "basic" and next thing you know it the template style edit page for the backend template has about 300 options.

You can only copy and assign the copy and then some day you will be completely out-of-date with your copy.

If you are copying a template, you are in essence forking it. Why does it matter if the source template continues to evolve after you've copied the template? At the point you copied the template it is your's to customize however you please, which includes the maintenance work of synchronizing changes from the source template if you so desire.

avatar SharkyKZ
SharkyKZ - comment - 11 Sep 2018

@coolcat-creations code should be cleaned before merging.

avatar coolcat-creations
coolcat-creations - comment - 11 Sep 2018
Override of a core template would be great, for that we would need to define where the overrides will be stored. I can try to add this feature so that we have basic options in the template and advanced options per override.

No. Just, no. The template is the primary source of truth for all things markup. If we start introducing systems where template markup can be overridden, it will make things even more complicated than they are.

I am ok with your no. I just was trying to fulful something @brianteeman suggested as solution.

avatar coolcat-creations
coolcat-creations - comment - 11 Sep 2018

You shouldn't need complex template overrides to give a basic style to the backend login page which this does nicely.

What defines "basic" options and what defines options that are best suited as a new template? By your logic, almost everything that is controlled with some form of CSS variable (default font size, font family, color schemes of every element, etc.) could be considered "basic" and next thing you know it the template style edit page for the backend template has about 300 options.

Basic is defined by how you can adjust the backend to a customer or site integrator. This was defined and agreed by the marketing department to increase the possibilities to add the own branding into the template. Basic Options IMHO are: Logo and Colorscheme.

avatar coolcat-creations
coolcat-creations - comment - 11 Sep 2018

You can only copy and assign the copy and then some day you will be completely out-of-date with your copy.

If you are copying a template, you are in essence forking it. Why does it matter if the source template continues to evolve after you've copied the template? At the point you copied the template it is your's to customize however you please, which includes the maintenance work of synchronizing changes from the source template if you so desire.

Thats the reason why a core template should have some basic options. Why should I fork the template just because I want to change the displayed logo. Does not make any sense and is an overkill in managing that.

avatar coolcat-creations
coolcat-creations - comment - 11 Sep 2018

@coolcat-creations code should be cleaned before merging.

The code cleanup will be done in a seperate PR because the whole classes of the login page have to be rewritten. There is so much unneeded additional classes there...

The scope of the PR was to add the options as successfuly tested, and I will create a new PR so change the markup afterwards.

avatar mbabker
mbabker - comment - 11 Sep 2018

"Basic Options" is still an arbitrary measure, and that's kind of my point. It's not that the options are bad necessarily, but different viewpoints are going to suggest that different customizations should be offered through the template style edit page and not require custom CSS or whatnot. If there is an agreed upon list of changes that will be supported through the template style edit page, that's fine, I just don't want us entertaining options for too many elements personally.

avatar coolcat-creations coolcat-creations - change - 11 Sep 2018
Labels Added: ?
avatar coolcat-creations
coolcat-creations - comment - 11 Sep 2018

@mbabker

Login Page: Vendor Logo, Show/hide sitename, background color, background image
Backend: Setup colors

For more changes:
Maybe a possibility to add custom.scss

For (even) more changes:
Admin has to create a fork...

Ok?

avatar coolcat-creations
coolcat-creations - comment - 11 Sep 2018

@mbabker thank you - done - I planned to have all settings on one tab in future thats why I used the spacer, but changed it now to own tab

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 11 Sep 2018

The language strings are not correct.

@brianteeman should RTC set back on Pending?

avatar brianteeman
brianteeman - comment - 12 Sep 2018

Please set back to pending

avatar franz-wohlkoenig franz-wohlkoenig - change - 12 Sep 2018
Status Ready to Commit Pending
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 12 Sep 2018

Status back on Pending as requested.


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

avatar coolcat-creations coolcat-creations - change - 12 Sep 2018
Labels Removed: ?
avatar Quy Quy - change - 13 Sep 2018
Title
Add the possibility to have a custom login logo
[4.0] Add the possibility to have a custom login logo
avatar joomla-cms-bot joomla-cms-bot - edited - 13 Sep 2018
avatar SharkyKZ
SharkyKZ - comment - 13 Sep 2018

Last commit broke codestyle in login.php.

avatar wilsonge wilsonge - change - 17 Sep 2018
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-09-17 11:52:22
Closed_By wilsonge
avatar wilsonge wilsonge - close - 17 Sep 2018
avatar wilsonge wilsonge - merge - 17 Sep 2018
avatar wilsonge
wilsonge - comment - 17 Sep 2018

Thanks guys!

Add a Comment

Login with GitHub to post a comment