Canapin
(Coin-coin le Canapin)
23.Декабрь.2024 13:11:42
4
В нижней части этого раздела есть плагин-выход after-login-buttons, который можно использовать для добавления контента. Предполагается, что его можно переместить наверх с помощью CSS, или можно запросить выход выше здесь .
Вы можете создать новый компонент темы, использующий этот выход.
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…
Discourse includes hundreds of Plugin Outlets which can be used to inject new content or replace existing contend in the Discourse UI. ‘Outlet arguments’ are made available so that content can be customized based on the context.
Choosing an outlet
To find the name of a plugin outlet, search Discourse core for “<PluginOutlet”, or use the plugin outlet locations theme component. (e.g. topic-above-posts).
Wrapper outlets
Some outlets in core look like <PluginOutlet @name="foo" />. These allow you…
Также, вероятно, можно добавить изображение только с помощью CSS, но менее чистым способом.
Не могли бы вы опубликовать изображение того, как вы хотите, чтобы выглядело ваше модальное окно входа?