Call javascript (AMD) on specific pages not my own

Re: Call javascript (AMD) on specific pages not my own

by Gareth J Barnard -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Depends on the pages.  There is always $PAGE->pagelayout that contains the name of the layout being used, i.e. 'admin', 'course', 'incourse' etc.