Skip to content

Instantly share code, notes, and snippets.

@stewartf
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stewartf/df7b3ec370a0c87f2369 to your computer and use it in GitHub Desktop.
Save stewartf/df7b3ec370a0c87f2369 to your computer and use it in GitHub Desktop.
folder-action persistent parameters
<folder-action name="ParamTest">
<action-text name="PageList" var/>
<action-javascript>
function fwBeforePublish()
{
fwParameters["PageList"].fwValue = "";
}
function fwAfterEndHTML()
{
fwParameters["PageList"].fwValue = fwParameters["PageList"].fwValue + "\n" + fwPage.fwFileName;
fwAlert(fwParameters["PageList"].fwValue);
fwDocument.pageList = fwDocument.pageList + "\n" + fwPage.fwFileName;
fwAlert(fwDocument.pageList);
}
</action-javascript>
</folder-action>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment