Gossamer Forum
Home : Products : Gossamer Links : Pre Sales :

Re: Different category template for different category

Quote Reply
Re: Different category template for different category In reply to
Actually, it might be possible to expand the "category.html" idea, to be a template set.

A few changes in the core links logic would have to be made, but basically it would follow the same idea:

use default template set
load current category
if current category has overriding template set, use that
if no overriding template, check parent. [loop until 'root']
use most currently selected set

If you have deep categories, this has a performance penalty.

To improve performance, one of two things could be done. A separate "templates" table could be maintained, such that only one lookup was done for each category, but this look up was done each and every time, so you loose the "speed" of having the default template in the Category record itself (but you have a spiffy little editor to quickly update the template sets for the category table, so it might be a good trade off), _or_ you have a routine such that when you set a "parent" category to have a different template, a routine automatically adjusts all the chidren to use the same template. This keeps the speed of having the template set kept in the current category record, at the expense of having to make sure every category had the non-default template set (ie: no relational inheretence from the parent). Two options would be needed to be available on such an update:
1) - update _all_ children
2) - update all children with no overriding template already set
(or, with a template set matching the current override being changed)
3) - update only this category

Of course, for convenience, additional options to modify the "update" statement could be added, but those are the basics.

Sounds sort of complicated, but actually, depending on the next release, it might be fairly simple to implement as a "standard" option in the subsequent release.




PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Subject Author Views Date
Thread Different category template for different category kelvin74 16142 Feb 20, 2001, 6:35 AM
Post Re: Different category template for different category
Stealth 15720 Feb 20, 2001, 8:26 AM
Thread Re: Different category template for different category
Alex 15767 Feb 20, 2001, 10:30 AM
Thread Re: Different category template for different category
aculiuc 15826 Feb 23, 2001, 7:49 AM
Thread Re: Different category template for different category
Alex 15690 Feb 23, 2001, 9:26 PM
Thread Re: Different category template for different category
aculiuc 15663 Mar 2, 2001, 9:16 AM
Thread Re: Different category template for different category
Alex 15681 Mar 2, 2001, 9:22 AM
Thread Re: Different category template for different category
funodie 15541 Mar 26, 2001, 10:05 AM
Thread Re: Different category template for different category
Alex 15531 Mar 28, 2001, 12:31 PM
Thread Re: Different category template for different category
funodie 15542 Mar 28, 2001, 2:15 PM
Post different layout for 'subcategory-lists'
der_geizige 15511 Mar 28, 2001, 11:53 PM
Thread Re: Different category template for different category
Alex 15566 Mar 29, 2001, 12:11 PM
Thread Re: Different category template for different category
carfac 15463 Apr 2, 2001, 11:02 AM
Thread Re: Different category template for different category
Alex 15393 Apr 2, 2001, 11:47 AM
Thread Re: Different category template for different category
carfac 15421 Apr 2, 2001, 1:08 PM
Thread Re: Different category template for different category
Alex 15275 Apr 6, 2001, 8:22 AM
Thread Re: Different category template for different category
Evoir 15142 May 20, 2001, 9:16 AM
Thread Re: Different category template for different category
pugdog 15122 May 20, 2001, 9:33 AM
Thread Re: Different category template for different category
Evoir 15155 May 20, 2001, 10:22 AM
Thread Re: Different category template for different category
Stealth 15082 May 20, 2001, 3:39 PM
Thread Re: Different category template for different category
Evoir 15134 May 20, 2001, 4:40 PM
Thread Re: Different category template for different category
pugdog 15094 May 20, 2001, 5:55 PM
Thread Re: Different category template for different category
Evoir 15095 May 20, 2001, 6:34 PM
Post Re: Different category template for different category
pugdog 15108 May 20, 2001, 7:43 PM
Thread Re: Different category template for different category
BeaverheadRiver 4989 May 21, 2001, 1:14 PM
Thread Re: Different category template for different category
Evoir 5004 May 21, 2001, 2:28 PM
Post Re: Different category template for different category
BeaverheadRiver 4921 May 22, 2001, 5:20 AM
Thread Re: Different category template for different category
Alex 5025 May 22, 2001, 12:00 PM
Post Re: Different category template for different category
Evoir 5019 May 22, 2001, 10:10 PM
Thread Re: Different category template for different category
Evoir 4564 Jul 26, 2001, 10:17 AM
Post Re: Different category template for different category
pugdog 4598 Jul 26, 2001, 11:28 AM
Post Re: [Alex] Different category template for different category
aprillougheed 4161 Mar 16, 2002, 5:43 AM
Post Re: Different category template for different category
PelsLvr 4577 Jul 23, 2001, 12:05 PM
Post Re: Different category template for different category
msdq 15220 Apr 25, 2001, 1:25 PM