Share » Forums » Developer » Correct custom extension directory...

Correct custom extension directory structure

Correct custom extension directory structure

Friday 26 October 2007 8:06:03 am - 4 replies

Author Message

Heath

Friday 26 October 2007 1:34:22 pm

Hello Emil,

A few responses to your thoughts ...

1) Yes. Using the correct conventions of settings an extension may contain multiple modules.

2) Yes. For single module extensions you may see a common general pracice of the module name matching the extension name. This is not a requirement, mearly an over simplification. Pick a good unique name (watch out for using trademarks in the name :)

There is a limited namespace for module urls where each module should be named uniquely. It is possible that it would be more useful to choose carefully the name of your module which most closely matches your module (with thought on using the module name in urls for the views the module would provide).

Your well on your way :)

It might help to take study this article, http://ezpedia.org/wiki/en/ez/module

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Xavier Dutoit

Saturday 27 October 2007 2:50:22 am

Hi,

That's common practice to add a prefix to your extension to avoid namespace clashes.

Eg: Heath would start with bc, someone from ez with ez...

X+

P.S. That's a convention, feel free to do otherwise, like I do ;)

http://www.sydesy.com

Emil Lazaro

Monday 29 October 2007 7:21:28 am

Thanks to both of you, I almost figured the answers on my own the hard way, your comments saved me some time.

Now I encountered a new issue that you may be able to advise me on: while I am testing a new datatype - a simple one I created as practice, every time I make a more significant change in the class file, I can not remove the old version of the class through the admin control panel. Even clearing the cache doesn't help. I figured the old version had to be removed before I made the changes, but I was hoping there would be an easier, smarter way.

Kåre Køhler Høvik

Monday 29 October 2007 11:22:35 pm

Hi

Please take a look at the eZ Network development guidelines as well. http://ez.no/services/eznetwork/development_guidelines The document also contains other information you might find handy.

Kåre Høvik

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu