Calling a new template page

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
dirtwaterfox
Regular
Posts: 16
Joined: Wed Apr 20, 2005 8:18 pm
Location: Ottawa

Calling a new template page

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Calling a new template page

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
dirtwaterfox
Regular
Posts: 16
Joined: Wed Apr 20, 2005 8:18 pm
Location: Ottawa

Post 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
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Post Reply