Per questi argomenti importanti, sembra che non ci sia modo di incoraggiarli, ad esempio evidenziando il loro post.
To highlight a topic in the topic list you can pin the topic to the top to the list. This is a native Discourse feature.
I know that, however in my opinion pin is for rules of this category or something like that. For me I prefer there is a way to highlight some of the topic in list or not pin them.
Can you share a mock-up of how you envision that working?
Something like that. Color and bold the topic title and with a star… just a sample, so that user can know that this topic is highlighted and featrued.
Oh cool! You can easily accomplish that with a small theme component. First create a staff tag to denote this “highlight” state, let’s say it’s “highlight”. Then you tag the topics you want to highlight with this tag.
On the theme code you need to style it as you want let’s say:
tr.tag-highlight {
background-color: blue;
font-weight: bold;
border: 3px dotted pink;
}
Then it looks like this:
I know how to do it in css, that sample is actually working on my discourse. I just want to know is that possible to build in this function in official? I think highlight is a pretty useful function.
Questo è molto interessante e funziona per evidenziare gli argomenti negli elenchi di argomenti, ma voglio anche evidenziare l’argomento stesso. Sembra che il tag esista in una pagina di argomento solo per il tag stesso.
Ho provato a fare questo, che sembra potrebbe funzionare, ma probabilmente lo sto facendo in modo errato.
.title-wrapper div.has-highlight {
/* Stili per l'h1 con la classe */
color: blue !important;
font-weight: bold;
}
Cosa si intende per “l’argomento stesso” in questo contesto?
Nella pagina dell’argomento per gli argomenti con il tag, voglio colorare l’argomento in modo diverso (o altro) in modo che venga visualizzato come speciale non solo negli elenchi degli argomenti, ma anche quando si visita la pagina dell’argomento.
Intendi il primo post di un argomento, l’OP giusto?
body.tag-highlight article#post_1 {
background-color: blue;
font-weight: bold;
border: 3px dotted pink;
}
Fantastico! Ora come faccio a puntare al TITOLO dell’argomento?
// questo punta al tag stesso
a[data-tag-name="extra-special-topic"] {
color: yellow !important;
}
// questo cambia il titolo nelle liste di argomenti
.tag-extra-special-topic .raw-topic-link {
color: blue !important;
}
// Questo punta allo sfondo/corpo dell'OP
body.tag-extra-special-topic article#post_1 {
background-color: blue;
font-weight: bold;
border: 3px dotted pink;
}
.tag-extra-special-topic #topic-title .fancy-title {
color: papayawhip;
}
Mio caro amico, hai provato l’approccio che hanno suggerito? Devo confessare che la loro spiegazione è sfuggita alla mia comprensione. ![]()
Quale parte? Apri semplicemente il tuo editor di temi e modifica il CSS
Questo ha fatto qualcosa di strano per me, quando sono nell’argomento evidenziato si applica poi ad altri argomenti in fondo nell’elenco “Nuovi argomenti e non letti”
Ma se NON sono nell’argomento, solo quello evidenziato è evidenziato (come ti aspetteresti)
Che succede
?



