-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
com_templates - Moved Filters from sidebar to Search Tools #7701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
There's a small issue with this PR: The Template filter does not take into account the Location filter. I did not know how to pass the selected client_id into the $options = TemplatesHelper::getTemplateOptions(); function |
|
Works great and looks good! This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7701. |
|
@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. |
|
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. |
|
I still see a small issue: |
|
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. |
|
back to pending 😄 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7701. |
|
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 Can someone please double check if this is a correct solution? |
|
I have tested this item ✅ successfully on 175546b This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7701. |
|
@test The following error showed up at the styles view when expend the search tools: |
|
Thanks for tesing @RemcoJanssen & @n9iels. I've to dig into the deprecated error later. Travis did not complain about that ;-) |
|
PHP 5.6.3, with |
Deprecated: Non-static method JModelList::getUserStateFromRequest() should not be called statically reported by n9iels #7701 (comment)
|
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. |
|
Thanks @n9iels! I was able to reproduce the error and corrected it in my PR. |
|
@test problem solved. Tested successful :) |
|
wow, you are fast! Thanks @n9iels |
|
works |
|
I have tested this item ✅ successfully on 08def4c This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7701. |
|
Successfully tested This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7701. |
|
Filtering still doesn't work This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7701. |
|
If you select "selected Template" you can't see the admin Tenplate This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7701. |
|
Picture to the previous coment! This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7701. |
|
I have tested this item 🔴 unsuccessfully on 08def4c This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7701. |
|
Screenshot to previous post This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7701. |
|
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. |
|
I have tested this item 🔴 unsuccessfully on 08def4c This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7701. |
…earch-tools-filters-templates
|
I've updated this PR with staging but could not solve the reported issue. I was able to reproduce the error with I have an issue with this part in /administrator/components/com_templates/models/fields/templatename.php I am not able to retrieve the $clientId that needs to be passed to the getTemplateOptions. |
|
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 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7701. |
|
I've corrected the "Location = Administrator" -> "Templates" dropdown did not show Admin templates issue with help from @roland-d. Thanks Roland! |
|
I have tested this item ✅ successfully on ecdcf0c This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7701. |
|
I have tested this item ✅ successfully on ecdcf0c Thank you @pe7er! This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7701. |




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")
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".
Before PR: Extensions > Templates > Templates
The left Sidebar has 1 filter option: Select Location ("site/administrator")
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.