Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Some modules cannot be transplanted into other sections of the front office simply because they lack the necessary code.

For example, the "Quick Search" block (/blocksearch) some modules contains templates for both column display and header display, whereas the "Currencies" block (/blockcurrencies) only has others have one template file which only works with the header section. Likewise, the default "Featured Products" block (/homefeatured) can only be placed in the center content section of the main page. 

If you want to display simple modules such as the "Currencies" block in a position for which it was not built, you will have to edit its template files.
More complex module, such as the "Featured" block, modules can also be made to be displayed in other sections of the page, but they might have to be partly rewritten in order to have their design work with that new location.

To customize the transplantation ability of a module, you must give it the correct PHP function for the new target hook. For example, the "Currency" block for a module that has this function:

Code Block
function hookTop($params) { ... } 

In order to transplant the "Currency" its block into the right column, for instance, you need to add the hookRightColumn() function:

...