Skip to content

Instantly share code, notes, and snippets.

Created May 14, 2013 01:35
What would you like to do?
<page-action name="com.wdstudio.page_id" title="PageID">
<action-version version="0.1">
Copyright 2013 Walter Lee Davis
Add an ID to the body tag.
<action-text name="bodyId" title="Body ID" />
<action-checkbox name="enable" title="Add the ID" default=yes />
function fwAfterStartBody(){
var body = fwDocument.fwTags.fwFind('body');
if(body && fwParameters.enable.fwBoolValue) = fwQuote(fwParameters.bodyId.fwValue);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment