Can anyone give me instuctions on making a new template in static mode in LinkSSQL 2.2.1 .
Jan 11, 2005, 7:28 AM
Veteran / Moderator (6956 posts)
Jan 11, 2005, 7:28 AM
Post #2 of 5
Views: 2436
Jan 13, 2005, 1:41 AM
Veteran / Moderator (18436 posts)
Jan 13, 2005, 1:41 AM
Post #4 of 5
Views: 2406
Hi,
Unfortunatly it can't be done without a plugin. If you are/have access to mod_rewrite... then you could try using;
..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
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!
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

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!
Jan 13, 2005, 2:27 AM
Veteran / Moderator (6956 posts)
Jan 13, 2005, 2:27 AM
Post #5 of 5
Views: 2401
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.
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.