Vengono generate immagini ottimizzate per gli elenchi e vengono rese disponibili diverse risoluzioni per display ad alta densità di pixel (high-dpi). Le immagini vengono caricate in modo lazy mentre scorri (dove è disponibile il supporto nativo del browser).
Per impostazione predefinita, Discourse utilizzerĂ la prima immagine presente nel primo messaggio (OP) del topic. Se desideri selezionare unâimmagine diversa dallâOP, aggiungi |thumbnail al markdown. Ad esempio:

 << questa sarĂ la miniatura
Sono disponibili cinque modalitĂ , configurabili per categoria o etichetta tramite le impostazioni del tema.
Se desideri che le Oneboxes nei tuoi post generino miniature, dovrai attivare questa impostazione del sito: download_remote_images_to_local. Dovrai anche rifare il baking (rebake) dei post pertinenti.
Impostazioni
Nome
Descrizione
default thumbnail mode
Quale modalitĂ di visualizzazione delle miniature deve essere utilizzata per impostazione predefinita
docs thumbnail mode
Se il plugin docs è abilitato, quale modalità di visualizzazione delle miniature deve essere utilizzata per i topic docs
blog style categories
La visualizzazione in stile blog verrĂ utilizzata in queste categorie. Questo stile utilizza gli estratti dei topic se abilitati tramite tema o componente del tema
minimal grid categories
La visualizzazione a griglia minimale verrĂ utilizzata in queste categorie
grid categories
La visualizzazione a griglia verrĂ utilizzata in queste categorie
masonry categories
La visualizzazione masonry verrĂ utilizzata in queste categorie
list categories
La visualizzazione a elenco verrĂ utilizzata in queste categorie
blog style tags
minimal grid tags
La visualizzazione a griglia minimale verrĂ utilizzata per queste etichette
grid tags
La visualizzazione a griglia verrĂ utilizzata per queste etichette
masonry tags
La visualizzazione masonry verrĂ utilizzata per queste etichette
list tags
La visualizzazione a elenco verrĂ utilizzata per queste etichette
suggested topics mode
Quale modalitĂ di visualizzazione delle miniature deve essere utilizzata per i topic suggeriti? Se lasciata vuota, seguirĂ lâimpostazione âenable outside topic listsâ.
enable outside topic lists
Abilita le miniature nelle pagine diverse dagli elenchi dei topic (ad esempio attivitĂ utente, messaggi personali, topic suggeriti)
placeholder icon
Icona da visualizzare per i topic senza immagini di miniatura
mobile thumbnails
Abilita le miniature sui dispositivi mobili
list thumbnail size
Dimensione di base per le miniature nella visualizzazione âelencoâ
Ospitato da noi? I componenti del tema sono disponibili per lâuso nei nostri piani Pro, Business e Enterprise.
Absolutely fantastic that core is paying more attention to image delivery and presentation. I like the direction!
(If this doesnât fully replace Topic List Previews, there is now at least potential to eliminate a lot of bespoke API work from it which I wonât have to maintain anymore, great stuff!)
PS I just tested it and one thing that would be quite nice is if Polls generated a thumbnail so the charts could surface âŚ
I have a very odd problem that only applies to one member on my site. Some thumbnails do not display, seemingly randomly. It displays the default icon as if there was no image, yet for myself and everyone else the thumbnail displays. I had him look in his console and there is nothing pertinent, nothing in the logs either. Iâve had him try clearing the cache, trying different browsers and devices, and using a different isp. I even had him try a theme with only this component enabled. No matter what he tries this still happens. I even tried impersonating him and then it doesnât happen for me. Any other thoughts on troubleshooting this? Thanks!
Have him try on mobile with wifi disabled so heâs not going through his home network, but the cellular network. This will eliminate anything on his network from interfering.
But if you have tried âdifferent ISPâ then maybe not.
I canât get this to work anymore, did this revert perhaps?
Also, the feature is not easy to discover for users. Would it be possible to add an option to select the thumbnail to the âsize selectionâ in the preview?
Thanks Jeff, he has tried hotspotting to his phone, and at a friends house with a different ISP. I thought it might be a CDN issue so I tried clearing the CDN cache which did not help him. I also tried impersonating him while using a VPN in Atlanta where he is from which did not help either. Iâm not sure what else to try.
2 Mi Piace
david
(David Taylor)
Ha separato questo argomento il
167
I have the following requirement and maybe you can point me to how to achieve this.
Sometimes we have a topic that we want to share via social media and we prepare an image for it that should be used as thumbnail and for the og:image tags, but we donât want it to be visible inside the topic.
How could we realize something like this e.g. add âhideâ to the sizes and then a class is added to the image container that applies âdisplay: none;â?
Itâs somewhat by design. Normally, that bar sits on top of the column headings in the topic list. The alternative would be for the bar to âpush downâ all the topics when it appears, which would make the entire UI jump down, and could be quite jarring.
Iâm not sure why there is a ~1px gap on the right hand side of the bar in your screenshot. That could be an issue with the component, or it could be related to your custom theme CSS.