Jump to content

Tworzenie bitu stylu bez zawartości globalTemplate


prodsls72

Recommended Posts

23 godziny temu, prodsls72 napisał(a):

Czy da się stworzyć bit stylu który nie posiada w sobie globalnego szablonu? IPB 3.4


Dopisek, odczytać bit z poziomu modułu php.

 

$template = $this->registry->output->getTemplate('global')->TestBit();
$this->registry->getClass('output')->addContent($template);
$this->registry->getClass('output')->sendOutput();


Dodając w taki sposób globalTemplate jest odczytywany, a nie chce go.

Link to comment
Share on other sites

  • Manager

Spróbuj z tą zmienną:

	        if ( $this->useMinimalWrapper )
	        {
	        	$templateName  = 'globalTemplateMinimal';
	        	$templateGroup = 'global_other';
	        }

useMinimalWrapper

I edytować na "czysty" bit o nazwie globalTemplateMinimal.

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.