? Pending

User tests: Successful: Unsuccessful:

avatar diddipoeler
diddipoeler
4 Oct 2017

display images in search results

Pull Request for Issue # .

Summary of Changes

Testing Instructions

Expected result

Actual result

Documentation Changes Required

avatar joomla-cms-bot joomla-cms-bot - change - 4 Oct 2017
Category Front End com_search
avatar diddipoeler diddipoeler - open - 4 Oct 2017
avatar diddipoeler diddipoeler - change - 4 Oct 2017
Status New Pending
avatar Quy
Quy - comment - 4 Oct 2017

Please follow Joomla Coding Standards.

avatar C-Lodder
C-Lodder - comment - 4 Oct 2017

Please also refrain from using inline CSS. We have LESS files

avatar diddipoeler diddipoeler - change - 5 Oct 2017
Labels Added: ?
avatar diddipoeler
diddipoeler - comment - 5 Oct 2017

is the code better now ?

avatar C-Lodder
C-Lodder - comment - 5 Oct 2017

@diddipoeler - unfortunately not:

  • You're not using indentation
  • You're still using inline styling
  • You're using uppercase for <?PHP. It should be lowercase
avatar diddipoeler
diddipoeler - comment - 6 Oct 2017

@C-Lodder
write an example please.

avatar C-Lodder
C-Lodder - comment - 6 Oct 2017

@diddipoeler - examples are cleared stated on the Joomla Coding Standards page

avatar infograf768
infograf768 - comment - 7 Oct 2017

Keeping inline style for the moment, this should be

	<?php // display images in search results ?>
	<?php if (isset($result->image)) : ?>
		<?php $image = json_decode($result->image); ?>
		<?php $result->picture = $image->image_intro; ?>
	<?php endif; ?>
	<?php if (isset($result->picture) && $result->picture != '') : ?>
		<div style="float: left;margin: 0px 0px;"><img src="<?php $this->escape($result->picture); ?>" width="50" alt="" /></div>
	<?php endif; ?>

But, first, could you give an example of how this works please.?
Give detailed test instructions and screenshots.

avatar infograf768
infograf768 - comment - 13 Oct 2017

@diddipoeler If no reply to our questions, we will close this.


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 13 Oct 2017
Status Pending Information Required
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 22 Oct 2017

If this Issue get no Response, it will be closed at 26th November 2017.

avatar joomla-cms-bot joomla-cms-bot - change - 26 Nov 2017
Closed_Date 2017-11-26 06:19:47 2017-11-26 06:19:48
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 26 Nov 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 26 Nov 2017
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2017-11-26 06:19:47
Closed_By franz-wohlkoenig
avatar joomla-cms-bot
joomla-cms-bot - comment - 26 Nov 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Nov 2017

This has been closed due to lack of response to the requests above – it can always be reopened.

Add a Comment

Login with GitHub to post a comment