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 18254 Feb 20, 2001, 6:35 AM
Post Re: Different category template for different category
Stealth 17792 Feb 20, 2001, 8:26 AM
Thread Re: Different category template for different category
Alex 17841 Feb 20, 2001, 10:30 AM
Thread Re: Different category template for different category
aculiuc 17898 Feb 23, 2001, 7:49 AM
Thread Re: Different category template for different category
Alex 17762 Feb 23, 2001, 9:26 PM
Thread Re: Different category template for different category
aculiuc 17732 Mar 2, 2001, 9:16 AM
Thread Re: Different category template for different category
Alex 17753 Mar 2, 2001, 9:22 AM
Thread Re: Different category template for different category
funodie 17614 Mar 26, 2001, 10:05 AM
Thread Re: Different category template for different category
Alex 17603 Mar 28, 2001, 12:31 PM
Thread Re: Different category template for different category
funodie 17628 Mar 28, 2001, 2:15 PM
Post different layout for 'subcategory-lists'
der_geizige 17580 Mar 28, 2001, 11:53 PM
Thread Re: Different category template for different category
Alex 17652 Mar 29, 2001, 12:11 PM
Thread Re: Different category template for different category
carfac 17534 Apr 2, 2001, 11:02 AM
Thread Re: Different category template for different category
Alex 17466 Apr 2, 2001, 11:47 AM
Thread Re: Different category template for different category
carfac 17494 Apr 2, 2001, 1:08 PM
Thread Re: Different category template for different category
Alex 17346 Apr 6, 2001, 8:22 AM
Thread Re: Different category template for different category
Evoir 17236 May 20, 2001, 9:16 AM
Thread Re: Different category template for different category
pugdog 17191 May 20, 2001, 9:33 AM
Thread Re: Different category template for different category
Evoir 17223 May 20, 2001, 10:22 AM
Thread Re: Different category template for different category
Stealth 17152 May 20, 2001, 3:39 PM
Thread Re: Different category template for different category
Evoir 17212 May 20, 2001, 4:40 PM
Thread Re: Different category template for different category
pugdog 17172 May 20, 2001, 5:55 PM
Thread Re: Different category template for different category
Evoir 17170 May 20, 2001, 6:34 PM
Post Re: Different category template for different category
pugdog 17182 May 20, 2001, 7:43 PM
Thread Re: Different category template for different category
BeaverheadRiver 5679 May 21, 2001, 1:14 PM
Thread Re: Different category template for different category
Evoir 5702 May 21, 2001, 2:28 PM
Post Re: Different category template for different category
BeaverheadRiver 5601 May 22, 2001, 5:20 AM
Thread Re: Different category template for different category
Alex 5716 May 22, 2001, 12:00 PM
Post Re: Different category template for different category
Evoir 5701 May 22, 2001, 10:10 PM
Thread Re: Different category template for different category
Evoir 5249 Jul 26, 2001, 10:17 AM
Post Re: Different category template for different category
pugdog 5279 Jul 26, 2001, 11:28 AM
Post Re: [Alex] Different category template for different category
aprillougheed 4842 Mar 16, 2002, 5:43 AM
Post Re: Different category template for different category
PelsLvr 5261 Jul 23, 2001, 12:05 PM
Post Re: Different category template for different category
msdq 17292 Apr 25, 2001, 1:25 PM