Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-02-08 21:25:19

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Load custom JavaScript before </body> tag in Textpattern admin?

I’m curious, is there any way to load custom JS just before the closing body tag in Textpattern? I have tried adding the script via bot_write_tab_customize and Hive’s custom.js, but both of those load in the document head. This script needs to load after everything else.

Thanks in advance!

Offline

#2 2017-02-08 23:14:22

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: Load custom JavaScript before </body> tag in Textpattern admin?

It looks like admin_side > body_end callback is what you need?

Offline

#3 2017-02-13 18:18:28

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: Load custom JavaScript before </body> tag in Textpattern admin?

Thanks, etc!

I wound up solving the problem by examining a plugin that appends a different script there, and using it as a basis for my own.

Offline

Board footer

Powered by FluxBB