User tests: Successful: Unsuccessful:
Adds a user defined sorting/ordering capability to the front-end of the Smart Search results.
It does that by adding a sorting drop-down above the results.
npm install
for the css to be generated in media.If your "Sort Direction" is set to "Descending", you will NOT see the "Relevance ascending" option.
Seems like there is no reason to sort the results by "Relevance ascending".
No front-end sorting.
Front-end sorting
DKN
Status | New | ⇒ | Pending |
Category | ⇒ | Administration Language & Strings Repository NPM Change Front End com_finder |
Labels |
Added:
Language Change
NPM Resource Changed
?
|
I have tested this item
As well as the unanswered comment this PR can be marked as unsuccessful as you can not sort by relevance descending
I can imagine some use cases in which controlling the sort order in the frontend can be really helpful. Maybe it's a good idea to add a background hover to the dropdown.
@sakiss better keep your branch up to date ;)
The drop-down follows the styling and markup of the language module (possibly elsewhere too).
I have tested this item
@sakiss Is it correct that "Relevance" only has "descending"? All the other options have both.
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
|
This is not correct and should not be rtc #35993 (comment)
@brianteeman what exactly is not correct? Plz be clear.
Makes no sense that you can sort by relevance ascending with these options
But not with these options
Labels |
Removed:
?
|
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Pending |
Revert RTC as it needs some rework
Labels |
Added:
?
Removed: ? |
Changes applied
No label on the field to tell you what it is - instead of floating randomly on the page
Added
Still dont see it
I still think its wrong that you can have a field shown in the dropdown that is not in the list of fields you mark as shown fields
Lets say that we are not including the default field in the 'shown fields' and then perform a search. You will notice the following:
In short using a field without displaying it as an option seems a bit dissonant from the user point of view.
Still dont see it
check bf29cb2
Weirdly when I check out your branch it doesnt show that commit. Anyway I can see it here and it looks ok now - thanks
In short using a field without displaying it as an option seems a bit dissonant from the user point of view.
Perhaps but at the same time it is called "Shown Fields" and you are showing a field that is not there.
User has three fields as shown. They remove one and they still see three in the frontend.
Makes logical sense to a developer but not to a user
Perhaps but at the same time it is called "Shown Fields" and you are showing a field that is not there.
User has three fields as shown. They remove one and they still see three in the frontend.
Makes logical sense to a developer but not to a user
I agree, that it can be confusing for the admin.
My point is not related with the developer but the end user.
The front-end users will get something that seems buggy and partially functional.
Put yourself in the position of using a search engine that shows a wrong "sort by" field in the 1st place. How would you rate that UX?
@bembelimen could possibly decide on that.
Two options
I suppose you mean "sort field". This needs work way beyond that PR.
2 can be confusing too. Someone anticipates another "Shown field".
What about adding a description to the field that informs that the default is always there?
What about renaming the field to "Sort Fields".
Given that it shows only after the "Show Sort Fields" is enabled, becomes quite evident what is it about.
Also the default field is named "Sort Field", hence aggregating them seems valid.
I would appreciate your prompt feedback to catch up the feature freeze.
No. Thats the whole point of my comment. You have fields in the dropdown that are not in the selected field
Fine. I will go on by changing the label to "Additional Sort Fields".
Can we go on with that?
Fine. I will go on by changing the label to "Additional Sort Fields".
Can we go on with that?
I wouldnt have suggested it otherwise ;)
I have tested this item
@ricardo1709 and @RickR2H Could you please test again?
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
Removed: ? |
I have tested this item
@bembelimen do you consider merging that? Thanks
It's on the list, we just have to finish the current releases coming the next days.
So I checked this PR, the following things did I discover:
Dropdown items do not use the "dropdown-item" class. (Then you don't need all this styling)
I can do that but there will be small styling differences between that and other bs drop-downs e.g. the languages module.
The sort (in my opinion) still is "flying around" without any structure and in my opinion it should be above the filter:
IMO should be as close to the results as possible. The usual workflow is to be used after a search is performed.
Btw. This is the place where almost all major sites are using it.
I wonder if "list_price" is ever used (I guess it's a placeholder for e.g. shops?). But when ordering by it, probably it should be displayed at the item?
Yes i think they are placeholders for other types of content.
But sorting should not get confused with what is getting displayed in the results.
Also the results can be of different contexts and display different fields.
Sorry to be persistent but is there an interest on that?
@bembelimen plz let me know your thoughts on that
I gave you my thoughts:
@bembelimen Could you please update the status on this PR? Is RTC still valid?
Hi there.
In 2 days I make a presentation about customizing the Smart Search (Joomla NEXT session organized by Techjoomla).
I saw that the other PR (adding the possibility to add the Intro Image in the Smart Search Results Page) is indeed available in J4.1-rc4.
But I did not see the effect of the current PR :)
Will it not be merged for 4.1?
I had the impression it was ready.
Txs
Unfortunately It's not merged so it has to wait until 4.2 I guess...
Speaking about Sorting, it could also be an opportunity to investigate further this "sort by List Price" which has been there since 2.5 but does not do anything apparently. See https://issues.joomla.org/tracker/joomla-cms/37112
Hey @roland-d thanks for looking at that.
In most cases, the sorting field is placed below the search/filters and above the results.
You can see that in all major e-commerce sites (amazon, ebay) and in blogs.
If i am not mistaken, the same applies in your screenshot.
I used the existing sorting fields. The PR just intends to provide sorting functionality to the front-end using the fields that Joomla already uses. I find adding extra fields, beyond the scope of the PR but if you find it crucial i can add them.
Labels |
Added:
?
Removed: ? |
Hey @sakiss
sale_price
added as well as it is a small change but will be consistent with the fields that exist.thanks @roland-d
sales_price
does not exist and never existed in any Joomla setting. It only resides in the database.My 2cents: sale_price
is not used anywhere.
It is only visible in the backend so, somehow, it was not causing any harm bc nobody would see it.
But if we start showing this in the front-end, then please tell also how to hide it after!
This field seems to be there "in case some 3rd party extension would decide to use it".
I definitely don't want (nobody wants) to see "sale_price" if it does not exist: the visitors would get completely lost :D
Status | Ready to Commit | ⇒ | Pending |
Labels |
Added:
?
Removed: ? |
Labels |
Removed:
?
|
Title |
|
This pull requests has been automatically converted to the PSR-12 coding standard.
Labels |
Added:
?
|
Hi,
This week-end I was at JoomlaDay D-A-CH and made my presentation about "customizing the Smart Search Results Page".
Actually I was convinced that the current PR had been merged with J4.2...
But when I came to the topic here https://slides.woluweb.be/smartsearch/smartsearch.html#5-2-in-the-front-end I realized that it had not yet been merged :D
I don't think that there is any more reason to wait.
Could we please merge this PR so that we finally get it in J4.3?
Txs for your feedback/approval @roland-d @Hackwar @obuisard :)
And txs again @sakiss -who was also present at #jd22dach- for writing this PR! (and for the other ones related to Smart Search like adding the Image etc).
@sakiss did you added the changes and is the PR ready? @roland-d Do we have to reset the tests?
@roland-d can you set the unresolved conversation to resolved? Tests are reset, @ricardo1709 @woluweb please test again.
Thank you all for the follow ups, I added the 4.3 label.
Labels |
Added:
PR-4.3-dev
Removed: ? |
I have tested this item
Excellent!
Works fine (see the demo here https://subform.joomlacustomfields.org/search?q=lorem)
It is very nice that you can select the Fields that you want (or not) in the dropdown, namely
I have tested this item
Filters work as expected!
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
|
Title |
|
Thank you for this PR, could you please document the new options (I believe this page is appropriate: https://docs.joomla.org/Help310:Menus_Menu_Item_Finder_Search)
@obuisard Plz let me know if this can be merged or otherwise what else should be done.
Hi Sakis @sakiss, I have requested some help to better assist you with user documentation. I am waiting on a reply. I will let you know what can be done with documentation once I have proper information. Thank you for your patience and have great holidays
This is the correct page to update
https://docs.joomla.org/Help4.x:Menus_Menu_Item_Search_Results
I have involved the documentation team for the PRs that require user documentation, as it needs approval for editing the wiki, which is a road block for now.
Why is the sort order not being appended to the search bar as in all backend search bars?
That page is for the old Search component. It is not present in J4. There is no Help page for frontend results.
That page is for the old Search component. It is not present in J4. There is no Help page for frontend results.
The only corresponding page I could find is https://docs.joomla.org/Help4.x:Menus_Menu_Item_Finder_Search
The explanation for frontend results needs to be put on that page, like it was done for https://docs.joomla.org/Help310:Menus_Menu_Item_Search_Results
That page is for the old Search component. It is not present in J4. There is no Help page for frontend results.
The only corresponding page I could find is https://docs.joomla.org/Help4.x:Menus_Menu_Item_Finder_Search
The explanation for frontend results needs to be put on that page, like it was done for https://docs.joomla.org/Help310:Menus_Menu_Item_Search_Results
Actually, the corresponding page is https://docs.joomla.org/Help310:Menus_Menu_Item_Finder_Search and that does not mention a frontend view. Such a view would be useful. But, I think this requirement to have documentation in place before merging a pull request is unworkable. I have an idea for how to do something about it but it is not ready yet.
Changes already document at https://docs.joomla.org/Help4.x:Menus_Menu_Item_Search_Results
Changes already document at https://docs.joomla.org/Help4.x:Menus_Menu_Item_Search_Results
That file is not used in Joomla 4 (I should have made that clearer previously). This is the file used for the Smart Search menu item:
Changes already document at https://docs.joomla.org/Help4.x:Menus_Menu_Item_Search_Results
That file is not used in Joomla 4 (I should have made that clearer previously). This is the file used for the Smart Search menu item:
https://docs.joomla.org/Help4.x:Menus_Menu_Item_Finder_Search and https://docs.joomla.org/Help4.x:Menu_Item:_Search is the same page BUT it could show the frontend view info, like it has been done for https://docs.joomla.org/Help310:Menus_Menu_Item_Search_Results
Okay, now we got the right doc (Chunk) to override: https://docs.joomla.org/Chunk4x:Help_screen_column_header_Sort_Field
Documentation added
Labels |
Added:
Documentation Required
Removed: ? |
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-01-11 23:02:17 |
Closed_By | ⇒ | obuisard |
@sakiss, could you take a couple of minutes of your time and explain what is the fundamental difference between Sales price and List price? I am engaged in translation and have not even figured out yet how best to translate it so that it is understandable to users. Thank you.
In the context of the search )) Of course, the translation without the search is understandable.
@sakiss, could you take a couple of minutes of your time and explain what is the fundamental difference between Sales price and List price? I am engaged in translation and have not even figured out yet how best to translate it so that it is understandable to users. Thank you.
In the context of the search )) Of course, the translation without the search is understandable.
This is a Joomla string which has been there "forever".
See here the information I could gather about that: https://slides.woluweb.be/smartsearch/smartsearch.html#par_51
Settings are still there due to backwards compatibility. They can be removed in J5.
@Kostelano keep in mind that the Smart Search is designed to work with different types of content (not just articles)
I can imagine some use cases in which controlling the sort order in the frontend can be really helpful. Maybe it's a good idea to add a background hover to the dropdown.
@sakiss better keep your branch up to date ;)