2.x
ResourceData
MODx.page.ResourceData = function(config) { config = config || {}; var btns = []; if (config.canEdit == 1) { btns.push({