? ? NPM Resource Changed ? ? Pending

User tests: Successful: Unsuccessful:

avatar chmst
chmst
10 May 2021

Summary of Changes

Not all users want it have a logo in the header of their site. Cassipoeia has no option to switch off the display of a logo or description
This PR adds a param to the template where the user can switch off the logo.
It adds a new position "below-top" where users can add an own module.
Using both - position "below-top" and logo is up to the user.

The error page can be adapted if this is accepted.

Testing Instructions

Apply the patch and play with the template style cassiopeia. Use the module position brand

Actual result BEFORE applying this Pull Request

There is always an area for the logo above the navigation.

Expected result AFTER applying this Pull Request

The user can swith off the logo
grafik

Documentation Changes Required

yes

avatar chmst chmst - open - 10 May 2021
avatar chmst chmst - change - 10 May 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 May 2021
Category Language & Strings Front End Templates (site) NPM Change
avatar chmst chmst - change - 10 May 2021
The description was changed
avatar chmst chmst - edited - 10 May 2021
avatar brianteeman
brianteeman - comment - 10 May 2021

It is confusing having a module and an options with the same name that control different things.
The way it is used here in the options it is not clear what it does unless you read the code
Is it intentional that you can have two brands?

I think you need to rethink the approach here.

avatar chmst
chmst - comment - 10 May 2021

Have you a suggestion for a name of the module position? Maybe below-top?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33751.
avatar brianteeman
brianteeman - comment - 10 May 2021

Thinking out aloud.

How about instead of saying Brand Yes|No maybe Template|Module would make more sense?

avatar chmst
chmst - comment - 10 May 2021

I agree that the name brand for a moduleposition is wrong, as the position canbe used for everything. It is independent from
displaying the brand ( = Logo / Description and Tagline ).

avatar chmst chmst - change - 10 May 2021
Labels Added: ? ? NPM Resource Changed ?
avatar sandramay0905 sandramay0905 - test_item - 11 May 2021 - Tested successfully
avatar sandramay0905
sandramay0905 - comment - 11 May 2021

I have tested this item successfully on dba8af8

Similar position in github named "Header".


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

avatar chmst chmst - change - 11 May 2021
Title
[4] New moduleposition brand, option to switch off logo
[4] New moduleposition below-top, option to switch off logo
avatar chmst chmst - edited - 11 May 2021
avatar chmst
chmst - comment - 11 May 2021

I have changed the name, thanks for the hint.

The position below-top can be be used independent form the brand ( logo / description + tagliene).

grafik

avatar chmst chmst - edited - 11 May 2021
avatar chmst chmst - change - 11 May 2021
The description was changed
avatar sandramay0905 sandramay0905 - test_item - 12 May 2021 - Tested successfully
avatar sandramay0905
sandramay0905 - comment - 12 May 2021

I have tested this item successfully on 7894923

1. Setting in template style:

Screen Shot 2021-05-12 at 13 05 24

2. Frontend:

Screen Shot 2021-05-12 at 13 08 49

3. Frontend + Language switcher in position "below-top":

Screen Shot 2021-05-12 at 13 09 23


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33751.
avatar ChristineWk ChristineWk - test_item - 12 May 2021 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 12 May 2021

I have tested this item successfully on 7894923


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

avatar richard67 richard67 - alter_testresult - 12 May 2021 - sandramay0905: Tested successfully
avatar richard67 richard67 - alter_testresult - 12 May 2021 - ChristineWk: Tested successfully
avatar richard67
richard67 - comment - 12 May 2021

@chmst Please add the missing language string for the new module position to file language/en-GB/tpl_cassiopeia.sys.ini so that people see a nice module position name in the pulldown, like we have it e.g. for the "Menu" position, where we see "Menu" and not "menu".

The name of the language string has to be: TPL_CASSIOPEIA_POSITION_BELOW-TOP.

avatar chmst
chmst - comment - 12 May 2021

Language string added, Thanks @richard67

avatar richard67
richard67 - comment - 12 May 2021

Language string added, Thanks @richard67

As far as I know, the name of the language string after the last underscore has to be equal to the name in the XML converted to uppercase.

That means it should be TPL_CASSIOPEIA_POSITION_BELOW-TOP.

But you have added TPL_CASSIOPEIA_POSITION_BELOW_TOP.

Just below you can see for bottom-a and bottom-b how it shoud be.

231cc0f 12 May 2021 avatar chmst oops
avatar richard67
richard67 - comment - 12 May 2021

@sandramay0905 @ChristineWk Could you briefly test this PR again? It has received a change so that when you select the new module position for a module, you see the nice, translatable language string "Below Top" in the dropdown, instead of the raw "below-top" from the XML file. Just test this new change, the rest hasn't changed. Thanks in advance, and thanks so far for all previous testing here and elsewhere.

avatar ChristineWk
ChristineWk - comment - 12 May 2021

Should be OK:

screen shot 2021-05-12 at 20 33 34


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

avatar ChristineWk ChristineWk - test_item - 12 May 2021 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 12 May 2021

I have tested this item successfully on 231cc0f


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

avatar richard67
richard67 - comment - 12 May 2021

@ChristineWk What I meant with the changed thing to be tested was the name of the module position in backend, when you select the position:

2021-05-12_2

Before the last change, it was just "below-top", or maybe "below-top [below-top]", now it has the "Below Top" at the beginning, which is a translatable text.

avatar ChristineWk
ChristineWk - comment - 12 May 2021

Ah, OK :-)
screen shot 2021-05-12 at 20 51 20


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

avatar brianteeman brianteeman - test_item - 12 May 2021 - Tested successfully
avatar brianteeman
brianteeman - comment - 12 May 2021

I have tested this item successfully on 231cc0f


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

avatar brianteeman brianteeman - test_item - 12 May 2021 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 12 May 2021

I have tested this item 🔴 unsuccessfully on 231cc0f


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

avatar brianteeman brianteeman - test_item - 12 May 2021 - Tested successfully
avatar brianteeman
brianteeman - comment - 12 May 2021

I have tested this item successfully on 231cc0f

sorry this is a good test


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

avatar richard67 richard67 - change - 12 May 2021
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 12 May 2021

RTC


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

avatar rdeutz rdeutz - change - 14 May 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-05-14 09:49:35
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 14 May 2021
avatar rdeutz rdeutz - merge - 14 May 2021
avatar PhilETaylor
PhilETaylor - comment - 14 May 2021

I totally missed this PR.

Is this the reason - after a clean install - I no longer get a header on the frontend... I thought I was going crazy for the last 15 mins!

Screenshot 2021-05-14 at 19 44 00

avatar PhilETaylor
PhilETaylor - comment - 14 May 2021

I would say this PR is broken... because Brand = On in the admin console on a default fresh install - but I dont get a header, until I save the admin params.

avatar brianteeman
brianteeman - comment - 14 May 2021

Shouldnt the param have been set in the database on install? (it hasnt been and therefore the problem)

avatar richard67
richard67 - comment - 14 May 2021

@brianteeman @PhilETaylor I'll make a PR soon.

avatar richard67
richard67 - comment - 14 May 2021

@brianteeman @PhilETaylor PR #33881 is ready, please test. Thanks in advance.

avatar infograf768
infograf768 - comment - 15 May 2021

While I was working on #31275 I discovered that I had issues when using the lang switcher with flags as a dropdown in the new position.

switcher_top_position

I will have to add the color in the module css

div.mod-languages .btn-group .btn {
    flex: none;
    color: #000;
}
avatar richard67
richard67 - comment - 17 May 2021

@brianteeman @PhilETaylor I've meanwhile replace my PR by a new, better one, for the issue with the header section not shown after a new installation or an update before having saved template style parameters. Please test #33930 . Thanks in advance.

Add a Comment

Login with GitHub to post a comment