Global Variables

Created By

Weaver ~

Description

Add to ability to replace text strings throughout your Freeway document with a centralized source of definitions, and some ‘magic’ phrases to replace info with document properties…

For Example:

  • [⁠[myText]⁠] = Whatever you would like depending on a ‘dictionary’ file.
  • %%page_title%% = the Page Title for the page in which the text appears, as seen in the Inspector
  • %%page_file%% = filename for page
  • %%folder_name%% = parent folder of page
  • %%folder_path%% = path of parent folders of the page as seen in the site map (uses ‘/’ as separator, no means to change at present)

Features:

  • Can handle most any replacement string: html, js, php; single line or multi-line (the only caution syntax is two brackets in a row (‘]]’). Most, if not all, languages will allow you to put a space in between these characters without consequence)
  • Can handle both ‘local;’ and ‘global’ variables, local variables taking precedence over global counterparts
  • Special ‘email’ definition creates genuine tags that other Actions could manipulate
  • Some care must be taken with the definitions, but effort has been expended to try to make the dictionary parsing as robust as possible
  • Definitions can include Special Variables (%%…%%))

Precedence (higher number Actions replace any overlapping definitions of lower value Actions):

  1. Folder [then any Sub-Folders]
  2. Page
  3. Item

Help buttons are included in the Action interface for more explanation of each command

4 Actions in this project:

  Register or log in to add tags
FreewayCast

Learn by watching! Screencasts show you how to do it in Freeway. Visit FreewayCast today!