The following describes the contents of the $_BatchWizard array. This array is used for Batch Wizard jobs and allows for user customization of Batch Wizard jobs via TNPL Scripting. (New v21.00)

IMPORTANT: This array is set in Validator Engine user functions (as specified in Config Files), and not in Batch Wizard user functions like the $_JOB array is.

$_BatchWizard.report_dup_meta_desc - set to 0 to exclude the target from the 'Duplicate Meta Descriptions' report (New v21.00)

$_BatchWizard.report_dup_page_title - set to 0 to exclude the target from the 'Duplicate Page Titles' report (New v21.00)

See also: getEngineVar()

Example:

This example excludes a target from the 'Duplicate Meta Descriptions' and 'Duplicate Page Titles' reports if the target has a "canonical" link (like <link rel="canonical" href="(url)">).

Remember to use this function in a validator engine user functions file (as specified in Config Files) and not in a Batch Wizard user functions file.

function onStartTag_link() {
 if getAttValueEx('rel',12)=='canonical' {
  if isBatchWizardJob {
   $this_href=convertStringEx(7,'#');
   $can_href=convertStringEx(7,getAttValueEx('href',12));
   if !matchCase($this_href,$can_href) {
    Message(1,MSG_WARNING,'Canonical! this: '+$this_href+', canonical: '+$can_href);
    abortValidation(); // abort validation or comment out
    $_BatchWizard.report_dup_meta_desc=0;
    $_BatchWizard.report_dup_page_title=0;
  }
 }
}