Page 1 of 1

Calling a new template page

Posted: Thu Dec 08, 2005 7:20 pm
by dirtwaterfox
I want to set some static content and I would like to create a new .tpl page for it. By adapting my index.tpl page, I can retain the styles and include all the plug-ins in the sidebar.

I can't seem to figure out where to insert my hack so that the link calls the new .tpl page.

Using the static_page plug-in doesn't suit, since it looks like it would be in the sidebar, and the desired links have to be in the banner.

I'm thinking it should be pretty straightforward?

Mike

Re: Calling a new template page

Posted: Thu Dec 08, 2005 8:43 pm
by garvinhicking
I'm afraid I don't really know what you want to do?

It seems as if you DO want to use a staticpage, with it's own special template .tpl file?!

Maybe you can make a screenshot of how your page currently looks, and what you want to achieve. Or describe it very detailed. :-)

Regards,
Garvin

Posted: Thu Dec 08, 2005 9:24 pm
by dirtwaterfox
Maybe I'm confused. I'm thinking that the static_pages plug-in will have the page names and links in the right sidebar. I want them at the top, not at the right like the calendar.

The URL is http://www.oregoncatalyst.com. The rollovers work. They're the ones under the banner, like "Contact Us".

Here is a screen shot.

Image

Mike

Posted: Fri Dec 09, 2005 2:50 am
by judebert
You can accomplish this in one of two easy ways.

First, you could modify your styles.css to use any of the many CSS tab bar styles for the static page sidebar. (Google up "CSS tab bar" to see what the CSS looks like.) If your theme doesn't uniquely identify the static page sidebar, you'll have to modify its sidebar.tpl to correct that problem.

The other option is to copy the links from the sidebar into an HTML nugget, which you could easily place in the page header. Just format the HTML as a tab bar. Of course, that wouldn't update when you added new static pages, but it would get the job done with a minimum of fuss.