Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Helpful things to know

James Blair edited this page Nov 12, 2015 · 6 revisions

Generally

  • Replace striptags with strip_tags
  • Replace _site_root with site_root
  • Regex replace theme:partial src="([a-z]+)" with partial:\1

On Pages

  • For now, use nav to mimic pages:listing

On Fieldsets

  • include is no longer supported

With Addons

  • To get addon path
    • v1: Config::getAddOnsPath($addonName)
    • v2: addons_path($addonName)
  • To get addon name from meta.yaml: getAddonName()
  • To get addon name from class name: getAddonClassName()
  • To fetch tag parameter
    • v1: $this->fetchParam('param_name', null, null, false, false)
    • v2: $this->get('param_name');
Clone this wiki locally