Plugin outlets using site customizations not working after 1.6 upgrade

AI-generated summary

Ashwani_K_Goel reported that plugin outlets using site customizations stopped functioning after upgrading Discourse from v1.5.0.beta3 to 1.6.0.beta9, specifically noting that Handlebars templates in the </head> section no longer render. Falco confirmed that connectors on the post stream and header were removed in this version, referencing documentation on the new widget virtual DOM system. When Ashwani_K_Goel inquired about alternative methods to display HTML content and the compatibility of downgrading to v1.5 with existing database backups, Falco clarified that while backups from 1.5 are compatible with that version, the recommended approach is to adapt plugins to the new architecture. Falco provided a link to a simple plugin adapted by @eviltrout that utilizes the new outlet system as a reference implementation.

Hi there,

I recently rebuilt discourse and ended up updating from v1.5.0.beta3 +81 to 1.6.0.beta9 and all the outlets have stopped working. Something as simple as below in section of Customise won’t work:

<script type='text/x-handlebars' data-template-name='/connectors/topic-after-cooked/testtopic'>
Test.
</script>

Can someone please suggest what could be the issue? Is there any change in this version which affects this functionality?

Thanks

Yes, connectors on the post stream and on the header are gone.

Hi Rafael,

Thanks for your reply.

So, is there any other way for us now to display our html contents on post?

Also, if we downgrade to 1.5 whether the database backups that we have in Admin panel from pre upgrade, will work?

I appreciate all your help

Best Regards!

Backups from 1.5 should work on 1.5, but you can adapt your plugins to the new way.

Here is a very simple plugin that uses the same outlet you use. It was adapted by the man @eviltrout himself.

Commits · xfalcox/discourse-signatures · GitHub