Jump to content

Modules Not Transplating


Recommended Posts

I don't think this is a bug, I think it is intentonal that the certain blocks are not transplantable into other page sections.  If you look at the QuickSearch block for instance, it contains templates for both column display and header display.  The Currencies block only has one template file, which most likely only pertains to the header section.

 

If the PS team confirms this to be a bug so be it, but I think if you want to display certain elements like the currencies in either the left or right column, you'll have to modify the template files accordingly in order for it to work for you.  Likewise, you can't put the Featured Products block anywhere else but the center content section of the main page.  If you want to move it to a column, you'll have to do the customization yourself.

Link to comment
Share on other sites

Hi,

 

This is not a bug.

 

If you transplate a module on a hook, you need to create PHP function in this module for the hook.

 

I mean, in CurrencyBlock you have this function : function hookTop($params).

If you transplant the CurrencyBlock on RightColumn, you need to create : function hookRightColumn($params).

 

This way you can have different view of the block for different hook.

Without function for the current hook, nothing will appear.

Link to comment
Share on other sites

×
×
  • Create New...