Home » Archive

Articles tagged with: module

Magento, Magento 2 »

[7 Apr 2016 | No Comment]

This article shows how you can create a simple Hello World module / extension in Magento 2. The necessary files are listed with the code.
This module just calls a block function in template file to print Hello World text.

Magento, Magento 2 »

[28 Mar 2016 | No Comment]

This article shows how we can check if a module is installed / enabled or active in Magento 2.
Below is a block class of my custom module (Chapagain_HelloWorld). I have injected object of \Magento\Framework\Module\Manager class in the constructor of my module’s block class.

Joomla »

[5 May 2015 | No Comment]

Sometime you might need to show any module’s content inside your article. For example, you have installed a image slideshow module. Now, you might need to show the image slideshow within your article page.
For this purpose, Joomla CMS comes with the default plugin (Content – Load Modules) to show module’s content in any article. You can either use the default ‘Content – Load Modules’ plugin or you can also use some other third-party plugins which help to do the same work more easily.

Magento »

[6 Aug 2014 | No Comment]

Here is a quick code to check if a Magento module is installed, enabled or active.
The functions isModuleEnabled and isModuleOutputEnabled are present in Mage_Core_Helper_Abstract class.

Magento »

[17 May 2011 | 18 Comments]

You have built a custom magento extension (magento module) and you want to package it and submit it to magento connect (magento extension directory).
This article shows how to create Magento extension package. I have included images for every step which I followed while creating extension package for my module (Auto Currency Switcher).

Magento »

[16 Feb 2010 | 5 Comments]

I was building a custom module in Magento. I had created a system.xml file for storing configuration data from admin. From the below system.xml file, you can see that I have created a section named ‘My Module Name‘ which can be accessed from Admin –> System –> Configuration.
In the file below, I have just displayed the section and groups name. I have omitted others fields with dots, as they are not necessary here.

Magento »

[4 Feb 2010 | 4 Comments]

Suppose, you have created a new module or you have an existing module. You have a frontend page for your module. You want to set or change title, keywords, and/or description of your module page. Well, you can do so by adding few lines of code in layout xml file of your module.
The layout file for you module is present in design/frontend/default/default/layout/YourModuleName.xml. I suppose that you are using default theme and package. The default/default/ in the above path might be different if you are using custom theme and package.

Magento »

[7 Jan 2010 | 7 Comments]

You can easily get controller name, action name, router name and module name in any template file or class file.