Helix:TOC Keys

From HelixCore

Jump to: navigation, search

TOC Key Naming Convention

Every TOC key must be unique or else a conflict will occur. As every URL also needs to be unique, the simple solution when building a site is to use the page URL for the TOC key (without the extension of course).

http://www.domain.com/page-url.html
TOC Key would be: page-url


General Naming Convention

TOC key naming convention for large sites.

You could use a simplified method of the above for inner pages.

Inner page TOC keys could be named using the first letters of the words in the URL's folder name (adult page) then URL of page separated by dashes (without html extension). All lowercase.

Eg.
http://www.doman.com/stuff/things.html
TOC key is: s-things

http://www.doman.com/stuff/more-things.html
TOC key is: s-more-things

http://www.doman.com/more-stuff/things.html
TOC key is: ms-things


Things to note:
Some websites may use the same page URL in a different category. eg. http://www.doman.com/stuff/things.html
http://www.doman.com/more-stuff/things.html

In this case, do not use the simplified TOC keys. Use the entire URL, exchanging the slash for a dash.

eg. http://www.doman.com/more-stuff/things.html
TOC key is: more-stuff-things

http://www.doman.com/stuff/things.html
TOC key is: stuff-things

See Also

Personal tools