Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How do I create static pages without it creating the new directories?

Quote Reply
How do I create static pages without it creating the new directories?
I am trying to figure out how to make the script generate static html / php pages instead of having it make additional folders as well. Is this something that can be done? I would like it to make pages like www.sitename.com/links/category-name.html/php

Anyone have any suggestions?

Thanks,

Chad
Quote Reply
Re: [Chadzilla] How do I create static pages without it creating the new directories? In reply to
Hi,

Its not too simple. What I would do, is add a new field in Database > Category > Properties - something like:

Clean_Build_URL
CHAR(255)
TEXT

..then, for each category, set that field to whatever you want. For example:

Category Name => My Test
Clean_Build_URL => my-test

...then, in Setup -> Build Options, change:

build_category_format

...to "Other", and then the value as:

Code:
%Clean_Build_URL%

This should work for you (although it won't build them like .html/.php - that could be done with a bit of custom work, but not something I would wanna do over the forum, as it can be quite involved =))

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!