Put Google Map in a Page


This is a basic question, but I am still trying to get a handle on the fundamentals of developing in xenforo.

Basic task, I need to embed a Google Map in a xenforo-Page. When the Page loads, I need do a set of Google Map tasks. In an ordinary web page, I would run these initialization tasks in an function called on body/onload.

Should I use the callback method mentioned when creating a Page? If true, where on the file system should the class script be placed for this method. thanks in advance


XenForo developer
Staff member
The callback is for PHP. What you want to do is in JS, so it'll just go into the page template/HTML area.