Adding a new MagentoTM block to Joomla!TM is easy: You can use the MageBridgeTM Custom Block module to easily insert an existing Magento block as a Joomla! module on your page. This guide gives you all the information you need.
The MageBridge Custom Block module (mod_magebridge_block) allows you to create a new module instance displaying a certain Magento block. The Magento theming principle is completely based on blocks, which can be seen as chunks of HTML. Blocks can be placed within blocks and actually the HTML-document as a whole can be seen as a block itself. This theming principle is very flexible, but also difficult to get used to.
Default MageBridge blocks
Within MageBridge you can use the Custom Block module to easily insert a Magento block inside Joomla! by just selecting the right block from a select-box. This includes blocks like:
- Popular Tags (tags_popular)
- Checkout: Progress (checkout.progress)
- Product Tags (product_tag_list)
- Catalog: Left Navigation (catalog.leftnav)
Many more block-names
The blocks in the MageBridge Custom Blocks are not defined by MageBridge, but defined by the Magento theme. The default theme includes the definition of several hundred blocks, and all of them can be used within MageBridge.
Even worse, third party Magento extensions can define extra blocks inside either your parent-theme or your own theme, adding more block-names to the theming engine.

The clue is to use the "Custom block" field within the module-parameters. Actually, this feature is much more powerful than the dropdown-box. This really allows you to use any Magento block within MageBridge.
However, you will need to know your Magento theme to find the right block-name.
The Magento XML-layout files
For understanding the Magento theming engine completely, we recommend you to read the official Magento Designers Guide (released by Varien) which gives a lot of insight into the usage of blocks with Magento. We consider this fundamental knowledge to build a succesfull MageBridge website.
Block-names are defined in the XML-layout files and these can be found in the /app/design/frontend directory of Magento. This directory is home to the Magento default interface and Magento default theme, while you should have created your own directory for your own interface or theme.
Within the layout-folder of a specific theme you will find all the XML-layout files of various modules. These files contain the block-names we are looking for.
Finding the right XML-code
When you open up a XML-file, you will find a complex gathering of XML-tags but only one of them is important for usage within MageBridge: The block-tag (<block>). This tag has a couple of arguments and one of them is "name".
This "name" of a certain block-tag is the name you can use within the MageBridge Custom Block module.

The default Magento theme contains many block-names, but - as you install more Magento extensions - the amount of block-names will grow. A next question would be which block is responsible for what.
Third party Magento extensions
Third parties can also create Magento extensions that add blocks to Magento, but the situation stays the same. They should supply information on how to integrate their block with Magento theming (and therefor with MageBridge). For instance, they could document their block with the following code:
<block type="foo/bar" name="foobar" template"foo/bar.phtml" />
or
{{block type="foo/bar" name="foobar" template"foo/bar.phtml"}}
In both examples above the name to use within MageBridge is "foobar".
Page assignment per block
Note that the Magento theme not only defines which blocks are available, but it also defines on which pages these blocks should appear. If you insert a Magento block into Joomla! using the procedure above and assign this module to all MageBridges pages, it's still up to the Magento theme to actually fill this block with content.
If the block is not assigned to a specific Magento page, the block will empty in Joomla!. You should alter the Magento theme to accomodate this. In short: Make sure your Magento theme is exactly as you need it, only then use MageBridge to forward the blocks-in-question to Joomla!.
Blocks that require configuration
Some blocks require extra parameters to be added to the block-tag. These arguments can only be given with a XML-tag (<block>) or a CMS-tag ({{block}}). Unfortunately you can't use these blocks with the MageBridge Custom Block module. However, there is still the MageBridge Content Plugin.
Tutorials on MageBridge administration
- Performance tuning with MageBridge
- MageBridge SEO Guide
- MageBridge scenarios
- Authentication guide for MageBridge
- Using MageBridge modules
- Step-by-step: Activating MageBridge plugins
- Upgrading Magento, Joomla! and MageBridge
- Configuring payment methods in MageBridge
- MageBridge Security Guide
- Step-by-step: Creating a MageBridge Menu-Item
- Step-by-step: Create a Magento API user
- API permissions with MageBridge
- How to use URL-suffices with MageBridge?
- Using MageBridge stores to load a different Magento theme
- Managing MageBridge extensions
- Using the MageBridge Content Plugin
- Enabling SSL for MageBridge
- Prevent direct access to Magento
- Switching stores with MageBridge
- Migrating users between Joomla! and Magento
- Using MageBridge Product Connectors
- Best practices with MageBridge
- Using the MageBridgeLinks/JCE-plugin
- Moving a MageBridge site
- Importing and exporting users
- Two VirtualHosts but one domain
- Removing MageBridge
- Disabling user synchronization in MageBridge
- Questions to ask your hosting provider
- MageBridge caching
- Setting the MageBridge URLs in Magento
Tutorials on MageBridge integrations
- Language configuration in MageBridge
- Integrating MageBridge with other Joomla! extensions
- Step-by-step: Configuring sh404SEF
- Integrating JomSocial and MageBridge
- JomSocial profile-synchronization
- Overriding the JomSocial-connector configuration
- Working with JomSocial events
- Related products with the Joomla! Tags component
- Using Layered Navigation Pro with MageBridge
- Using HM_FeaturedProducts with MageBridge


