Loading...
 
Skip to main content

Features / Usability


Displaying a wiki page without header/sidebars

I'm in the process of switching a site over to Tikiwiki and I'm having issues with some features I want. I basically need a way to link to and view a wiki page without the header and sidebars.

On the old site I made it so that users can mouse over a button (phone numbers) in the header which displays a box below that contains a table full of contact info for other employees and departments where I work. I can easily implement this same functionality into a custom header in tikiwiki but I would need to make my own html file that contains the data.

I would like to be able to use a wiki page so that other site users can edit it and have the changes work instantly.

I'm even toying with the option of using Shadowbox for this purpose, but I still need a way to link to a page without that pesky header and sidebars. Right now the shadowbox basically opens the entire tiki site within itself instead of just the page I want. Any help is much appreciated. I'm probably just being stupid and the answer should be obvious.

/edit I suppose I could try and learn how to pull the data for the page from mysql and display it in my own page. So much learning though!

/edit2 I found tiki-index_p.php which I have copied and am modifying. It displays the page but the header is still inside so I have to figure out how to get rid of that. Don't you just love idiots like me who try to reverse engineer stuff and modify till it works rather than learn the proper way? :P

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



Brilliant!!

Both work on 9.3

Thanks

T