Jump to content

block_categories in pozitia displayTop


d.crysty23

Recommended Posts

Am incecat sa pozitionez modulul block_categories in pozitia Top insa m-am lovit de o problema.

Mai intai am adaugat aceasta functie in fisierul blockcategories.php

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

iar apoi am facut si aceasa modificare 

public function install()
	{
		if (!parent::install() ||
			!$this->registerHook('leftColumn') ||
			!$this->registerHook('footer') ||
			!$this->registerHook('header') ||
			!$this->registerHook('displayTop')|| //MODIFICARE NOUA			// Temporary hooks. Do NOT hook any module on it. Some CRUD hook will replace them as soon as possible.
			!$this->registerHook('categoryAddition') ||
			!$this->registerHook('categoryUpdate') ||
			!$this->registerHook('categoryDeletion') ||
			!$this->registerHook('actionAdminMetaControllerUpdate_optionsBefore') ||
			!$this->registerHook('actionAdminLanguagesControllerStatusBefore') ||
			!Configuration::updateValue('BLOCK_CATEG_MAX_DEPTH', 4) ||
			!Configuration::updateValue('BLOCK_CATEG_DHTML', 1))
			return false;
		return true;
	}

Ulterior,dupa ce pozitionez modul din BO in pozitia care o doresc,desi primesc mesajul ca transferul s-a facut cu succes,atunci cand accesez site-ul,pagina devine alba si numai apare nimic.

Stiti cumva ce nu am facut bine?unde ar trebui sa modific?

 

Multumesc!

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