Monday 12 September 2005 2:56:03 am
I'm creating some classes to rapresent some tables with different fields. I have the class 'table1', 'table2', 'table3' etc. I can use the same template for all this class, but I have to specify one template override for every class, like this example:
[table1]
Source=content/view/full.tpl
MatchFile=full/table1.tpl
Subdir=templates
Match[class_identifier]=table1
[table2]
Source=content/view/full.tpl
MatchFile=full/table2.tpl
Subdir=templates
Match[class_identifier]=table2
etc...
My suggestion is to create a match for group of classes. If my tables are in a group of classes named "tables", the result maybe will be:
[all table]
Source=content/view/full.tpl
MatchFile=full/all_table.tpl
Subdir=templates
Match[group_class_identifier]=tables
Bye, Salvatore Guarino
|