BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Custom Code before </body>

Open CaptnBook4Git opened this issue 8 years ago • 3 comments

For Feature Requests

Desired Feature: I would love to have the option to put custom code right before </body> ... just like it is now with the custom header code.

Would that be possible ?

CaptnBook4Git avatar Jun 18 '18 00:06 CaptnBook4Git

https://laravel.com/docs/5.5/blade#extending-a-layout https://laravel.com/docs/5.5/blade#introduction

TBK avatar Jun 18 '18 10:06 TBK

Currently, You could use JavaScript within the custom head content to dynamically insert content in the footer on run code once the page has loaded.

In the future this will be directly possible via Custom Views/Themes (#652). Technically already possible but undocumented (In progress still) and you'd need to override the whole base view. Infor in the issue link above but can provide more details if you want to explore this approach though it is unstable.

ssddanbrown avatar Jun 18 '18 20:06 ssddanbrown

I've allocated this to the next release as a reminder to add empty body-start and body-end partial templates within our base templates for easier overriding.

ssddanbrown avatar Jun 13 '22 13:06 ssddanbrown