Making an extension?

Support for coding, modules or other software issues
Post Reply
Bluesplayer
Posts: 152
Joined: Sun Jan 06, 2013 3:03 pm

Making an extension?

Post by Bluesplayer » Sun Jan 27, 2013 5:47 am

Hi

How would I go about making an extension similar to information. Reason being that information has it's own information.tpl.

On my site I have added code to information.tpl that displays stuff from other parts of my site. What I would really like is to make a custom coded tpl file so that I can place it wherever I want and put the information.tpl back as it was. This would allow me to place the information box in a different place.

Regards
apet4life.co.uk

User avatar
Brent
Site Admin
Posts: 4419
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Making an extension?

Post by Brent » Sun Jan 27, 2013 6:51 am

Probably the best way is to use one of the other extensions as an example.
First you need to Crete the admin side.
Take the information as an example. You need to create the admin controller, model, language, and tpl files for your new extension.
Same thing in the catalog side, controller, model, language and tpl. You may also need to create custom CSS file to accommodate your new extension.
If you look at the install/ upgrade.sql, you will see examples of the code needed to be written to the database to register your new extension.

Post Reply