THL Toolbox > Developers' Zone > Web Development > Creating a THL Template with All Wiki-Content
When you want to create a THL page that is a separate PHP file but with completely wiki-based content except for the side-column, a slightly different approach is necessary than that used by the teaser boxes. This is often necessary for pages that represent a tab in the nav bar. For the tab to be properly highlighted, the body tag of the page needs to have a class value set to the same class value as the highlighted tab. Thus, the collections home page has a body tag of:
When the text in the central main div is to be imported from a wiki, do the following:
- Keeping the <div id="content"> and its child <div class="shell-1">, add another class "wikibody" to the "shell-1".
- Within the "shell-1", add an <a> tag with the href attribute set to the wiki public URL starting with "/access/…".
- To that same <a> tag, add a "wiki" class.
The example code is from http://staging.thdl.org/reference/dictionaries/tibetan-dictionary/dictionary-edit-manual.php
<!-- begin content --> <div id="content"> <div class="shell-1 wikibody"> <a href="?wiki=/access/wiki/site/c06fa8cf-c49c-4ebc-007f-482de5382105/tibetan%20historical%20dictionary%20editorial%20manual.html" class="wiki" ></a> </div> </div><!-- end content -->