Forums / Developer / Possible to override extension's templates in sitedesign!?

Possible to override extension's templates in sitedesign!?

Author Message

Dominik Pich

Friday 23 April 2004 1:09:49 am

I have an extension called bought (design.ini.append there) that provides a new view for nodes: bought.tpl
'/extension/bought/design/standard/templates/node/view/bought.tpl'
I want my siteaccess to override that view... preferably for custom classes vie ovveride.ini.append or similiar...
Possible?

If not, how do you solve such obstacles?
Thanks,
Dominik

Paul Forsyth

Friday 23 April 2004 1:19:02 am

I tried this recently. I put the new view into my current design:

design/user/templates/node/view/list.tpl

then i could reference it with the override system.

[list_something]
Source=node/view/list.tpl
MatchFile=node/list_something.tpl
Subdir=templates
Match[class]=25

For your extension if putting it in design/standard doesn't work try it with your current site design.

paul

--
http://www.visionwt.com

Dominik Pich

Friday 23 April 2004 2:42:30 am

If I copy the view into my design, the view defined the extension is preferred.
If I move the view into my design, it works as you said...

Is this the 'plan'?