User tests: Successful: Unsuccessful:
Changes on the title and the position of any module in com_menus never actually reflected in the relative view.
First observe the problem:
Go to administrator-> Menus -> Select a menu
Select a menu item e.g. Home and go to edit screen
Go to Module Assignment (last tab) and click on any of the available modules
On the modal change either the position or the title (or both)
save and close the modal
Observe that title and position DOESN’T reflect on the changes you’ve made.
Apply this PR and repeat the same procedure. Observe the title and position.
Everything should work fine now
UPDATE : Also the access level and Display are now nicely updated, whenever a change is made.
Labels |
Added:
?
|
@losedk hmmm can you enlighten me a bit? what is this all referring to?
The third column. Shows if a module is shown on the particular page, not on the page or on all pages.
@losedk That was a good idea! I think now is complete
All good! I was just going to write if you could remove the logging, but you beat me to it :)
@losedk I am thinking that from a UX perspective also the checkbox for hiding stuff is not perfect. A button will be nicer
Yeah agree. But do we do that any place else? The show/hide is widely used and known to the users
@losedk Probably you are right here, the yes/no is a better fit and is the joomla way...
It is the joomla way for settings, not for filters! Doesn't seem to be a standard for filters!
The problem for me right now is access levels, and here is what more is needed to get it to production level:
A call to #__usergroups to get an array of id and title
Convert php array to js
some logic to assign the right title to the id from the modal.
Any help is welcome!
Wouldn't mind any of the flavours for filters.
@dgt41 I think you should change something in the "Hide Unassigned Modules" button: once you have clicked it (and unassigned modules are hidden) it continues to say "Hide Unassigned Modules", while the wording should be "Show Unassigned Modules".
Personally I don't have anything against the other solution (Yes/No radio buttons) and I'll probably prefer it...
@test success!
Now, I know I'm being a douchebag with this, but... it doesn't perfectly works with one of my favorite extensions: Peter van Westen's (NoNumber) "Advanced Module Manager". The modal opens and everything is OK (I can make any modification I want), but they are not reflected into to the "calling" page.
Beside this (that is obviously not "required") everything is OK!
Thanks!
Good idea! Will do!!
Consider it bad UI design compared to other filter implementations.
@nonumber
with this PR when you makes modification to a module (through the modal available in menu management) this modification is immediatly reflected in what is displayed in module manager: position / assigned
This doesn't happens when the default module management is Advanced Module Manager...
@nonumber Some insights: There was nothing changed in the way modules or menus store their respective data. All I did was in the menu/views/item pass the current menu id, and the list of all the view levels and in modules/views/modal add some js to compare the data and do some changes in the parent window (the menu item).
Nothing that will break B/C here
But I guess @smanzi is asking if you can do the same in AMM...
I keep changes to core com_modules in sync with AMM. So as soon as this is released, I will add the necessary changes to AMM too.
@smanzi I guess that will be 3.5. There is a PR from @phproberto and @wilsonge bringing lot of functionality to layouts that has to be merged first. Then is your PR that brings some sanity to bootstrap modals. And then I have to update/redo my PRs to accommodate these changes. Also the point here is to bring every modal to BS and as we speak this ain’t possible (without breaking B/C: the mootools modal got a css script, BS is depending on the template, change it now and see how many sites will break on the front end). With layouts this will pass very easily...
3.4 is almost beta (i guess) so I guess couple of months won’t hurt that much
no, it wont hurt. And yes, it does makes sense to treat all the modals at the same time... thanks!
Category | ⇒ | Administration UI/UX |
Status | Pending | ⇒ | Ready to Commit |
Moving to RTC as we have successful tests by @losedk, @smanzi and @waader Thanks @dgt41
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5325.
Labels |
Added:
?
|
@zero-24 @brianteeman Not yet RTC, there is a dispute on the button style and there is some code logic that is still buggy (display is not gracefully follows the changes)
Sorry about that!
Just to interfere:
It shouldn't be:
Hide Unassigned Modules: Show / Hide
But:
Display Unassigned Modules: Show / Hide
Also check the description: "Hide all unassigned modules" => (something like) "Select whether to show or hide all unassigned modules"
Also the language string keys should reflect this. So not HIDE_UNASSIGNED but DISPLAY_UNASSIGNED_MODULES
Labels |
Removed:
?
|
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Pending |
Labels |
Removed:
?
|
... or just:
Unassigned Modules: Show/Hide
Agree with @smanzi on leaving out the show. It is very inconsistently used within Joomla configuration. Suggest to standardize to a format: <subject> Show(green) Hide(red), that is without the verb in the subject and the buttons in the order mentioned.
Maybe you can leave out the change to the filter completely and introduce a proper filter in separate PR. That filter should have the search field and ordering option and page limit.
Ageed.
Also check the description: "Hide all unassigned modules" => (something like) "Select whether to show or hide all unassigned modules"
So the new stings are:
COM_MENUS_HEADING_LEVELS="View level"
COM_MENUS_HEADING_POSITION="Position"
COM_MENUS_ITEM_FIELD_HIDE_UNASSIGNED_DESC="Shows or hides all unassigned modules"
COM_MENUS_ITEM_FIELD_HIDE_UNASSIGNED_LABEL="Unassigned Modules"
COM_MENUS_ITEM_FIELD_HIDE_UNASSIGNED_DESC="Shows or hide modules unassigned to this menu item"
Too late!
Fixed last glitches?
Should be ok for now. There is a todo for this: Get the actual menus in Module Assignment for the two cases
1. Only on the pages selected
2. On all pages except those selected
This has to be done with javascript in the iframe. There is a javascript file that is already loaded in the page and all we need is a call to the relative function, but didn’t had the time to test it (too many servers broken in one day)
Anyone feeling adventurous? https://github.com/joomla/joomla-cms/blob/staging/media/jui/js/treeselectmenu.jquery.js
don't look at me!
... was thinking: if you save (no need to close) the menu item, it refreshes the status even for those edge cases. Now I'm going to say a silly thing, but... can't you "simulate" a save? Just do the refresh part of it?
(probably you will loose edits done in other tabs...)
We could do a refresh
location.reload();
BUT you are inside a form and is not a good idea, as data might exists and will be lost.
Also saving is another think to do, but then edge case: form doesn’t validate, what do you do?
Correct. Must be done "the hard way". No simple solution/shortcuts...
The best way to go here is Ajaxify this part of the page...
OH YES!!
When the com_menus is about for major redesign I will ask for that
Looks like mainly working here. Glitch when changing between display or not: columns jump.
@infograf768 You mean when switching between show/hide unassigned modules? I don't see that... can you post two snapshots (Before/After)?
@dgt41 I can't help you on this (too difficult for me) but I was thinking this: would it be easier for you just to check if the module being edited is enabled for the current menu item (i.e. checking if it is enabled for: "All pages" / Related checkbox in "Only selected" / !"No pages" / !Related checkbox in "All except")? You will miss the possibility to display the "All" and "None" status and just have a boolean for this menu item, but I think this will be more than enough in this context...
I'm a specialist at breaking things... let me try!
... able to break it for the "All except selected pages"...
Beside that it's OK!
example:
I told you I'm good at breaking things!
hold-on...
... I have the same issue as above...
skype...
No, sorry, seems to be OK!!!
One more test is needed here, anyone (@sovainfo @losedk @zero-24 @infograf768 @waader ) got some time?
Tested successfully, thank you for the improvement!
Several good tests, I'll set it to RTC.
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5325.
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Pending |
Labels |
Removed:
?
|
Chnaged to pending
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5325.
@infograf768 Sorry about that…
Now should be fine:
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-12-12 10:57:34 |
Thanks! Merged.
Milestone |
Added: |
Tested. Works! Could it be made possible to see changes made to display as well?