Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Sub Categories using build_directory_field again?

Quote Reply
Sub Categories using build_directory_field again?
Hi,

Im looking into using build_directory_field to create shorter directories and sub directories names.

So far i've setup a custom build_directory_field table name from here:

Admin > Setup > Build Options

calling the table field 'DirectoryName'

using MySQLMan i've added a new column 'DirectoryName' to lsql_Category - varchar(155) - unique.

That's working except all the directories are being placed in the sites root on build Tongue

Checking the post below it looking like i've skipped a step involving Regex (are there any other config files i need to edit?):

http://www.gossamer-threads.com/...orum.cgi?post=186996

Being new to Links and some what to Perl I'd appreciate any simplified assistance. Wink

Thanks,
Charlie



Comedy Quotes - Glinks 3.3.0, PageBuilder, StaticURLtr, CAPTCHA, User_Edit_Profile

Last edited by:

Chas-a: Jul 15, 2003, 11:27 AM
Quote Reply
Re: [Chas-a] Sub Categories using build_directory_field again? In reply to
You should have really created the new field via Database > Category > Properties > Add Field.

However, seeing as you did it the way you have, did you do a 'resync table' on the Category section (Database > Category > Properties > Resync Tables) ?

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: [Andy] Sub Categories using build_directory_field again? In reply to
 
I've deleted the 'DirectoryName' column and re added it with the methord you suggested, went with Pauls suggestion (from the post above) and added ^[\w/]+$ in the regex field also had a go at adding two new categories from the Database > Category > Add area with one nested and ran Resync Tables, no joy...

Building category test ...
Making Directory (0777): '/home/virtual/site1/fst/var/www/html/v2/test' ...Made.
Links: 0
Done

Building category test/test2 ...
Making Directory (0777): '/home/virtual/site1/fst/var/www/html/v2/test2' ...Made.
Links: 0
Done

Frown

i thank you Smile



Comedy Quotes - Glinks 3.3.0, PageBuilder, StaticURLtr, CAPTCHA, User_Edit_Profile

Last edited by:

Chas-a: Jul 15, 2003, 5:05 PM
Quote Reply
Re: [Chas-a] Sub Categories using build_directory_field again? In reply to
Hi Andy,

I noticed in this post:

http://www.gossamer-threads.com/...orum.cgi?post=136896

that it may be related to being hosted on a virtual server (as my site is).

Although i see other sites using LinksSQL that use custom directory names have no issue's with sub directories in the root using this feature, examples:

http://www.archaeologie-online.de/links/2/46/

http://www.theukhighstreet.com/shops/food/meat/

http://www.atoz.com/AtoZ/M/MX/

As im currently testing my LinksSQL install in a private environment im happy to try any suggestions.

thanks for your help,

Charlie



Comedy Quotes - Glinks 3.3.0, PageBuilder, StaticURLtr, CAPTCHA, User_Edit_Profile

Quote Reply
Re: [Chas-a] Sub Categories using build_directory_field again? In reply to
Hi Charlie,

This is what I do - but my setup is quite modified and I use a plugin I wrote to do some manipulation on this so I'm not sure what works with the standard Links setup.

In the Directory field I have the full path to the directory, not just the name of the directory. So, for example, for

http://www.theukhighstreet.com/shops/food/meat/

The directory field is food/meat

Subcategory of food

Laura.
The UK High Street
Quote Reply
Re: [afinlr] Sub Categories using build_directory_field again? In reply to
Thats what i was looking for!

thanks for your help both Andy and Laura Cool



Comedy Quotes - Glinks 3.3.0, PageBuilder, StaticURLtr, CAPTCHA, User_Edit_Profile