Sono disponibili molte opzioni per selezionare la fonte degli argomenti. Le immagini possono essere recuperate per tag, per categoria o utilizzando un periodo di âargomenti principaliâ. Le immagini possono essere limitate alla categoria attualmente visualizzata o provenire da tutto il sito.
Viene aggiunta unâimpostazione nelle preferenze dellâinterfaccia utente che permette agli utenti di nascondere il banner sul dispositivo corrente.
Impostazioni
Nome
Descrizione
featured category
La categoria contenente gli argomenti in evidenza. Imposta a 0 per tutte le categorie. âLimita alla categoriaâ sovrascriverĂ questa impostazione.
featured tags
Il tag che contiene gli argomenti in evidenza. Deve essere visibile pubblicamente.
topic source
Quale algoritmo utilizzare per selezionare gli argomenti
top period
Il periodo di tempo utilizzato quando âtopic_sourceâ è impostato su âtopâ
randomize topics
Randomizza la selezione e lâordinamento degli argomenti
display when unfiltered
Mostra nella pagina âUltimeâ non filtrata
display on categories
Mostra nelle pagine delle categorie
display categories
Mostra i riquadri quando si visualizzano queste categorie. Lascia vuoto per tutte le categorie
maximum topic count
Il numero massimo di argomenti da mostrare
scope to category
Filtra gli argomenti alla categoria corrente
display mobile
Mostra sui dispositivi mobili
Traduzione
Valore predefinito
preference_header
Banner Argomenti in Evidenza
preference_description
Mostra il banner degli argomenti in evidenza su questo dispositivo
Ospitato da noi? I componenti del tema sono disponibili per lâuso nei nostri piani Standard, Business ed Enterprise.
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?