gCalMarkup has several reserved HTML element attributes that are used to remove HTML elements under certain conditions:

  • gCalCategory="category"
    • If the current event is not in the given category, the element is removed
    • e.g. gCalCategory="local" - this HTML element will be removed unless the current event, the calendar it is from, or the group its calendar is in, are in the local category.
  • gCalMarkup.ifProperty="property"
  • gCalMarkup.ifPropertyAll="property"
  • gCalMarkup.ifPropertyAny="property"
    • If the current event does not contain the given property, the event is removed
    • e.g. gCalMarkup.ifProperty="hrefImage" - this HTML element will be removed unless the current event, the calendar it is in, or its group contains a property named "hrefImage".
Some Joomla! editors restrict the contents of HTML attributes and will not allow them to contain gCalMarkup commands. An example is the style attribute.  gCalMarkup solves this problem by allowing attribute names to be sourrounded with "gCalMarkup." and ".x".  When a gCalMarkup template is used, gCalMarkup will remove the extra text.  For example:
  • gCalMarkup.style.x="color:{gCalMarkup color/}"