The code guide provides code officers information about how to enforce and inspect an ordinance. The content of the current code guide came from Greg Bachy (sp?) in Swissvale during meetings with officers back in 2017-2018 time frame.
How is it structured?
The db table codeelementguide contains 8 fields, the two most important of which are enforcementguidelines and
inspectionguidelines which contain text/HTML concerning how to inspect or enforce an ordinance. We render render these fields in the browser like other text fields with an element except we set the attribute escape="false" so whatever HTML tags that are in the guide text get interpreted by the browser as actual structural instructions .
Each guide entry also has a category and subcategory which, interestingly
What is the code guide?
The code guide provides code officers information about how to enforce and inspect an ordinance. The content of the current code guide came from Greg Bachy (sp?) in Swissvale during meetings with officers back in 2017-2018 time frame.
How is it structured?
The db table element except we set the attribute
codeelementguide
contains 8 fields, the two most important of which areenforcementguidelines
andinspectionguidelines
which contain text/HTML concerning how to inspect or enforce an ordinance. We render render these fields in the browser like other text fields with anescape="false"
so whatever HTML tags that are in the guide text get interpreted by the browser as actual structural instructions .Each guide entry also has a
category
andsubcategory
which, interestingly