Es stehen viele Optionen zur Auswahl der Themenquelle zur Verfügung. Bilder können nach Tag, nach Kategorie oder unter Verwendung eines Zeitraums für „Top-Themen" abgerufen werden. Bilder können auf die aktuell angezeigte Kategorie beschränkt sein oder aus der gesamten Site stammen.
In den Benutzeroberflächeneinstellungen wird eine Option hinzugefügt, mit der Benutzer das Banner auf dem aktuellen Gerät ausblenden können.
Einstellungen
Name
Beschreibung
featured category
Die Kategorie, die hervorgehobene Themen enthält. Auf 0 setzen für alle Kategorien. „Auf Kategorie beschränken" überschreibt diese Einstellung.
featured tags
Das Tag, das die hervorgehobenen Themen enthält. Dies muss öffentlich sichtbar sein.
topic source
Welcher Algorithmus zur Auswahl der Themen verwendet werden soll
top period
Der Zeitraum, der verwendet wird, wenn „topic_source" auf „top" gesetzt ist
randomize topics
Auswahl und Reihenfolge der Themen randomisieren
display when unfiltered
Auf der ungefilterten neuesten Seite anzeigen
display on categories
Auf Kategorie-Seiten anzeigen
display categories
Die Kacheln anzeigen, wenn diese Kategorien angezeigt werden. Leer für alle Kategorien
maximum topic count
Die maximale Anzahl an anzuzeigenden Themen
scope to category
Themen auf die aktuelle Kategorie filtern
display mobile
Auf mobilen Geräten anzeigen
Übersetzung
Standard
preference_header
Banner für hervorgehobene Themen
preference_description
Banner für hervorgehobene Themen auf diesem Gerät anzeigen
Von uns gehostet? Theme-Komponenten können in unseren Standard-, Business- und Enterprise-Plänen verwendet werden.
With this configuration, the tiles should appear in all category pages right? My featured tag is “destacado”, however tiles do not show in the category page.
No it’s not the same. The “Featured Tiles Theme Component” in this topic is officially maintained by the Discourse team, and it only provides what you see in the screenshot. “Topic List Previews” is a third-party plugin and/or theme with a different design and featureset.
Is there a way to have it only pull from topics with photos/images? Otherwise it seems pretty discordant when there is a row of empty grey boxes and an occasional photo.
Thanks for the link. Looking at the site, the problem is that the images are portrait. So we are constraining a 3072x4608 image into a 200x200 square, which makes it 133x200. Then we’re ‘filling’ a 222x150 box with it. So we’re displaying an image 133 pixels wide into something 222 pixels wide.
One solution here is to stop ‘filling’ the banner with the image, and ‘fit’ it instead. That’s the approach we take in the topic list thumbnails:
Adding a new setting to the theme component for this would be pr-welcome if someone would like to work on it.
This looks great, I like that the tiles don’t overwhelm the UI. I had a couple questions about configuring it.
I haven’t been able to get the featured tiles to appear on my category pages - only the homepage. My configuration is below (with my category names blacked out since we don’t want to share those right now). Anything I’m missing here?
My second question - is there a way to set default images to use for the tiles, as opposed to ones pulled from the topics? We’re often going to have topics to feature that don’t have images, but still want it to look nice. If there’s not a built-in way currently, would that mean modifying the CSS or JS?
Is there a specific image type (.jpg, .png, .tiff) that this works with? Images not showing up from 2 of 3 topics which I tagged, though the topic itself shows up.
Agree. Still wondering if there is a work around to searching the entire topic for an image to use if one is there? Or will it ONLY take from the first post?