Loading...
 
Skip to main content

Features / Usability


Re: Displaying a wiki page without header/sidebars

I figured it out. Maybe this will help someone else :P

Make a copy of tiki-index_p.php called tiki-index_page.php in the main folder.
Make a copy of tiki-index_p.tpl called tiki-index_page.tpl in the templates folder.

Open up tiki-index_page.php in your editor of choice and modify the second last line in to say $smarty->display("tiki-index_page.tpl");

Open up header.tpl which is inside the templates folder and copy all the text.

Open up tiki-index_page.tpl and replace right at the top with the copied contents of the header.tpl file.

Go through the header.tpl text you just pasted and remove


Obviously, make sure you're working with the renamed files or save them to the site with the new names..

Now a link with the following info will open a shadowbox which is 820px wide and displays the contents of the wiki page titled "Phone Numbers" without the header included.

http://domain.com/tiki-index_page.php?page=PhoneQuestion Numbers" rel="shadowbox;width=820;"

There are other links in there that need to be changed as well, but I haven't done them yet. For example, in the shadowbox there's a refreshbutton, but when clicked it links back to tiki-index_p.php and the header comes back. :P