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 15799 Feb 20, 2001, 6:35 AM
Post Re: Different category template for different category
Stealth 15382 Feb 20, 2001, 8:26 AM
Thread Re: Different category template for different category
Alex 15416 Feb 20, 2001, 10:30 AM
Thread Re: Different category template for different category
aculiuc 15488 Feb 23, 2001, 7:49 AM
Thread Re: Different category template for different category
Alex 15353 Feb 23, 2001, 9:26 PM
Thread Re: Different category template for different category
aculiuc 15324 Mar 2, 2001, 9:16 AM
Thread Re: Different category template for different category
Alex 15342 Mar 2, 2001, 9:22 AM
Thread Re: Different category template for different category
funodie 15204 Mar 26, 2001, 10:05 AM
Thread Re: Different category template for different category
Alex 15195 Mar 28, 2001, 12:31 PM
Thread Re: Different category template for different category
funodie 15205 Mar 28, 2001, 2:15 PM
Post different layout for 'subcategory-lists'
der_geizige 15173 Mar 28, 2001, 11:53 PM
Thread Re: Different category template for different category
Alex 15230 Mar 29, 2001, 12:11 PM
Thread Re: Different category template for different category
carfac 15126 Apr 2, 2001, 11:02 AM
Thread Re: Different category template for different category
Alex 15055 Apr 2, 2001, 11:47 AM
Thread Re: Different category template for different category
carfac 15083 Apr 2, 2001, 1:08 PM
Thread Re: Different category template for different category
Alex 14936 Apr 6, 2001, 8:22 AM
Thread Re: Different category template for different category
Evoir 14804 May 20, 2001, 9:16 AM
Thread Re: Different category template for different category
pugdog 14783 May 20, 2001, 9:33 AM
Thread Re: Different category template for different category
Evoir 14816 May 20, 2001, 10:22 AM
Thread Re: Different category template for different category
Stealth 14744 May 20, 2001, 3:39 PM
Thread Re: Different category template for different category
Evoir 14797 May 20, 2001, 4:40 PM
Thread Re: Different category template for different category
pugdog 14758 May 20, 2001, 5:55 PM
Thread Re: Different category template for different category
Evoir 14760 May 20, 2001, 6:34 PM
Post Re: Different category template for different category
pugdog 14772 May 20, 2001, 7:43 PM
Thread Re: Different category template for different category
BeaverheadRiver 4855 May 21, 2001, 1:14 PM
Thread Re: Different category template for different category
Evoir 4870 May 21, 2001, 2:28 PM
Post Re: Different category template for different category
BeaverheadRiver 4789 May 22, 2001, 5:20 AM
Thread Re: Different category template for different category
Alex 4893 May 22, 2001, 12:00 PM
Post Re: Different category template for different category
Evoir 4888 May 22, 2001, 10:10 PM
Thread Re: Different category template for different category
Evoir 4430 Jul 26, 2001, 10:17 AM
Post Re: Different category template for different category
pugdog 4466 Jul 26, 2001, 11:28 AM
Post Re: [Alex] Different category template for different category
aprillougheed 4030 Mar 16, 2002, 5:43 AM
Post Re: Different category template for different category
PelsLvr 4445 Jul 23, 2001, 12:05 PM
Post Re: Different category template for different category
msdq 14885 Apr 25, 2001, 1:25 PM