The cookie-cat website (this website) is a normal WordPress website with three custom content types:
cookie-category – Cookies
The metadata for each cookie includes:
- title = cookie name – this is a simplified version of the cookie name
- cookie category – 1,2,3,4
- description – the “excerpt” is extracted to the mapping file. The rest of the body contains other miscellaneous notes about the cookie
- Session cookie – checkbox if it’s a session cookie
- Duration – duration of the cookie ?if permanent
View the table of known cookies
cc_plugin – Plugins
- title = plugin name
- plugin name – the external name of the plugin e.g. “google-analytics-for-wordpress”
- plugin type – WordPress plugin, WordPress theme, etc
- custom plugin URL – if not WordPress.org
View the table of known plugins
cc_mapping – Mapping of cookies to plugins
- title = cookie used by plugin – generated title
- body – notes about the mapping. e.g. Only shown to anonymous users
- cookie ref – the ID of the cookie_category instance
- plugin_ref -the ID of ?the cc_plugin instance
- 3rd party – whether or not the cookie is delivered by a 3rd party site.
View the mapping of cookies to plugins
Programming notes
The custom content types are created by a custom plugin called cookie-category which uses oik APIs to
- reduce the programming effort to register the content types, fields (meta data)
- display the data on the admin pages
- display the data on the sharp end – using the [bw_table] shortcode and theming functions
In the current version of the site there aren’t any user friendly forms for unregistered users to add cookies, plugins or mappings. This is work in progress. Only registered users can create the content using standard dashboard functions.