-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Smart Search - move Filters - v2 to correct merge conflict #8140
Conversation
I have tested this item ✅ successfully on 9a763fb This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8140. |
<?php echo $this->pagination->getLimitBox(); ?> | ||
</div> | ||
</div> | ||
<?php echo JLayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?> | ||
<div class="clearfix"> </div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pe7er I think the clearfix should be removed here. You did that in the old PR. Can you check please?
@roland-d I think that JHtmlSidebar::setAction can be removed. |
…earch-tools-filters-smartsearch2
This PR has received new commits. CC: @jduerscheid This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8140. |
Thanks @n9iels, I corrected the Branch filter on "Content maps". btw: I did not change the padding of the warning message... |
Yes, that works for me! 😄 I see now the same problem appears for "indexed content", the search filter "Select type of content" is always active over there. Also the search filter on "Content mapping" are always visible on that page. Or is that done by a certain reason? |
About that padding and the message. Strange enough the message appears below the search filters. Other messages like "save" and "delete" appear above the messages. Seems like all other message than "successfully saved", "successfully deleted" etc. appear below the filters. Not a problem for this PR I think so. |
Thanks for testing! No, I did not set the filter to "always active" on purpose. I'll check if I can correct it. If someone knows the cause of the problem, please correct it with a PR, |
@pe7er The "always active" happens because you have set a default value of 0 here: https://github.com/joomla/joomla-cms/pull/8140/files#diff-762a4c09ff9b1a26880f1391232575c2R23 The first option you give to the dropdown has a value of 0: that is why the first entry becomes an active one. I guess you can drop the default value setting. |
…earch-tools-filters-smartsearch2
This PR has received new commits. CC: @jduerscheid This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8140. |
This PR has received new commits. CC: @jduerscheid This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8140. |
@pe7er Travis cry
|
This PR has received new commits. CC: @jduerscheid This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8140. |
I removed my previous PR "fixed Select Branch dropdown in Smart Search Content Maps" |
@dgt41 Compare it to the implementation in J3.4.5, it is quite different. The current implementation uses it's own JHtml class, that is completely skipped now. |
ahh yeah, the finder way 😝 |
…earch-tools-filters-smartsearch2
This PR has received new commits. CC: @dgt41, @jduerscheid, @Kubik-Rubik This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8140. |
I've removed the hardcoded SQL |
@@ -263,7 +264,7 @@ protected function populateState($ordering = null, $direction = null) | |||
$state = $this->getUserStateFromRequest($this->context . '.filter.state', 'filter_state', '', 'string'); | |||
$this->setState('filter.state', $state); | |||
|
|||
$branch = $this->getUserStateFromRequest($this->context . '.filter.branch', 'filter_branch', '1', 'string'); | |||
$branch = $this->getUserStateFromRequest($this->context . '.filter.branch', 'filter_branch', '', 'string'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we have to put back the default value here?
@pe7er I am afraid that administrator/components/com_finder/models/fields/branches.php doesn;t cover all the functionality of the old JHtml class https://github.com/joomla/joomla-cms/blob/staging/components/com_finder/helpers/html/filter.php#L208-L394 |
public function getOptions() | ||
{ | ||
// Build the query. | ||
$db = JFactory::getDbo(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pe7er Just change this complete function to contain:
return JHtml::_('finder.mapslist');
This PR has received new commits. CC: @dgt41, @jduerscheid, @Kubik-Rubik This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8140. |
Removed the SQL query from fields/branches.php & replaced with return JHtml::_('finder.mapslist'); |
@pe7er can you also implement this #8140 (comment) File administrator/components/com_finder/views/index/tmpl/default.php |
@dgt41 yes, please! |
Thanks for testing @dgt41 & @designbengel ! |
@designbengel I think this is an existing issue, this PR only moves the buttons from the sidebur to the Search Tools bar. Perhaps raise a separate issue for that? |
I have tested this item ✅ successfully on b14cbd4 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8140. |
Correcting smartsearch filter #8140
New PR to solve Merge Conflict of PR #6959 "Smart Search - move Filters (3x) from left to [Search Tools] "
Please follow the testing procedure of PR #6959
This PR moves the Filter option of all three views of Smart Search to the [Search Tools] button.
(See Issue #6941 regarding the inconsistency with Filter options).
Test instructions
You have to enable the Content - Smart Search Plugin, and Index your test website
Please check the 3 different views before & after the patch:
test all the filters and search box, clear results, choose max amount of results on a page.
Smart Search: Manage Indexed Content
Check the current position of the Filters
In back-end > Components > Smart Search > Indexed Content
The Filters are on the left hand side
This PR changes moves the Filter
from the left to the middle column and will be visible when you click on the [Search Tools] button.
Smart Search: Manage Content Maps
Check the current position of the Filters
In back-end > Components > Smart Search > Content Maps
The Filters are on the left hand side
This PR changes moves the Filter
from the left to the middle column and will be visible when you click on the [Search Tools] button.
Smart Search: Manage Search Filters
Check the current position of the Filters
In back-end > Components > Smart Search > Search Filters
The Filters are on the left hand side
This PR changes moves the Filter
from the left to the middle column and will be visible when you click on the [Search Tools] button.
Note
To Clear the Filters / Search box, you can use the [Clear] button.
However, sometimes you have to press 2 times to clear the results.
I don't know the cause and how to solve it...