A mechanism for adding custom pages
Submitted by patdunlavey on Thu, 04/06/2006 - 11:21.
AdvoKit Users
Would you like to be able to have your own links in the sidebar and to be able to show your own content in the main display area of AdvoKit? You can!

Here's how to create a custom page:
- Create a HTML file with the content that you wish to show in the main display panel of Advokit. (Important - use the ".html" extension, ".htm" won't work.)
- Put a copy of that file into the ../templates/raw/ directory of your Advokit installation.
Here's how to add links to the sidebar:
- Edit the template file named "custom_sidebar_section.tpl". You just need to remove the comments "{{*" and "*}}" to activate this template. It will be displayed as a new section in the sidebar immediately above the "My Account" section. Here is a sample
<h4 class="sidebarsectionhead">The Issues</h4>
<p class="alist">
<a href="index.php?display=CustomHtml&heading=Eight Talking Points&html_name=talkpts">
Eight Talking Points</a>
<br>
<a href="index.php?display=CustomHtml&heading=Spin&html_name=spin">The Spin</a>
</p>The first line causes a section header to be displayed with the name "The Issues". Below that are the links, separated by breaks (<br>).
- You can put any kind of link you want into this code, but note in this example the link to a display called "CustomHtml". This is how you can have your HTML page displayed inside AdvoKit. The "heading" argument determines what will appear as a title for this display in the header area. The "name" argument is the name of your HTML file, minus the ".html" extension.
That's all there is to it!
