Theo Todman's Web Page - Notes Pages
Website Documentation
Website Generator Documentation - Site Map
(Text as at 03/07/2020 22:09:07)
- This document covers1 the procedures for generating the three views of my Site Map, namely:-
→ Alphabetic List
→ List by Sub-topic
→ List by Sub-topic using Javascript
- It isn’t a complete site map; just edited highlights from a manually-created list.
- Also, it’s not automatically generated, though the three views above are generated from the same data.
- I found that I couldn’t generate the JavaScript from within MS Access as – somehow – the Javascript code interfered with the VBA. Maybe there’s a way round this, but when I first created these pages in 09Q1 I couldn’t find one, so used Excel instead.
- Nor, presumably, could I in 14Q1 when I did the last update. Now (in 20Q2) I can’t remember how it’s supposed to work – hence this documentation!
- Another – admittedly fairly easily fixable – defect is that these pages don’t use CSS, so there’s lots of hand-crafting.
- The Excel workbook is the “Site Map” tab of my time-recording Workbook.
- The instructions to generate the HTML pages are in the following cells:-
- H1: SiteMapAlpha - Sort Rows between yellow and bottom green (exclusive) on Col C, and select for copying between Green rows (inclusive)
- J1: SiteMapTopic - Sort Rows between yellow and bottom green (exclusive) on Col B, and select for copying between Green rows (inclusive)
- T1: SiteMapTopic_J - Sort Rows between yellow and bottom green (exclusive) on Col B, and select for copying between Green rows (inclusive)
- Various cells contain commonly used strings, referred to passim. I’ve ignored the cells that are concatenations of other cells:-
- Column G:-
- G5: The HTML tags for the standard width and bgcolor of the cells in the “link” column of the tables.
- G11: Closing hyperlink tag.
- Column H:-
- H4: Paragraph opening tags for table rows.
- H6: “→” encoded.
- H7: Opening hyperlink tag.
- H8-H10: Three tags to define the window hyperlinked results are displayed in (Main_Text, Top and Blank).
- H11: End table-cell marker.
- H12: Definition of the “Comments” cells.
- H14: Table-row end-tags.
- H15: “Last Updated” page-footer.
- R18: The footnote appearing in SiteMapTopic_J explain the use of Javascript.
- Otherwise, the columns are used for the following purposes:-
- Entry sequence: ignored?
- Structure Number: See below
- Title: Title of page as it appears in the Topic Structure
- Link: Directory link (from the site root directory) used to generate the HTML hyperlinks to the relevant pages.
- Page: No idea! Almost all rows have “New” in them. Not sure if this is used.
- Ign: Means that this row has no hyperlink, but is just used to group items below it in the Topic structure.
- Comment: The narrative that appears against the item in the HTML table.
- Data for SiteMapAlpha:-
- Row 15 and above: various standard strings used in Excel concatenations to generate the HTML code.
- H16: HTML for Page Header.
- H18: HTML for Table Header.
- Row 19 and below: Generated strings making up the HTML code for the table rows.
- Bottom Row: HTML for Table and Page Footers
- Null column (spacer)
- Data for SiteMapTopic:-
- J16: HTML for Page Header.
- J18: HTML for Table Header. Link to H18.
- Row 19 and below: Generated strings making up the HTML code for the table rows.
- Bottom Row: HTML for Table and Page Footers. Link to corresponding cell in row H.
- Interrogates Structure Number: Generates “1” if an integer, else “0”
- Interrogates Structure Number: Generates “1” if an integer or one decimal, else “0”
- Interrogates Structure Number: Generates “1” if fewer than 3 decimals, else “0”
- Sums the values determined in Cols K-M in this row and all rows above. This incremental number is used to generate the HTML IDs used by the Javascript of the form id="yx", suffixed with this value
- Flag: “Yes” or blank. Used in column Q to generate a Javascript opening toggle if set to “Yes”.
- Flag: “Yes”, “2-Yes” or blank. Used …?
- Formula using column P to add 1st-level (“Yes”) and 2nd-level (“2-Yes”) Javascript closing tags for the pop-up lists. They are on the row following the end of such lists (when the sheet is sorted in topic order).
- Data for SiteMapTopic_J:-
- T2: HTML for Page Header. Link to J16.
- Rows 3 – 17: Javascript header.
- T18: HTML blank row (not sure why needed).
- Row 19 and below: Generated strings making up the HTML / Javascript code for the expandable structure.
- Bottom Row: HTML for Page Footer.
- Structure Number: This is a decimal number providing topic groupings and (sub-)(sub-)groupings.
- The Javascript – which I found on the web and don’t fully understand – is:-
- My intention is to replace this with – predominantly – Access tables, queries and VBA once I know what it’s doing!
In-Page Footnotes:
Footnote 1:
- Or will do, once it has been written!
Note last updated |
Reference for this Topic |
Parent Topic |
03/07/2020 22:09:07 |
1301 (Website Generator Documentation - Site Map) |
None |
Summary of Notes Citing This Note
To access information, click on one of the links in the table above.
Text Colour Conventions
- Blue: Text by me; © Theo Todman, 2024