Any idea why the layouts work perfectly fine in one subcategory:
but not in another?
Itâs the tags and specifically this line:
You can either reduce the number of tags or try this:
.topic-list-item .discourse-tags {
display: unset;
}
That will cause them to wrap, hopefully.
(NB inline-block also works but unset works even better in this case)
Thank you so much! That works.
Thanks for nice work.
but
When i tick: Enable right sidebar globally to yes or no there is no timeline on the topic. It is a bug or no ?? (im testing the material theme)
There will be another reason why youâre not seeing the timeline. Please try using the plugin by itself with other plugins and themes disabled.
My Sandbox has this plugin installed, has enable right sidebar globally turned off and you can still see topic timelines, e.g. https://discourse.angusmcleod.com.au/t/test-event-for-bug/898
Also make sure you havenât included âtopicâ in the layouts sidebar right enabled setting.
So much functionality has been provided (you people are great) that it has become rather tough to understand all the options which cross depend on each other (layout vs location plugins) for a power user (but not powerful tech) like me.
But I understand that I shouldnât bite more than I can chew. But again, canât help myself when see something new and useful.
I agree! Iâm going to be updating the first post of this plugin topic, and my other plugin topics soon with a standardised template that makes it easier to understand the functionality and how to implement it on your site.
If you have any specific use cases in mind for this plugin let me know and I can help you out.
Anchâio mi chiedevo questo.
Ă possibile creare i Widget utilizzati dai Plugin di Layout in un componente del tema, oppure i Widget devono essere creati anchâessi da un Plugin?
Probabilmente entrambi funzioneranno, li ho creati nei plugin.
Lâunico vantaggio di fare questâultimo è che puoi impostare programmaticamente le posizioni dei widget in plugin.rb senza dover utilizzare Admin.
SÏ, è possibile!
Esistono sia unâinterfaccia lato server che una lato client per lâaggiunta di widget.
Importa questa funzione
import { addCustomWidget } from 'discourse/plugins/discourse-layouts/discourse/widgets/sidebar';
Poi utilizzala in questo modo in un inizializzatore
addCustomWidget({
name: <nome del widget>,
position: <lato su cui vuoi che appaia>,
order: <ordine relativo ad altri widget sullo stesso lato>
})
Assicurati inoltre che sia abilitato, sia a livello di sito (nelle impostazioni del sito) che per una categoria specifica (nelle impostazioni della categoria).
Hai idea se il CSS per questo debba essere modificato di recente? Ho appena aggiornato allâultima versione e il CSS non funziona piĂš. Quando ispeziono gli elementi dal browser, vedo ancora lâuso di .nav-container e .locations-map.
Saluti.
Nel plugin non è cambiato nulla, ma il CSS di Discourse potrebbe essere stato modificato.
Questa è la mappa dellâelenco dei topic, giusto? Prova
#list-area .locations-map:not(.expanded) {
...
}
Grazie, ma niente da fare. Ho provato praticamente ogni elemento e non câè stato alcun cambiamento:
.list-area .widget-container .nav-container .leaflet-container .locations-map:not(.expanded) {
height: 750px;
}
Risolto: serve il commento !important. Grazie per lâaiuto.
.nav-container .locations-map:not(.expanded) {
height: 750px !important;
}
Funziona perfettamente sul mio sito https://babyforex.net. Tuttavia, se usi la barra laterale destra nella visualizzazione degli argomenti, non dovresti utilizzare DiscoTOC: DiscoTOC - automatic table of contents
Nella pagina dellâargomento,
La navigazione dei post è nascosta.
Credo che la navigazione dei post possa essere spostata a sinistra del sito, mentre la barra laterale si trova sulla destra.
Stai visualizzando lâerrore - âNon esiste unâimpostazione denominata âlayouts_sidebar_left_enabledââ e lo stesso vale per qualsiasi impostazione che sto cercando di configurare.
Puoi cortesemente spiegare in dettaglio i passaggi che stai compiendo per ottenere quellâerrore? Fornisci informazioni sufficienti affinchĂŠ qualcuno possa riprodurlo.
Stai utilizzando una build ufficiale aggiornata di Discourse? Supportiamo i nostri plugin solo sul ramo tests-passed.