Gossamer Forum
Home : Products : Gossamer Links : Discussions :

[ BUG ] Detailed URL's, using "advanced"

Quote Reply
[ BUG ] Detailed URL's, using "advanced"
Hi,

I'm trying to setup a site, with Setup > Build Options, and setting "build_detail_format" as "Advanced", and then in that field - putting: %LinkOwner%_%SKU%.html

However, this makes detailed_url's like:

http://www.site.com/Detailed/beauty_147735.html_2726643671.html

The bit in red is the LinkID (which we don't want to use =))

I could easily get around this with a mod_rewrite, and global - but really, a fix would be better - as they don't wanna go down the mod_rewrite route :(

TIA

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] [ BUG ] Detailed URL's, using "advanced" In reply to
It's not a bug, but a requirement that the link ID be in the string as it ensures that the filename is unique. Maybe I'll add a check to see if another unique column was used in the format and not add it if there is one used.

Adrian
Quote Reply
Re: [brewt] [ BUG ] Detailed URL's, using "advanced" In reply to
Hi,

Thanks for the reply :)

Interesting - I'll change the SKU field to unique, as it should be :)

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: [brewt] [ BUG ] Detailed URL's, using "advanced" In reply to
Hi,

Mmm.. for some reason, it won't let me set the SKU field as a unique field :/

Also, regarding:

Quote:
Maybe I'll add a check to see if another unique column was used in the format and not add it if there is one used.

That would be great :)

Basically, this "import" is done from a datafeed import, which basically increases the LinkID each time the import is done. I'm trying to get around it by using LinkID-SKU.html, which will remain the same :)

TIA

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: [brewt] [ BUG ] Detailed URL's, using "advanced" In reply to
Hi,

Mmm..still can't get this to work :(

Where is the $DB->table('Links')->detailed_url( $hit->{ID} ) bit processed?

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: [brewt] [ BUG ] Detailed URL's, using "advanced" In reply to
BTW, found the code in admin/Links/Table/Links.pm detailed_url() .. but can't work out what I need to change, so it doesn't look a unique field (the SKU field *is* unique - so there won't be a problem with that).

TIA

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!