Gossamer Forum
Home : Products : Gossamer Links : Discussions :

non-default template question

Quote Reply
non-default template question
Hi there....

I have built some additional pages for my Links installation... want them to have the same "look and field"...

This is going to sound like a silly question but how do I "build" these pages? I've hunted around and can't find a way to actually use them?

Thanks,

Paul
Quote Reply
Re: [pstewart726] non-default template question In reply to
Hi Paul,

You should look at this plugin I am not sure if it is working on glinks because it was created years ago.

But with custom pages, we can use mod_rewrite to display them as static pages.

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] non-default template question In reply to
Thank you - I had assumed that if I created a template page that there was a reasonably simple way to statically publish it.... that's kinda too bad that I have to possibly purchase a plugin ... guess I'll build something myself as I only need this for a couple of pages at this point.

Many thanks!

Paul
Quote Reply
Re: [pstewart726] non-default template question In reply to
So, use the mod rewite for those pages?

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] non-default template question In reply to
Hmmm... do you call it via page.cgi or something to generate it? I create the template but can't find the "final version" any way I try? I'm familiar with mod_rewrite - just need to know the "original" URL first....

Many thanks for your input...;)

Paul
Quote Reply
Re: [pstewart726] non-default template question In reply to
For example, "page.cgi?p=privacy", glinks will looks for template name privacy.html and the privacy.html template has everything you want to display. You can use the template structure or just save the static html page in the template folder.

Hope that helps!

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] non-default template question In reply to
Perfect! thank you again!

Paul
Quote Reply
Re: [pstewart726] non-default template question In reply to
Hi,

Yup, mod_rewrite would do it:

Code:
RewriteRule ^foo.html$ /cgi-bin/page.cgi?p=foo [L]

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!