? Success

User tests: Successful: Unsuccessful:

avatar matrikular
matrikular
26 Mar 2016

Summary of Changes

A month ago I've proposed some changes to mod_menus separator and heading layouts. In addition, the changes made in this PR aim to make the other three layouts a bit more or easier maintainable, correct CodeSniffer warnings and separate code from markup where possible. No functionality was changed, added or removed.

Testing Instructions

If you want to go crazy, you can review the code and check the markup before and after the patch, which might not be the most exciting approach.

Instead, after applying the patch, just create different types of menu items (mostly of type url and / or component for this PR) and change their parameters, like assigning images, changing the target window / method and so on.

avatar matrikular matrikular - open - 26 Mar 2016
avatar matrikular matrikular - change - 26 Mar 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Mar 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 26 Mar 2016
Category Code style Modules
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 28 Mar 2016

@matrikular Can you please describe what are the Chances to expect if assigning images, changing the target window / method and so on?

avatar matrikular
matrikular - comment - 28 Mar 2016

@franz-wohlkoenig First of all; thank you for your time and interest.

Doing all that stuff you would (can) normally do with those menu types, should just work as before. Nothing to expect but the same result. Say, if you assigned an image to the menu item and it showed up before the patch, it should also show after the patch. The same goes for changing the target window parameter and so on.

What has changed is really just the implementation of the same bevahior. One exmple:
default_url.php (old) vs. default_url.php (new)
Hint: Links open in the same window.

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 29 Mar 2016 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 29 Mar 2016

I have tested this item :white_check_mark: successfully on ef3bf60

Tested "System Links":
1. Text Separator: with/without Link Image / Add Menu Title / Link CSS Style / Display in Menu
2. Menu Item Alias: same as 1. + Target Window / Link Title Attribute
3. Menu Heading: same as 1.
4. External URL: same as 2. + Link Rel Attribute

Tested Component "Weblinks"
1. Submit a Weblink: with/without Target Window / Link Title Attribute / Link CSS Style / Link Image / Add Menu Title / Display in Menu
2. List Web Links in a Category: same as 1.
3. List All Web Link Categories: same as 1.


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 29 Mar 2016

Module mod_menu set "Show Sub-menu Items" to "Yes":

Without Patch
menue without patch
With Patch (yeah)
menue with patch

(can't upload Images on Issue Tracker).

avatar mikeveeckmans mikeveeckmans - test_item - 30 Mar 2016 - Tested successfully
avatar mikeveeckmans
mikeveeckmans - comment - 30 Mar 2016

I have tested this item :white_check_mark: successfully on ef3bf60

successfully tested


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

avatar brianteeman brianteeman - change - 31 Mar 2016
Status Pending Needs Review
avatar brianteeman
brianteeman - comment - 31 Mar 2016

Not sure if this needs to be reviewed for b/c as there are some markup changes


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

avatar ufuk-avcu
ufuk-avcu - comment - 31 Mar 2016

unbenannt-1

Problem: If you use this a small width devices, then the hover menu appears outside of the view.

avatar joomla-cms-bot
joomla-cms-bot - comment - 31 Mar 2016

This PR has received new commits.

CC: @franz-wohlkoenig, @mikeveeckmans


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

avatar joomla-cms-bot
joomla-cms-bot - comment - 31 Mar 2016

This PR has received new commits.

CC: @franz-wohlkoenig, @mikeveeckmans


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

avatar Bakual
Bakual - comment - 31 Mar 2016

I did a review of the files and it looks fine. Markup shouldn't change (anymore) with the latest commits.

The code indeed is easier to read now and makes use of JHtml methods. So :+1: from me.

avatar matrikular
matrikular - comment - 31 Mar 2016

Thank you very much for your input both @ufuk-avcu and @Bakual

I would have argued that the way the templates render or style different kinds of content is a thing to discuss in itself and has little to do with the patch.

Though, for the sake of testing ("b/c"), I've reverted the changes for the default.php layout so that the dropdown behavior should be gone or, back to its old state (== removed the drowpdown CSS classes from each entry). Since protostar tries to use so much of the bootstrap behavior and also applies the expected styles like " nav-pill", I find the implementation of many things not quite right.

That said, the default.php layout, which now only differs in the the way it is written, not the output, wasn't really in the main scope of this PR.

I hope that the code changes show why:
<ul class="nav menu<?php echo $class_sfx;?>"<?php
$tag = '';
if ($params->get('tag_id') != null)
{
$tag = $params->get('tag_id') . '';
echo ' id="' . $tag . '"';
}
?>>

is harder to read and / or maintain than:
<ul class="nav menu<?php echo $class_sfx; ?>"<?php echo $id; ?>>

or why this version of default_url.php is harder to read and / or maintain than the proposed one.

It might sound silly / stupid to use buzzwords like dry, kiss and all the other acronyms in the context of such trivial thing like a layout but, ... for the sake of Joomla! 4++ - we should consider not to write code like this or this anymore.

Thank you for your time.

avatar JoshuaLewis JoshuaLewis - test_item - 31 Mar 2016 - Tested successfully
avatar JoshuaLewis
JoshuaLewis - comment - 31 Mar 2016

I have tested this item :white_check_mark: successfully on 56f8d1b


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

avatar mikeveeckmans mikeveeckmans - test_item - 2 Apr 2016 - Tested successfully
avatar mikeveeckmans
mikeveeckmans - comment - 2 Apr 2016

I have tested this item :white_check_mark: successfully on 56f8d1b

TEST OK


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

avatar brianteeman brianteeman - change - 2 Apr 2016
Status Needs Review Ready to Commit
avatar brianteeman
brianteeman - comment - 2 Apr 2016

RTC - thanks


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

avatar joomla-cms-bot joomla-cms-bot - change - 2 Apr 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 2 Apr 2016
Milestone Added:
avatar rdeutz rdeutz - change - 12 Apr 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-04-12 19:51:56
Closed_By rdeutz
avatar rdeutz rdeutz - close - 12 Apr 2016
avatar rdeutz rdeutz - merge - 12 Apr 2016
avatar joomla-cms-bot joomla-cms-bot - close - 12 Apr 2016
avatar rdeutz rdeutz - reference | fa1de44 - 12 Apr 16
avatar rdeutz rdeutz - merge - 12 Apr 2016
avatar rdeutz rdeutz - close - 12 Apr 2016
avatar joomla-cms-bot joomla-cms-bot - change - 12 Apr 2016
Labels Removed: ?
avatar rdeutz rdeutz - change - 1 May 2016
Milestone Removed:
avatar rdeutz rdeutz - change - 1 May 2016
Milestone Added:
avatar rdeutz rdeutz - change - 1 May 2016
Milestone Added:
avatar rdeutz rdeutz - change - 1 May 2016
Milestone Removed:

Add a Comment

Login with GitHub to post a comment