Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • philingbb Friend
    #180097

    Hello,

    Is it possible to insert a block into an other block?

    Now I have:

    <block name=”header-text” style=”raw”>header-text</block>
    <block name=”header” type=”header” ></block>

    I would like to have:

    <block name=”header” type=”header” ><block name=”header-text” style=”raw”>header-text</block></block>

    Thanks
    Philippe

    Ninja Lead Moderator
    #464934

    T3 could not support on this case, but I suggest you doing the following way:

    1) Make templates/your_template/blocks/more.php file

    <?php if ($this->countModules('header') || $this->countModules('header-text')): ?>
    <div id="ja-both-module">
    <?php if ($this->countModules('hotline')): ?>
    <div id="ja-header">
    <jdoc:include type="modules" name="header" style="raw" />
    </div>
    <?php endif; ?>

    <?php if ($this->countModules('vm-cart')): ?>
    <div id="ja-header-text">
    <jdoc:include type="modules" name="header-text" style="raw" />
    </div>
    <?php endif; ?>
    </div>
    <?php endif; ?>

    2) Go to admin->Extensions->Template Manager->Edit your template->Layouts Tabs->Edit Default

    <block name="more" type="more"></block>

    zensopa Friend
    #465370

    Thanks for your answer,
    that was the right one
    —-
    merchant account provider

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 3 voices, and was last updated by  zensopa 12 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum