plugin de diseños

Any idea why the layouts work perfectly fine in one subcategory:

but not in another?

1 me gusta

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)

2 Me gusta

Thank you so much! That works.

1 me gusta

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.

2 Me gusta

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.

1 me gusta

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.

2 Me gusta

EDIT:

Let’s not talk about why it’s fixed, or not…

Sorry :wink: :slight_smile: (Missed that option)

1 me gusta

Yo también me preguntaba sobre esto.

¿Puedes crear los Widgets que serán utilizados por los Plugins de Layouts en un componente de tema, o los Widgets también deben ser creados por un Plugin?

Probablemente ambos funcionarán, los he creado en plugins.

La única ventaja de hacer lo segundo es que puedes configurar programáticamente las ubicaciones de los widgets en plugin.rb sin tener que usar Admin.

1 me gusta

¡Sí, puedes!

Existe una interfaz tanto del lado del servidor como del lado del cliente para agregar widgets.

Importa esta función:

import { addCustomWidget } from 'discourse/plugins/discourse-layouts/discourse/widgets/sidebar';

Luego úsala así en un inicializador:

addCustomWidget({
  name: <nombre del widget>,
  position: <lado en el que quieres que aparezca>,
  order: <orden relativo a otros widgets en el mismo lado>
})

Asegúrate también de que esté habilitado, ya sea a nivel del sitio (en la configuración del sitio) o para una categoría específica (en la configuración de la categoría).

¿Sabes si el CSS para esto ha necesitado cambios recientemente? Acabo de actualizar a la última versión y el CSS ya no funciona. Aún veo el uso de .nav-container y .locations-map cuando inspecciono los elementos desde el navegador.

Saludos.

Nada ha cambiado en el plugin, pero es posible que el CSS de Discourse haya cambiado.

Esta es la lista de mapas de tópicos, ¿verdad? Intenta

#list-area .locations-map:not(.expanded) {
  ...
}

Gracias, pero sin suerte. Probé con casi todos los elementos y no hubo ningún cambio:

.list-area .widget-container .nav-container .leaflet-container .locations-map:not(.expanded) {
  height: 750px;
}

¡Resuelto! Se necesita el comentario !important. Gracias por la ayuda.

.nav-container .locations-map:not(.expanded) {
  height: 750px !important;
}
2 Me gusta

Funciona perfectamente en mi sitio web en https://babyforex.net. Sin embargo, si usas la barra lateral derecha en la vista de tema, no debes usar DiscoTOC: DiscoTOC - automatic table of contents

1 me gusta

En la página del tema,

La navegación de publicaciones está oculta.

Creo que la navegación de publicaciones puede moverse a la izquierda del sitio y la barra lateral a la derecha.

¿Me está mostrando el error - “No existe ninguna configuración llamada ‘layouts_sidebar_left_enabled’” y lo mismo ocurre con cualquier configuración que intento crear en ella.

¿Podrías detallar los pasos que estás siguiendo para obtener ese error? Por favor, proporciona suficientes detalles para que alguien pueda reproducirlo.

¿Estás utilizando una versión oficial actualizada de Discourse? Solo damos soporte a nuestros plugins en la rama tests-passed.