Home

WebWorks Publisher Cookbook code samples

Examples:

107 108 109 110 111 112 113

Macros


      

      

      

      

      

      

      

      

      

      

      

      

      

      

      

      

      
Example 107
@WRITELOG(Value of the title attribute is currently 
$GET_ATTR($PAGE;,title););

      

      

      

      

      

      

      

      

      
Example 108
@EXECUTE("C:\Program Files\jh1.1\javahelp\bin\
jhindexer" $GET_GLOBAL(searchfiles););\

      

      

      

      

      

      

      

      

      

      

      

      

      

      

      

      

      
Example 109
$IF_EQUAL($GET_ATTR($PAGE;,title);,The Wind in the Willows,c,d);

      

      
Example 110
$IF_COUNTER_EXISTS(counter_name,c,d);
Example 111
@SET_ATTR(title);
Example 112
$IF_EQUAL($FRAMESTYLENAME;,heading 1,\
<h1>$DATA</h1>,\
<h2>$DATA</h2>);

      

      
Example 113
$IF_EQUAL($FRAMESTYLENAME;,chapter_titleTOC,\
$GET_GLOBAL(tocpara)["Chapter [0-9]+: ",""]["[ \t\r\n]+|<br>|&#32;", " "]["[ ]+$", ""];,\
$GET_GLOBAL(tocpara)["[ \t\r\n]+|<br>|&#32;", " "]["[ ]+$", ""];

Top of page

Copyright © 2001 Scriptorium Publishing Services.
These code samples correspond to examples provided in The WebWorks Publisher Cookbook. Cookbook owners may use this code for their WebWorks Publisher projects.