Following the excellent example of using the database in the Grid Format - and a big thank you to all the developers of that for showing the way. I have developed a BETA test version of Collapsed Topics for Moodle 2.2 (attached) which has all the different layouts in terms of 'No Toggle, No Topic X, No Section Number' that have been requested in the past and have previously been requested and had to be changed by a code alteration.
Now when placed in 'editing' mode you can select the layout you want which is then stored in the database on a per course basis.
I would greatly appreciate feedback as this is my first adventure with Moodle's DB and I'm not sure I've got the permissions right such that only course editors can change the layout. The code is BETA so please do not try on a production site. I have included details of the table I create in the readme.txt in case uninstallation fails.
If all goes well, I indtend to concatenate this format with Collapsed Weeks so that I can cut my configuration management workload in half. And add more 'layouts' as have been requested in the past.