User tests: Successful: Unsuccessful:
The PR allows the use of images in the finder's results.
A new setting was added named "Result Image" both in the com_finder's (aka Smart Search) configuration and it's respective "search" menu item.
Atm only the com_content finder plugin uses the images API function. Support for the rest plugins will be added in a next PR.
No styling is added, though a new setting (Image class) is introduced, according to the setting of com_content's config.
If anyone thinks that additional styling should be applied, plz commit.
DKN
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_finder Language & Strings Front End Plugins |
Title |
|
Labels |
Added:
?
?
|
I see the Intro image in the results list but in one instance followed by an error panel starting:
( ! ) Notice: Undefined variable: extraAttr in /Users/ceford/Sites/joomla-cms-4/components/com_finder/tmpl/search/default_result.php on line 96
Just to be 100% clear. The decision was not to remove all descriptions. The decision was to display descriptions on screen instead of as a popup and only to include descriptions that it was felt were essential.
@brianteeman Thanks for clarifying and explaining it more precise than I did. It's exactly like you say.
Just to be 100% clear. The decision was not to remove all descriptions. The decision was to display descriptions on screen instead of as a popup and only to include descriptions that it was felt were essential.
Thanks for clarifying @brianteeman.
Then the addition of a description in a "vague" field name abides with the taken decision. Right?
Of course the answer is subjective to how someone perceives something as vague. But this by no means can be taken as inconsistency.
Now the problem remains that if this is a new feature then it should go into 4.1.
@zero-24 What's your opinion?
That question should be directed at @bembelimen but i personally would agree to move this to 4.1
Sometimes we need to use full article image instead of intro article image. I think this pr should check for full article image also if intro images does not exist.
I have tested this item
I have tested this item
Title |
|
I've rebased this PR to 4.1-dev and adjusted the title accordingly.
As this PR has 2 good tests and the rebase was clean without any conflicts, this PR can be set to RTC.
Status | Pending | ⇒ | Ready to Commit |
Build | 4.0-dev | ⇒ | 4.1-dev |
RTC
Could you please merge that?
Could you please merge that?
Me not because I have set RTC. It's on the release lead @bembelimen to decide.
I agree with @HLeithner, it enough just
$result->image = 'fobar/blabla.jpg'
$result->imageAlt = 'bla';
this already handled by setElement()
joomla-cms/administrator/components/com_finder/src/Indexer/Result.php
Lines 200 to 214 in 1a6f5ae
and do not require set/get Image.
When rendering you just do:
if ($this->result->image)
{
//... render image
}
Thanks @sakiss for this PR. I really like it but @HLeithner and @Fedik have a point there. If you add this and probably also do a bit styling for the output (float?) it's good to go.
Labels |
Added:
?
Language Change
?
?
Removed: ? ? |
please also remove properties, it already handled by __get/__set methods,
see my previous comment
@bembelimen Unfortunately i am not aware of BS5 and the classes that J4 uses in general. I would appreciate it, if someone more knowledgable on that, have a look. Btw. The image uses the "Image Class" property/setting, which was introduced for the joomla content as well (not sure if this is still valid) and is supposed to provide the styling to the image.
Status | Ready to Commit | ⇒ | Pending |
You mean to get/set the image properties using the __get/__set functions?
Correct, please read the comment for the method:
joomla-cms/administrator/components/com_finder/src/Indexer/Result.php
Lines 200 to 214 in 1a6f5ae
Then we will have consistency. This allows us to add any extra value to the result object, without introducing extra properties and getters/setters, for each.
Labels |
Removed:
?
|
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-09-01 15:29:33 |
Closed_By | ⇒ | sakiss |
@richard67 on purpose for obvious reasons
Code style still bad, using spaces for indentation, see here https://ci.joomla.org/joomla/joomla-cms/40181/1/6 .
Another thing is that 4.0 is already in Beta phase so we have a feature freeze, and this here is a new feature.
So this PR should be made for the 4.1-dev branch.