Jump to content

[SOLVED] Transplanting a module


Recommended Posts

Hi 2 All

 

 

I want to transplant the themeconfigurator module to another hook.Its hooked with display home but the content is showing on top of home page ie below the slider.I want to show its content blow the home page ie above the footer.I have tried to transplant it to the hook beforFooter but it says "This module can not be transplanted to this hook".

How can I change its position.I have tried the module position in BO,have tried through live edit,have changed its position in the home hooks but all r not working.

How to do this,plz help.

Link to comment
Share on other sites

If it can't be transplanted, it means there isn't a function in the module for that particular hook. You'll want to edit the file for it, probably modules/themeconfigurator/themeconfigurator.php, find a section called hookDisplayHome or some such..

 

You'll then want to add a new function, named after the hook you'd like, and pointing to that original hook:

	public function hookBeforeFooter($params)
	{
		return $this->hookDisplayHome($params);
	}

After that, it should let you transplant it to the new position

  • Like 1
Link to comment
Share on other sites

  • 1 month later...
Hello,

 

I saw that it's solved topic, but I want to ask something about it that I didn't found in other topics.

 

I used this code and ¡it works properly! :) but if I update the module, this change again the position and I need to edit and write again the function into module.php.

 

There are any way to insert this code to one archive that allow me to update and don't modify the module.php again?

 

Thank you for your response

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...