User tests: Successful: Unsuccessful:
This PR moves the Filter fields from the left Sidebar to Search Tools in the middle column.
The left Sidebar has 2 filter options: Select Template & Select Location ("site/administrator")
The 2 filter options have been moved to Search Tools
and I have changed their order:
Select Location ("site/administrator") & Select Template
Note: the listed Templates are not yet dependent on "Location".
The left Sidebar has 1 filter option: Select Location ("site/administrator")
The filter option Select Location ("site/administrator") has been moved to Search Tools,
and a List Limit dropdown box has been added.
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Category | ⇒ | Administration UI/UX |
Easy | No | ⇒ | Yes |
Works great and looks good!
@test success, after applying the patch, the filters from the right side now appear on top under "Search tools", filters also tested and applying filters works as expected.
Status | Pending | ⇒ | Ready to Commit |
RTC based on tests. Thanks @watchfulli-dev and @hitchblade as well as @pe7er
Labels |
Added:
?
|
I still see a small issue:
When selecting a location the "Select Template" dropdown still lists both site AND admin templates
Milestone |
Added: |
Milestone |
Added: |
I am able to reproduce the issue that @infograf768 reported:
In the old situation the options under "Select Template" filter are dependent on the "Select Location" filer. When you select "Site", it only displays the site templates Beez3 + protostar.
This PR moves the filters to the top. However, the "Select Template" filter is no longer dependent on the "Select Location" filer. When you select "Site", it displays the site templates Beez3 + protostar, but also the admin template Isis + Hathor.
I'll try to find a solution for that.
Thanks @infograf768 !
Status | Ready to Commit | ⇒ | Pending |
back to pending
Labels |
Removed:
?
|
I solved it by adding a check for client_id filter. That client_id value is passed to the helper file.
/administrator/components/com_templates/models/fields/templatename.php
$clientId = JModelList::getUserStateFromRequest('.filter.client_id', 'filter_client_id', null);
$options = TemplatesHelper::getTemplateOptions($clientId);
Can someone please double check if this is a correct solution?
I have tested this item successfully on 175546b
Works like a charm!
@test The following error showed up at the styles view when expend the search tools:
Deprecated: Non-static method JModelList::getUserStateFromRequest() should not be called statically, assuming $this from incompatible context in C:\MAMP\htdocs\joomla-cms\administrator\components\com_templates\models\fields\templatename.php on line 40
Thanks for tesing @RemcoJanssen & @n9iels.
I've to dig into the deprecated error later. Travis did not complain about that ;-)
What PHP version do you use Niels?
PHP 5.6.3, with error_reporting = E_ALL
set in php.ini and the error reporting parameter in global configuration is set on: development
This PR has received new commits.
CC: @hitchblade, @RemcoJanssen, @watchfulli-dev
works
I have tested this item successfully on 08def4c
works good
Successfully tested
Filtering still doesn't work
If you select "selected Template" you can't see the admin Tenplate
as you schould.
Picture to the previous coment!
I have tested this item unsuccessfully on 08def4c
@pe7er: Test unsucessfully, there is an error in the search tool, area Select Template, I miss the admin templates.
Screenshot to previous post
Yes, like @jduerscheid said the admin templates are missing. (Joomla 3.5.6-dev)
I have tested this item unsuccessfully on 08def4c
I've updated this PR with staging but could not solve the reported issue.
I was able to reproduce the error with
Extensions > Templates > Styles > Filter on "Location = Administrator",
"Select Templates" won't show Admin templates, only Site templates.
I have an issue with this part in /administrator/components/com_templates/models/fields/templatename.php
$app = JFactory::getApplication();
$clientId = $app->getUserStateFromRequest('.filter.client_id', 'filter_client_id', null);
$options = TemplatesHelper::getTemplateOptions($clientId);
I am not able to retrieve the $clientId that needs to be passed to the getTemplateOptions.
0 = Site, 1= Admin, but $clientId is always totally empty.
I hope that someone spots the cause of the issue....
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-11-04 01:18:19 |
Closed_By | ⇒ | pe7er |
Status | Closed | ⇒ | New |
Closed_Date | 2015-11-04 01:18:19 | ⇒ | |
Closed_By | pe7er | ⇒ |
Sorry, I pressed the wrong button (Close and comment) so I had to reopen it..
This PR has received new commits.
CC: @a1d3s, @hitchblade, @jduerscheid, @n9iels, @RemcoJanssen, @watchfulli-dev, @yvesh
I have tested this item successfully on ecdcf0c
Works now. Thanks @pe7er
I have tested this item successfully on ecdcf0c
Works as described! -> RTC
Thank you @pe7er!
Labels |
Added:
?
|
Labels |
Removed:
?
|
Status | New | ⇒ | Ready to Commit |
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-11-04 20:19:45 |
Closed_By | ⇒ | roland-d |
Labels |
Removed:
?
|
There's a small issue with this PR: The Template filter does not take into account the Location filter.
If you go to Extensions > Templates > Styles, select "Select Location" (to select admin or site templates) then the "Select Template" will still show all (admin + site) templates.
I did not know how to pass the selected client_id into the $options = TemplatesHelper::getTemplateOptions(); function
https://github.com/pe7er/joomla-cms/blob/search-tools-filters-templates/administrator/components/com_templates/models/fields/templatename.php