PermitTempPdf and Conditional Shortcode

PermitTempPdf Shortcode

The use of permittemppdf is fairly straight forward.

The shortcode has two different arguments it can accept to change the information it will output: permit and vehicle.

 

Permit

Shortcode format:

The options to fill the blank space are:

Expiry will show a snippet of html that is not editable because of the complexity of the expiry information.

 

Vehicle

Shortcode format:

The options to fill the blank space are:


Conditional Shortcode

The conditional shortcode is somewhat complex.

It will only work with shortcodes that have been set it up for. Right now, that only includes the permittemppdf shortcode.

The formats that can be used are as follows:

This will test the value of ******. If the value is a success, then it will show the CONTENT.

The options for var currently are:

For example, to test if there are hours on a temp permit, the value would be: var=permittemp.hours

This is the variable name that has been defined (permittemp) and the case-sensitive column to return the information of.

The second argument "test" can take the following values:


Revision #2
Created 15 May 2024 08:23:17
Updated 15 November 2024 11:52:46 by Nicole