Привет,
Подскажите, пожалуйста, как создать маршрут на стороне клиента?
Спасибо!
Смотрите:
Trying out the new custom-homepage feature: https://github.com/discourse/discourse/pull/26291
@pmusaraj I wonder what’s the best approach to add components?
So adding the custom-homepage modifier enables the discovery.custom route and shows a default info alert, rendered on the custom-homepage outlet:
[image]
I add a component to the outlet and it renders instead:
[image]
[image]
However, when I add more than one component, I get an error:
[image]
[image]
I can add …
Если ваши потребности станут более сложными, вы можете рассмотреть наше решение здесь:
Support
Discourse Landing Pages
What are “Dynamic” and “Simple Pages” There are special pages facilitated by the Pavilion Landing Pages plugin and the new Home Pages Theme Component. The new Home Pages Theme Component is required to blend the content of the Landing Pages into...
Reading time: 1 mins 🕑
Likes: 5 ❤
Привет, @merefield ,
Спасибо за сообщение. Извините за путаницу. Однако я ищу что-то вроде этого:
Я попробовал сделать это таким образом, но почему-то у меня не получается . Я создал файл карты маршрутов в assets/javascripts/discourse и hbs-файл в assets/javascripts/discourse/templates. Не упускаю ли я что-то при создании маршрута на стороне клиента?
Может ли кто-нибудь подсказать, как создать новый маршрут только на стороне клиента?