Standard page content from Git


(Oliver Kass) #1

Matrix Version: 5.5.2.3

Has anyone ever set up a Git bridge and webhook to attempt to push page content (markdown or similar) from GitLab into Matrix standard pages?


(Bart Banda) #2

Yes, have a look at the guide here on how to set up the webhook: https://matrix.squiz.net/tutorials/2018/how-to-set-up-a-git-bridge#creating-a-webhook

Then you can use %globals_asset_contents_raw:1234:folder/file.html% syntax to source content from a file in Git into your standard page or template.


(Oliver Kass) #3

Thanks Bart. Will give this a go.


#4

Interesting to hear how you go with this @oakass. Would appreciate some updates.