Skip to content

Global Context Variables

Compare
Choose a tag to compare
@joeleisner joeleisner released this 13 Oct 18:27

Issues related to the var context = content || null; problem within page-layouts have been solved. Here's how:

  • In page-layouts, the original way of calculating context errors out. The following logic works and will be utilized: var context = typeof content == 'undefined' ? null : content;
  • All new context, contextIsPage and contextIsContent member variables have been added to the base T4Utils object
    • This ensures that the context is defined globally at the start of the library
    • The modules brokerUtils, elementInfo and ordinalIndicators now utilize these member variables in their logic