PDA

View Full Version : shared templates


M.C.
01-25-2004, 11:11 PM
I was lookin trough requests, but.... so that my hack idea:

I use few diferent styles and only differens between them is colors, imagepath and header and footer BUT all other templates same, now if i need to install new hack i need to make changes in templates, so if i have 2 styles i need do it twice... i`m lazy as all of us, so may be someone make release of hack when 2 different styles will use own colors, image path, header and footer, BUT they shared all other templates, so i wouldn`t need to make everytime changes twice!

Be glad to see that hack
Thanks!

Zachery
01-25-2004, 11:42 PM
I was lookin trough requests, but.... so that my hack idea:

I use few diferent styles and only differens between them is colors, imagepath and header and footer BUT all other templates same, now if i need to install new hack i need to make changes in templates, so if i have 2 styles i need do it twice... i`m lazy as all of us, so may be someone make release of hack when 2 different styles will use own colors, image path, header and footer, BUT they shared all other templates, so i wouldn`t need to make everytime changes twice!

Be glad to see that hack
Thanks!
already done :)

try using inheritence

make one new style call it Global Style

make it not user selectable and it has no parrent

now make all your other styles fall under Golbal Style (child styles of Global)

now any changes you make to global will be taken by its childs, unless you customize that style's tempalte :)

M.C.
01-25-2004, 11:52 PM
so..... very nice... ok, thanks a lot... that new vB makes me confused.... :)

MindTrix
01-26-2004, 02:48 AM
Or if your using vB2 modify the styles properties, and set the templates's to the same ones