Download:

Download Global Global Variables (3.78 K) version 0.93 updated 11/02/06
 
NOTICE: A refactoring of this action for FW5 is in progress. The new method will continue to use the same syntax, but allow for other page modifications by other Actions. At present, this Action really wants to be the last Action run on the page, and will 'prevent' other Actions from executing properly if called after this one.
 
Encoded for FW4exp users as well
Fixed issue with opening a 'new' dictionary file and prompt not appearing.

Latest Version Download Global Global Variables (17.70 K) - Unencoded for those who like to tinker.

This may have some bugs still, but it is the version I am using for everyday use.

 

Features in this version:

Ablity to target a specific html item as teh 'scope' of the variablereplacement. Handy for those who reuse content, but need it to change depending on its location.

Global Variables LITE for use in FW3
Download Global Global Variables LITE (2.27 K) version 0.94, unencoded, updated 11/28/06
Uses same name as full version, so will conflict if both are used
Allows simple replacement of page attributes into the fw page on publish (currently supports page-title, page-filename, and folder-name)

Example:

Original Text:
here is some text that might appear anywhere in your site. But wait, if I include a code of [[home_address]] somewhere, it is automatically changed to the value defined through the action.
Can even use coding a 'Definition' in this case: [[ATC_button]]
Maybe its: [[home_email]] I'm after?
Modified Text:
here is some text that might appear anywhere in your site. But wait, if I include a code of 147 North Maple somewhere, it is automatically changed to the value defined through the action.
Can even use coding a 'Definition' in this case:
Maybe it's Click me to Send Email I'm after?

Method of operation:

Action takes the Dictionary File and any local definitions (local definitions take precedence over Dictionary File) and builds a list of information on the Freeway page as soon as possible in the publish cycle. This allows any other Actions to manipulate the information for their own use. This potentially changed information is then used as the new Dictionary file and applied to replace all instances that coincide with array values. This list is then deleted from the Freeway page to prevent clutter and possible corrupted output.
 
Output now includes option for email address that should be 'visible' to other Actions.
 
Future releases will hopefully include an option to build and present other Freeway tags for manipulation like img and other popular tags.

Points of Interest:

  • Use syntax of [[xxx]] anywhere in page and action will replace with definition of code when page is published
  • Will work for urls, images, email, text, JavaScript and anything inside Freeway's output
  • Use for phone numbers, addresses, alerts, any repetitive information
  • Allows for multiline and code to be inserted (normal html/script coding techniques required)
  • Support for external dictionary files
  • [email[keyword||address{||link text optional}]email] format now supported. Creates genuine Freeway tags for other actions to manipulate.
  • Properly 'dirties' page when changing Dictionary File
  • Planned Addition: Ability to link and upload files with the replacements.
  • Does require close attention to dictionary file for proper syntax and spelling
hexheader02
mail
fw5pro
fw5exp
fw4pro
fw4exp

Version
0.93

Global Variables
item1item2item2