Home » Documentation » Customization » Custom Pages

Custom Pages

Custom pages are available starting with version 1.0

In addition to the theme files that are user editable to allow you to customize your ProofBuddy site you also have the ability to create custom pages that can access a series of PHP data classes and sit within the same style as the rest of your site.

As an example of a custom theme file we’re going to create a simple help page. 

To start login to ProofBuddy with your admin username and password.  Click on the Options tab followed by the Theme sub tab.   You should see a list of the available themes that you have available.  Note that if you are using the Basic White theme you will need to create a copy of the theme first to edit.  It’s important that the original Basic White theme stays unedited.

Click on the Edit button followed by the Files button and towards the bottom of the screen that follows you will see a series of buttons like in the following image.

Click on the New File button and you will be prompted to enter a name for your new file.  Enter ‘help.tpl’ and press Create.  You will now have a file named help.tpl in the file list.  Click on the newly created file to edit.

Clicking on help.tpl will take you to the edit file page which looks like the following.

In the text box you can enter any HTML or PHP code that you would like to include on your custom pages.

Headers & Footers
By default the same header and footer that appear throughout your ProofBuddy site will also appear on your custom pages.  If you do not want the header to appear you can put <!–noheader–> anywhere in the edit box and the header will not display.  If you do not want the footer to display insert <!–nofooter–>.  And if you do not want either you can either use both strings or <!–noheaderfooter–>

Creating the link
To link to a custom page you will create a link to index.php?op=custom&page=pagename.tpl so to link to the help page we are creating the link would be <a href="index.php?op=custom&page=help.tpl">Help Page</a>

You can also add &noheader=anyvalue, &nofooter=anyvalue, or &noheaderfooter=anyvalue to the link to not show the theme header, footer, or both respectively.  Note that anyvalue can be anything, but it has to be something.  It will probably be easier for you to use the <!–noheader–>, <!–nofooter–>, and <!–noheaderfooter–> strings described above in your file instead of using these link additions.

Comments

Comment RSS feed

One Response to “Custom Pages”


[...] features in 1.0 that I’m really excited about, but that hasn’t gotten much exposure, is custom pages.  With custom pages you’ll be able to add a page within your ProofBuddy site that stays [...]

 

Leave a Reply