Confused about module types

I am working on a custom module. So far I have downloaded the bloggie4 and made changes for a basic install. All is well so far. Now, when looking at all the other modules, I have noticed that there are different "types" of modules.

Example: If looking at the store module, it uses BxDolTwigTemplate, the sounds module uses BxDolFilesTemplate, and articles uses BxDolTextTemplate,and the ads module uses BxDolModuleTemplate.

OK,the files template is self explanatory, but I am confused as to the difference between the twig, module, and the text "types. And more specifically, which one I should be using. Basically - I have taken the viewFriends.php page and modified it and all of its related files to pull in a different set of members based on a new connection method I added. So, would I use the Twig template, Module template or the Text Template

caredesign.net
Quote · 16 Apr 2013

Twig* classes are base classes for Events, Groups, Store modules.

Text* classes are base classes for Articles, News, Feedback.

So, depending on your module functionality use appropriate base classes.

Rules → http://www.boonex.com/terms
Quote · 16 Apr 2013

Thanks for your answer Alex, but it still doesnt answer my question. I see that the different modules use different types, but I am trying to find out why. Why isnt the Twig type used with the Articles or the text type used with the store? What determines what Type to use for a module idea/function?

I have a lot of ideas for different modules, but have no clue which one I would use for each module.

caredesign.net
Quote · 18 Apr 2013

Hello, It is also possible that you write your own code (without using of Twig or BxDolText classes). This is up to you only.

There are only few core classes which you should use in your module: BxDolConfig, BxDolModuleDb, BxDolModule and BxDolModuleTemplate.

Quote · 18 Apr 2013

I noticed that the forums module is different from other modules - another reason for my question.

What I have for my first module is a clients section, which is a duplicate of the friends section, but the friends section is not a module. allthe pages under the templates/base and the uni/base as well as the inc folders that have anything to do with friends I have duplicated and changed to clients. IE viewFriends.php has a brother now called viewClients.php, and the BxBaseProfileView has a brother called BxBaseClientProfileView, and so on. So,Iwanted to put this into a module, cause I need to put it on 3 different sites.

As I was looking at the MyFirstModule Tutorial, I noticed the different types. Now, considering none of the pages I have duplicated were in a module originally, it is going to be a task to convert them to module formatting - which is why I wanted to know what determines which type of module template to use. One thing my dad always said - Garbage in,Garbage out. So Do it right from the beginning. I just want to make sure I am starting this right and not just jumping out there blindly.

caredesign.net
Quote · 18 Apr 2013

As AlexT said above^ it makes sense already. If you think about the types of module you will notice common things in them. Like twig class offer you methods for managing fans so you don't have to reinvent the wheel. File class for all files related modules like photos, files, sounds. It has pre written code to manage uploads. The thing you are trying to do is not something coded in default classes. You should just extend to BxDolModule and code your stuff yourself.  Take examples from current modules if you feel lost Smile

so much to do....
Quote · 18 Apr 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.