Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Custom category name on static build

Quote Reply
Custom category name on static build
I would like to have category names with small letters

Like:
http://domain.com/cars/ford/mondeo

Instead of:
http://domain.com/Cars/Ford/Mondeo

When Links SQL is built static. How can I manage to do that? A custom category name box on each category could have helped, but..
Quote Reply
Re: [areh] Custom category name on static build In reply to
Hi,

You could add a new field to your "Category" table - via Category > Properties > Properties .. and make a new field - something like:

Category_Lowercase

..CHAR / 255

Then, in Setup > Build Options, set it up as :

build_category_format => Advanced (then in the box, put %Category_Lowercase%)

However, please note - for this to work right - you need to put stuff like this (otherwise it will screw up, and not work right :p):

cars - for Cars/
cars/ford - for Cars/Ford
cars/ford/mondeo - for Cars/Ford/Mondeo

Hope that helps.



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: [areh] Custom category name on static build In reply to
Since you're building static pages, you can use the free StaticURLtr plugin (available in the plugin download area in the admin) to change the case to lowercase. However, the plugin requires Gossamer Links 3.x.

Adrian
Quote Reply
Re: [brewt] Custom category name on static build In reply to
Did you mean Links 2.x perhaps? I though I saw a mod for it, but it required older version.
Quote Reply
Re: [areh] Custom category name on static build In reply to
Nope, I mean glinks 3.x. Links SQL 2.x has a different plugin written by webmaster33 (sorry, can't remember the name).

Adrian
Quote Reply
Re: [brewt] Custom category name on static build In reply to
Hi

I installed it now, but it doesn't seem to make any change.

After install, I edited the module and set this:
Turn on this option if you want to lowercase the category/detailed url. Note that the lowercase operation happens before the replacement occurs.lowercaseNo Yes

Category columns: Full_Name, Name

Is there something else I need to do? I have not put anything in the replacement box, as I just need lowercase, at least for now.
Quote Reply
Re: [areh] Custom category name on static build In reply to
Solved (did reindex and put something in replace box)
Quote Reply
Re: [areh] Custom category name on static build In reply to
hrm, I guess having a replacement shouldn't be a requirement. I'll have to get that fixed.

Adrian