Piastrelle in evidenza

:discourse2: Riepilogo Featured Tiles aggiunge una riga di riquadri in evidenza sopra le liste degli argomenti.
:eyeglasses: Anteprima Anteprima su Discourse Theme Creator
:hammer_and_wrench: Link al Repository https://github.com/discourse/discourse-featured-tiles
:open_book: Nuovo a Discourse Themes? Guida per principianti all’uso di Discourse Themes

Installa questo componente del tema

FunzionalitĂ 

Featured Tiles aggiunge una riga di riquadri in evidenza sopra le liste degli argomenti.

Passando il mouse sopra, verranno mostrati il titolo dell’argomento e l’autore:

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

:discourse2: Ospitato da noi? I componenti del tema sono disponibili per l’uso nei nostri piani Standard, Business ed Enterprise.

38 Mi Piace

Wow.

This is amazing! It will attract even more clicks on my forum.

@david although not selected, its showing up on categories page. Also, if a topic has no images, can we set up a default image?

Edit: a member told me its only works on MacOS, cause he can’t see anything.

unknown

nice and functional theme :v:.

how is it different from Homepage Feature Component? is it just about the style or there are some more in-depth differences?

1 Mi Piace

It is mostly the style. Plus the Homepage Feature Component is only designed to use on the homepage. This one works in a few more places.

3 Mi Piace

Can you ask the member to check their browser error console? And also let us know which browser they are using?

unknown

Firefox

unknown (1)

Chrome

That error looks like it’s coming from another theme component. Can you try disabling them one-by-one?

4 Mi Piace

Hi,

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.

2 Mi Piace

is it the same as the theme Topic List Previews ?

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.

2 Mi Piace

I love this.

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,
Ray

2 Mi Piace

@david how i can increase the quality of the pictures, and probably the size to 180x80, thanks

It should be using 200x200 images on regular screens, automatically scaling up to 400x400 on hidpi screens.

Are you seeing something different?

Can i send you PM, because my forum is age restricted.

1 Mi Piace

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:

Screenshot 2020-08-24 at 15.02.58

Adding a new setting to the theme component for this would be pr-welcome if someone would like to work on it.

7 Mi Piace

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?

Current config

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?

2 Mi Piace

Hi David!

Amazing theme component. Like others have asked. Is there a way to add default images for topics without pics?

Ie Featured1.img Featured2.img if no image is detected?

Also have an issue with Component recognizing a tag that is visible to all but says cannot find tag when I try add it.

1 Mi Piace

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.


OS - Mac 10.15.7 (Both Chrome, Safari and iOS version appear the same)

1 Mi Piace

the theme shows blank gray banner when activated on the site:

though the tag option is clicked and there are some topics on the feature-tag.

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?