Gossamer Forum
Quote Reply
New template: Static
Can anyone give me instuctions on making a new template in static mode in LinkSSQL 2.2.1 .
Quote Reply
Re: [rascal] New template: Static In reply to
To build a new template in static mode, you'd have to edit the Build.pm file, or use a plugin.

I think pagebuilder does that.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] New template: Static In reply to
I'm sure that this can be done without purchasing a PLUGIN!!,
with PROPER INSTRUCTIONS!!


Hopefully someone can provide proper instuctions.
Quote Reply
Re: [rascal] New template: Static In reply to
Hi,

Unfortunatly it can't be done without a plugin. If you are/have access to mod_rewrite... then you could try using;

Code:
RewriteRule ^p/(.*)\.html /cgi-bin/page.cgi?p=$1 [L]

..which would translate;

http://www.domain.com/p/something.html

..into http://www.domain.com/cgi-bin/page.cgi?p=something

Then, you just need to go in via Templates > User Templates, and add a new one called "something.html" ... which the HTML that you want to show Smile

Hope that helps. Pugdog is pretty busy at the moment, so I'm amazed he even made a reply ;)

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!
Quote Reply
Re: [rascal] New template: Static In reply to
Andy loves his rewrite rules! :)

For search engine clarity, and such, I'd use a URL like:

http://www.domain.com/info/something.html
eg:
RewriteRule ^info/(.*)\.html /cgi-bin/page.cgi?p=$1 [L]

Where "info" is your keyword. That let's you add lots of new pages, and is
a good solution for adding in "about", "Contacts", "Privacy", and other
generic, or basic information pages about your site.

If you are running in [SE friendly] dynamic mode, don't use "info" if that is one of your
top level categories, or forget to add a d=1:

RewriteRule ^info/(.*)\.html /cgi-bin/page.cgi?d=1&p=$1 [L]

And, make sure to have an index.htm(l), even if it's just a blank file.

These suggestions can work for both static, and dynamic, modes, depending
on what effects/results you are looking for.

But, as in the original question, to add real static pages, you need to
edit Build.pm, or use a plugin.

A simple routine to build "extra" static pages will be included in the
UltraWidgets Toolbox due out shortly. It will be _simple_ but a way for
you to use the template system to update content, or update headers, by
simply listing the templates you want built in a list. Nothing fancy, just
whatever page.cgi?p= would display, but written to a file.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.