Hola, soy nuevo en Discourse y me encantan sus características y funciones. Quiero personalizar mucho su apariencia y la forma en que presenta el contenido. He estado leyendo varios hilos y publicaciones tratando de entenderlo. Tengo experiencia en codificación de JavaScript, pero me estoy confundiendo. Por personalizar mucho, me refiero a: eliminar la barra lateral, agregar elementos de navegación a la barra superior. Mostrar temas con el nombre del autor, avatar, asunto y texto de vista previa, junto con la respuesta más reciente y una vista previa de la respuesta con el avatar y el nombre del autor de la respuesta. Temas agrupados bajo categorías en una gran lista de categorías y sus temas (estilo antiguo). Supongo que necesito entender cómo anular los datos que se muestran, o se obtienen y luego se muestran, y estoy confundido sobre la mejor manera de hacerlo. ¿Sería un solo “tema”? ¿Sería un componente de tema? ¿Sería un plugin? ¿Serían múltiples temas, componentes y plugins? ¿Cuál es la diferencia entre un componente y un plugin? Ojalá hubiera un video de YouTube que mostrara el desarrollo de un “tema” tan personalizado. Actualmente estoy recopilando una lista de “complementos?” que hacen cosas similares a lo que quiero lograr y estoy tratando de leer su código y entenderlos, pero hombre, es realmente confuso entrar en esto “fresco”. Aprendo mejor viendo videos que leyendo. ¿Algún consejo, sugerencia o video que quizás no haya conocido? Cualquier ayuda es muy apreciada.
1 me gusta
Falco
(Falco)
8 Noviembre, 2023 03:28
2
Dado que los cambios que deseas implicarían la obtención de datos adicionales para las páginas, un tema o un componente no serían suficientes, necesitas un plugin para lograr tu visión.
3 Me gusta
Gracias Tengo un montón de lectura. Espero que todo empiece a tener sentido. Encontré un tema muy relevante:
Ideally, when customizing Discourse via themes/plugins, you should use CSS, the JavaScript Plugin API , or plugin outlets . If none of these work for your use-case, feel free to open a PR to Discourse core or start a Dev topic here on Meta. We’re always happy to discuss adding new outlets/APIs to make customization easier.
If you’ve exhausted all other options, you may need to resort to template overrides. This technique allows you to override the entire template of any Ember Component or Route f…
Y luego, solo comparto algunos enlaces/notas para otros que puedan estar en la misma situación:
Las plantillas HTML están en https://github.com/discourse/discourse/tree/main/app/assets/javascripts/discourse/app/templates
Guía para principiantes de temas:
This is a crash course in Discourse theme basics. The target audience is everyone who is not familiar with Discourse themes. If you’ve already used Discourse theme / theme components, this guide is probably not something you need to read.
What are themes and theme components?
A theme or theme component is a set of files packaged together designed to either modify Discourse visually or to add new features.
Let’s start with themes.
Themes
In general, themes are not supposed to be compatible …
Guía para desarrolladores de temas:
Discourse Themes and Theme Components can be used to customize the look, feel and functionality of Discourse’s frontend. This section of the developer guides aims to provide all the reference materials you need to develop simple themes for a single site, right up to complex open-source theme components.
This introduction aims to provide a map of all the tools and APIs for theme development. If you prefer a step-by-step tutorial for theme development, jump straight to:
Themes vs. Theme Compon…
Guía para diseñadores de temas:
This is possible, and the method I would reccomend. The only thing you need to be aware of is that these changes will be live on the forum as you make every change.
What I do is set the theme to be user selectable, and change my personal user preference to that theme, while keeping the default theme the choice for all other users. This lets only you see any issues that may arise during theming.
Creación de un componente de tema:
Componente de tema para revelar ubicaciones de “plugin outlet” (lugares para inyectar nuevo html/script/estilos):
Contribute to communiteq/plugin-outlets-theme-component development by creating an account on GitHub.
Desarrollo de plugins:
Aprende a empezar a construir cosas:
There are a few ‘how to start’ guides for working with Discourse already and a wealth of useful info on meta, but I thought it might help to give an insight to the mental processes of starting from little, if any, prior coding experience to building substantial Discourse plugins.
Discourse is written by experienced developers and has a large codebase. This can feel intimidating. This intimidation factor can be a significant barrier for novice developers. This is a kind of ‘psychological primer’…
Instalar Discourse en Ubuntu/Debian para desarrollo:
This guide covers installation instructions in a development environment. For a production guide see: Install Discourse in production with the official supported instructions
So you want to set up Discourse on Ubuntu or Debian to hack on and develop with?
We’ll assume that you work locally and don’t have Ruby/Rails/Postgres/Redis installed on your Ubuntu or Debian system. Let’s begin!
Requirements
We suggest having at least 4 GB RAM and 2 CPU cores.
Current compatibility:
O…
Lo que realmente quiero modificar es la “topic-list” o página de inicio
• Este tema ya ha creado el formato de "topic-list" deseado:
• Nombre del autor + Avatar:
Author name plus avatar o Show Original Poster Avatars
• Grupos de categorías:
• Iconos de categorías destacadas:
También puedes probar el editor de temas en línea:
Extras:
• Inicio de sesión único? SSO
DiscourseConnect is a core Discourse feature that allows you to configure “Single Sign-On (SSO)” to completely outsource all user registration and login from Discourse to another site. Offered to our pro, business and enterprise hosting customers .
(Feb 2021) ‘Discourse SSO ’ is now ‘DiscourseConnect ’. If you are running an old version of Discourse, the settings below will be named sso_... rather than discourse_connect_...
The Problem
Many sites wishing to integrate wit…
• Bot de Discord
Purpose of this plugin
This plugin does several things:
Allows you to power a Discord bot using your Discourse server to do stuff to link the two systems. Fork this repo and expand it with simple Ruby to create all kinds of bot functionality.
Existing functionality to serve as examples and useful utility:
Provides some two-way auto posting of content that meet some criteria.
Command to copy messages ad hoc to Discourse
Command to sync group membership to role membership of your Discor…
pfaffman
(Jay Pfaffman)
8 Noviembre, 2023 05:14
4
Puedes hacer esto haciendo clic en el ícono de hamburguesa, así que sería bastante fácil de averiguar.
Echa un vistazo a Enlaces de encabezado personalizados
Eso podría ayudarte a empezar.
4 Me gusta