• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Put Google Map in a Page

#1
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
 

Mike

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