Jump to content

Blocknewsletter in hookHome


Recommended Posts

Hi, 

I need to show the blocknewsletter to Home page as a full width block. (I hope this is understandable).

  1. I have added to blocknewsletter.php the following:

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

    public function hookDisplayHome($params)
    {
        if (!isset($this->prepared) || !$this->prepared)
             $this->_prepareHook($params);
        $this->prepared = true;
        return $this->display(__FILE__, 'blocknewsletter_home.tpl');
    }
  2. I have also transplanted the blocknewsletter to DisplayHome.
  3. I have also created the blocknewsletter_home.tpl

The problem is that it does not show. What am I missing here or what am I doing wrong?

Do you have any suggestions?

 

Thanks in advance.

 
 
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...