? Success

User tests: Successful: Unsuccessful:

avatar pe7er
pe7er
16 Aug 2015

This PR moves the Filter fields from the left Sidebar to Search Tools in the middle column.

Testing instructions

Before PR: Extensions > Templates > Styles

The left Sidebar has 2 filter options: Select Template & Select Location ("site/administrator")

template_styles_before

After PR: Extensions > Templates > Styles

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".

template_styles_after

Before PR: Extensions > Templates > Templates

The left Sidebar has 1 filter option: Select Location ("site/administrator")

template_templates_before

After PR: Extensions > Templates > Templates

The filter option Select Location ("site/administrator") has been moved to Search Tools,
and a List Limit dropdown box has been added.

template_templates_after

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar pe7er pe7er - open - 16 Aug 2015
avatar pe7er pe7er - change - 16 Aug 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Aug 2015
Labels Added: ?
avatar pe7er
pe7er - comment - 16 Aug 2015

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

avatar zero-24 zero-24 - change - 17 Aug 2015
Category Administration UI/UX
avatar zero-24 zero-24 - change - 17 Aug 2015
Easy No Yes
avatar pe7er pe7er - reference | 98232c5 - 17 Aug 15
avatar hitchblade
hitchblade - comment - 20 Aug 2015

Works great and looks good!


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

avatar hitchblade hitchblade - test_item - 20 Aug 2015 - Tested successfully
avatar watchfulli-dev
watchfulli-dev - comment - 21 Aug 2015

@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.


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

avatar watchfulli-dev watchfulli-dev - test_item - 21 Aug 2015 - Tested successfully
avatar zero-24 zero-24 - change - 23 Aug 2015
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 23 Aug 2015

RTC based on tests. Thanks @watchfulli-dev and @hitchblade as well as @pe7er


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

avatar joomla-cms-bot joomla-cms-bot - change - 23 Aug 2015
Labels Added: ?
avatar infograf768
infograf768 - comment - 24 Aug 2015

I still see a small issue:
When selecting a location the "Select Template" dropdown still lists both site AND admin templates

avatar zero-24 zero-24 - change - 25 Aug 2015
Milestone Added:
avatar zero-24 zero-24 - change - 25 Aug 2015
Milestone Added:
avatar pe7er
pe7er - comment - 26 Aug 2015

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.
template-styles-before

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.
template-styles-after

I'll try to find a solution for that.
Thanks @infograf768 !

avatar zero-24 zero-24 - change - 26 Aug 2015
Status Ready to Commit Pending
avatar zero-24
zero-24 - comment - 26 Aug 2015

back to pending :smile:


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

avatar joomla-cms-bot joomla-cms-bot - change - 26 Aug 2015
Labels Removed: ?
avatar pe7er
pe7er - comment - 26 Aug 2015

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?

avatar RemcoJanssen RemcoJanssen - test_item - 12 Oct 2015 - Tested successfully
avatar RemcoJanssen
RemcoJanssen - comment - 12 Oct 2015

I have tested this item :white_check_mark: successfully on 175546b

Works like a charm!


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

avatar n9iels
n9iels - comment - 12 Oct 2015

@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

avatar pe7er
pe7er - comment - 12 Oct 2015

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?

avatar n9iels
n9iels - comment - 12 Oct 2015

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

avatar pe7er pe7er - reference | 08def4c - 13 Oct 15
avatar joomla-cms-bot
joomla-cms-bot - comment - 13 Oct 2015

This PR has received new commits.

CC: @hitchblade, @RemcoJanssen, @watchfulli-dev


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

avatar pe7er
pe7er - comment - 13 Oct 2015

Thanks @n9iels! I was able to reproduce the error and corrected it in my PR.

avatar n9iels
n9iels - comment - 13 Oct 2015

@test problem solved. Tested successful :)

avatar pe7er
pe7er - comment - 13 Oct 2015

wow, you are fast! Thanks @n9iels

avatar zero-24 zero-24 - alter_testresult - 13 Oct 2015 - n9iels: Tested successfully
avatar a1d3s
a1d3s - comment - 24 Oct 2015

works

avatar a1d3s a1d3s - test_item - 24 Oct 2015 - Tested successfully
avatar a1d3s
a1d3s - comment - 24 Oct 2015

I have tested this item :white_check_mark: successfully on 08def4c

works good


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

avatar sriva113
sriva113 - comment - 24 Oct 2015

Successfully tested


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

avatar sriva113
sriva113 - comment - 24 Oct 2015

Filtering still doesn't work


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

avatar wombel2000
wombel2000 - comment - 24 Oct 2015

If you select "selected Template" you can't see the admin Tenplate
as you schould.


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

avatar wombel2000
wombel2000 - comment - 24 Oct 2015

Picture to the previous coment!screen shot 2015-10-24 at 05 22 40


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

avatar zero-24 zero-24 - alter_testresult - 24 Oct 2015 - a1d3s: Not tested
avatar zero-24 zero-24 - alter_testresult - 24 Oct 2015 - n9iels: Not tested
avatar jduerscheid jduerscheid - test_item - 24 Oct 2015 - Tested unsuccessfully
avatar jduerscheid
jduerscheid - comment - 24 Oct 2015

I have tested this item :red_circle: unsuccessfully on 08def4c

@pe7er: Test unsucessfully, there is an error in the search tool, area Select Template, I miss the admin templates.


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

avatar jduerscheid
jduerscheid - comment - 24 Oct 2015

Screenshot to previous post

screen shot 2015-10-24 at 07 36 38


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

avatar yvesh
yvesh - comment - 24 Oct 2015

Yes, like @jduerscheid said the admin templates are missing. (Joomla 3.5.6-dev)


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

avatar yvesh yvesh - test_item - 24 Oct 2015 - Tested unsuccessfully
avatar yvesh
yvesh - comment - 24 Oct 2015

I have tested this item :red_circle: unsuccessfully on 08def4c


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

avatar pe7er
pe7er - comment - 4 Nov 2015

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....

avatar pe7er pe7er - change - 4 Nov 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-11-04 01:18:19
Closed_By pe7er
avatar pe7er pe7er - close - 4 Nov 2015
avatar pe7er pe7er - close - 4 Nov 2015
avatar pe7er pe7er - change - 4 Nov 2015
Status Closed New
Closed_Date 2015-11-04 01:18:19
Closed_By pe7er
avatar pe7er pe7er - reopen - 4 Nov 2015
avatar pe7er pe7er - reopen - 4 Nov 2015
avatar pe7er
pe7er - comment - 4 Nov 2015

Sorry, I pressed the wrong button (Close and comment) so I had to reopen it..

avatar joomla-cms-bot
joomla-cms-bot - comment - 4 Nov 2015

This PR has received new commits.

CC: @a1d3s, @hitchblade, @jduerscheid, @n9iels, @RemcoJanssen, @watchfulli-dev, @yvesh


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

avatar pe7er
pe7er - comment - 4 Nov 2015

I've corrected the "Location = Administrator" -> "Templates" dropdown did not show Admin templates issue with help from @roland-d. Thanks Roland!

avatar zero-24 zero-24 - test_item - 4 Nov 2015 - Tested successfully
avatar zero-24
zero-24 - comment - 4 Nov 2015

I have tested this item :white_check_mark: successfully on ecdcf0c

Works now. Thanks @pe7er


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

avatar Kubik-Rubik Kubik-Rubik - test_item - 4 Nov 2015 - Tested successfully
avatar Kubik-Rubik
Kubik-Rubik - comment - 4 Nov 2015

I have tested this item :white_check_mark: successfully on ecdcf0c

Works as described! -> RTC

Thank you @pe7er!


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

avatar Kubik-Rubik Kubik-Rubik - change - 4 Nov 2015
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 4 Nov 2015
Labels Removed: ?
avatar Kubik-Rubik Kubik-Rubik - change - 4 Nov 2015
Status New Ready to Commit
avatar Kubik-Rubik Kubik-Rubik - change - 4 Nov 2015
Labels Added: ?
avatar roland-d roland-d - change - 4 Nov 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-11-04 20:19:45
Closed_By roland-d
avatar roland-d roland-d - close - 4 Nov 2015
avatar joomla-cms-bot joomla-cms-bot - close - 4 Nov 2015
avatar roland-d roland-d - close - 4 Nov 2015
avatar joomla-cms-bot joomla-cms-bot - change - 4 Nov 2015
Labels Removed: ?
avatar pe7er pe7er - head_ref_deleted - 5 Nov 2015

Add a Comment

Login with GitHub to post a comment