Log in

View Full Version : modify template through product?


Dylanblitz
07-25-2008, 09:22 PM
I wanted to find out if you can modify a template with a product's xml file. For example, if I want to modify the navbar template and add a new link. Is this possible or do you have to instruct the user how to add the link to their navbar manually?
If there is a way please point me to the right place to research it :)
Thanks

Sycoloco1212
07-25-2008, 09:34 PM
So what you want to do is add a link to your navbar right? please explain more :D

Dylanblitz
07-25-2008, 09:46 PM
yeah, but I'm talking about doing it automatically when a user installs a product I make.

Opserty
07-25-2008, 09:59 PM
You should never perform template overwrites when installing a product. What if someone has customised their navbar template? You will make them lose all their changes. ;)

There are $template_hook's in navbar template. Attach your link in one these hooks, through a plugin, instead.

Dylanblitz
07-25-2008, 10:30 PM
You should never perform template overwrites when installing a product. What if someone has customised their navbar template? You will make them lose all their changes. ;)

There are $template_hook's in navbar template. Attach your link in one these hooks, through a plugin, instead.

Yeah, I didn't want to overwrite, wanted to modify. I'll look at using the hooks to do it, thanks :)