Hi Lou and all,
If you'd like to try making a "website inventory/content map" using
CSE HTML Validator, then please download and install the latest v12 PUBLIC BETA (BETA 5), which I just released here:
http://www.htmlvalidator.com/freebeta/You'll also need this 'user functions' file:
http://www.htmlvalidator.com/user-funct ... entmap.cfgThe 'user functions' file adds this additional functionality. It creates a simple CSV (comma separated value) file with the document location, document title, document keywords, h1 text, and h2 text for every document that is validated. You can configure it differently if you want, but will have to edit the programming in the user functions file.
One important thing you will have to do is to change the hardcoded filename to what you want (where you want the CSV data stored). Currently it is set to "T:\content_map.csv". To do this, simply edit the user functions config file with a text editor and make the change where this code is:
- Code: Select all
$cmap.filename='T:\content_map.csv';
In the
Validator Engine Options, Validator Engine->Config File page, set the 'user functions' file to the user functions config file and check the '
Enable potentially destructive functions' option because this feature will need writeFile() to write the data. If it is not checked, then no data will be written to the CSV file.
Finally, be sure to reload the configuration or restart
CSE HTML Validator for the new 'user functions' file to take effect.
If everything is working well, then every time you validate an HTML/XHTML document (using the editor or the
Batch Wizard), it should append a line to the CSV file. It will just keep appending data, so you'll need to delete or move or rename the file when you want to start a new file.
This is an example of the improved customization ability in
CSE HTML Validator v12. It will let you add your own fields and other information you want. However, not everything may be available, like link checking status. If there is anything that you'd really like to see added, then please let me know.