Hallo Gemeinde,
nach Anpassung der Phoca-Suche funktioniert die Anzeige der Bilder als Suchergebnis ganz prima. Nun hat der Kunde aber ein Problem damit, dass die Suchergebnisse immer 2x angezeigt werden. Nämlich einmal alles, zuerst ohne Bild und dann im Verlauf die Ergebnisse mit dem Bild. Hier der Link wie es derzeit aussieht (Suchbegriff z.B. Gehirn)
https://www.lag-sb-rlp.de/component/sea ... ocagallery
Vielleicht gibt es ja dafür schon eine Lösung oder jemand von euch hat eine Idee .
LG Dirk
Phoca Galerie Suchergebnisse doppelt
- WM-Loose
- Phoca Enthusiast
- Posts: 60
- Joined: 22 Nov 2020, 11:43
-
- Phoca Hero
- Posts: 2728
- Joined: 28 Nov 2010, 17:20
Re: Phoca Galerie Suchergebnisse doppelt
Hallo Dirk,
hab's sowohl mit Aktivierung von: Bilder - leichte Sprache, als auch ohne Anklicken von einem Kästchen, probiert.
Sehe nichts doppelt
Körperlicher Zustand/Beschwerde: OK, das ist doppelt, aber aufgeteilt in:
Beschädigte Nerven bzw.
Entzündete Nerven
Liebe Grüße
Christine
hab's sowohl mit Aktivierung von: Bilder - leichte Sprache, als auch ohne Anklicken von einem Kästchen, probiert.
Sehe nichts doppelt
Körperlicher Zustand/Beschwerde: OK, das ist doppelt, aber aufgeteilt in:
Beschädigte Nerven bzw.
Entzündete Nerven
Liebe Grüße
Christine
- WM-Loose
- Phoca Enthusiast
- Posts: 60
- Joined: 22 Nov 2020, 11:43
Re: Phoca Galerie Suchergebnisse doppelt
Hallo Christine,
bei dem Suchbegriff "Gehirn" werden alle Einträge zuerst ohne Bilder angezeigt und weiter unten dann alles nochmal mit Bildern...
Probier doch bitte mal erneut...
LG Dirk
bei dem Suchbegriff "Gehirn" werden alle Einträge zuerst ohne Bilder angezeigt und weiter unten dann alles nochmal mit Bildern...
Probier doch bitte mal erneut...
LG Dirk
- WM-Loose
- Phoca Enthusiast
- Posts: 60
- Joined: 22 Nov 2020, 11:43
Re: Phoca Galerie Suchergebnisse doppelt
Beim Suchbegriff "Masern" wird der Eintrag nur 1x angezeigt, obwohl die Struktur ja identisch angelegt wurde...sehr seltsam.
- WM-Loose
- Phoca Enthusiast
- Posts: 60
- Joined: 22 Nov 2020, 11:43
Re: Phoca Galerie Suchergebnisse doppelt
Sorry, wird auch bei Masern doppelt angezeigt. Oben mit dem Link (fette Schrift) und darunter dann erneut...also gleiches Verhalten. Ich vermute dass das Phoca Such Plugin quasi als Upgrade für die normale Suche dient und daher die Ergebnisse zusätzlich mit Bild anzeigt. Phoca Search Plugin anpassen ?
- WM-Loose
- Phoca Enthusiast
- Posts: 60
- Joined: 22 Nov 2020, 11:43
Re: Phoca Galerie Suchergebnisse doppelt
Hier mal der Code für die Darstellung der Bilder in der Joomla-Suche:
defined('_JEXEC') or die;
?>
<dl class="search-results<?php echo $this->pageclass_sfx; ?>">
<?php foreach ($this->results as $result) : ?>
<?php if (isset($result->image) && $result->image != '') {
echo '<div style="float: left;margin: 5px 10px;"><img src="'. $this->escape($result->image).'" alt="" /></div>';
} ?>
<dt class="result-title">
<?php echo $this->pagination->limitstart + $result->count . '. '; ?>
<?php if ($result->href) : ?>
<a href="<?php echo JRoute::_($result->href); ?>"<?php if ($result->browsernav == 1) : ?> target="_blank"<?php endif; ?>>
<?php // $result->title should not be escaped in this case, as it may ?>
<?php // contain span HTML tags wrapping the searched terms, if present ?>
<?php // in the title. ?>
<?php echo $result->title; ?>
</a>
<?php else : ?>
<?php // see above comment: do not escape $result->title ?>
<?php echo $result->title; ?>
<?php endif; ?>
</dt>
<?php if ($result->section) : ?>
<dd class="result-category">
<span class="small<?php echo $this->pageclass_sfx; ?>">
(<?php echo $this->escape($result->section); ?>)
</span>
</dd>
<?php endif; ?>
<?php if (isset($result->image) && $result->image != '') {
echo '<div style="clear:both"></div>';
} ?>
<dd class="result-text">
<?php echo $result->text; ?>
</dd>
<?php if ($this->params->get('show_date')) : ?>
<dd class="result-created<?php echo $this->pageclass_sfx; ?>">
<?php echo JText::sprintf('JGLOBAL_CREATED_DATE_ON', $result->created); ?>
</dd>
<?php endif; ?>
<?php endforeach; ?>
</dl>
<div class="pagination">
<?php echo $this->pagination->getPagesLinks(); ?>
</div>
defined('_JEXEC') or die;
?>
<dl class="search-results<?php echo $this->pageclass_sfx; ?>">
<?php foreach ($this->results as $result) : ?>
<?php if (isset($result->image) && $result->image != '') {
echo '<div style="float: left;margin: 5px 10px;"><img src="'. $this->escape($result->image).'" alt="" /></div>';
} ?>
<dt class="result-title">
<?php echo $this->pagination->limitstart + $result->count . '. '; ?>
<?php if ($result->href) : ?>
<a href="<?php echo JRoute::_($result->href); ?>"<?php if ($result->browsernav == 1) : ?> target="_blank"<?php endif; ?>>
<?php // $result->title should not be escaped in this case, as it may ?>
<?php // contain span HTML tags wrapping the searched terms, if present ?>
<?php // in the title. ?>
<?php echo $result->title; ?>
</a>
<?php else : ?>
<?php // see above comment: do not escape $result->title ?>
<?php echo $result->title; ?>
<?php endif; ?>
</dt>
<?php if ($result->section) : ?>
<dd class="result-category">
<span class="small<?php echo $this->pageclass_sfx; ?>">
(<?php echo $this->escape($result->section); ?>)
</span>
</dd>
<?php endif; ?>
<?php if (isset($result->image) && $result->image != '') {
echo '<div style="clear:both"></div>';
} ?>
<dd class="result-text">
<?php echo $result->text; ?>
</dd>
<?php if ($this->params->get('show_date')) : ?>
<dd class="result-created<?php echo $this->pageclass_sfx; ?>">
<?php echo JText::sprintf('JGLOBAL_CREATED_DATE_ON', $result->created); ?>
</dd>
<?php endif; ?>
<?php endforeach; ?>
</dl>
<div class="pagination">
<?php echo $this->pagination->getPagesLinks(); ?>
</div>
-
- Phoca Hero
- Posts: 2728
- Joined: 28 Nov 2010, 17:20
Re: Phoca Galerie Suchergebnisse doppelt
Hallo Dirk,
jetzt hab ich es auch gesehen - mein Hirn ist angestrengt
Warum das so ist ... hmm, aber wenn ich temporär in die CSS eingebe:
ist die doppelte Eintragung weg:
Liebe Grüße
Christine
jetzt hab ich es auch gesehen - mein Hirn ist angestrengt
Warum das so ist ... hmm, aber wenn ich temporär in die CSS eingebe:
Code: Select all
dd.result-text {
display:none;
}
Liebe Grüße
Christine
- WM-Loose
- Phoca Enthusiast
- Posts: 60
- Joined: 22 Nov 2020, 11:43
Re: Phoca Galerie Suchergebnisse doppelt
In welcher CSS Datei ?
override im Template ? Custom.css?
LG Dirk
override im Template ? Custom.css?
LG Dirk
- WM-Loose
- Phoca Enthusiast
- Posts: 60
- Joined: 22 Nov 2020, 11:43
Re: Phoca Galerie Suchergebnisse doppelt
Ok! Stimmt...aber die Einträge sollen ja bleiben. Nur die ersten Suchergebnisse ohne Bild sollen nicht mehr erscheinen. Wenn ich nach Bildern suche, will ich halt keine doppelten Ergebnisse ohne Bild.
Ich grübel mal weiter...
Ich grübel mal weiter...
-
- Phoca Hero
- Posts: 2728
- Joined: 28 Nov 2010, 17:20
Re: Phoca Galerie Suchergebnisse doppelt
Hallo Dirk,
Na ja, CSS wäre halt schnelle Lösung. Hast so einige CSSen.
Normalerweise sollte es eine custom.css geben.
Override geht natürlich auch, der betreffende Abschnitt in Deinem Code oben.
Liebe Grüße
Christine
Edit nach neuerlichen Post: Aha, muss ich erst lesen, was Du genau meinst.
Na ja, CSS wäre halt schnelle Lösung. Hast so einige CSSen.
Normalerweise sollte es eine custom.css geben.
Override geht natürlich auch, der betreffende Abschnitt in Deinem Code oben.
Liebe Grüße
Christine
Edit nach neuerlichen Post: Aha, muss ich erst lesen, was Du genau meinst.