Personal notes on Implementing autoPublishing mechanism to custom DB table within modx3.

A need. Pre-requisite and assumptions.1. MODX3 installation2. Custom database table inside the MODX installation, which is created from modx database schema. I used migx’s package manager to create/modify one.3. Let’s say that the class name of this dbtable is /MyDB/Model/Mydb3. A custom table schema for modx to construct the table and associated code structure needs the following fields added to the schema. Note the data type for those date fields are all datetime. and not int(20) like original siteContent table fields for page resource. The difference will be dealt in the implementation code. 4. The auto-publish mechanism will mimic the existing code for modResource autopublishing mechanism. This reference code lives …