Columns Layout - Joomla! Forum - community, help and support
greetings.
right i'm developing template in wampserver test in server later.
i'm having problems setting layout allows show in 2 columns or 3 columns. option if using left column shows left , component, if right, right , component, if both, both , component, or neither, component.
i have code:
but code brings me blank screen. debug entries statement functions correctly
i'm not sure if i'm doing wrong in nesting see how deploy code in order make functionality said correct.
thanks in advance.
right i'm developing template in wampserver test in server later.
i'm having problems setting layout allows show in 2 columns or 3 columns. option if using left column shows left , component, if right, right , component, if both, both , component, or neither, component.
i have code:
code: select all
<main class="detalle">
<div class="breadcrumb-class">
<?php if($this->countmodules('migadepan')) : ?>
<div id="modsuperior"><jdoc:include type="modules" name="migadepan" style="html5" /></div>
<?php endif; ?>
<!--está en:<a href="index.html" target="_self" title="inicio">inicio</a>/<span>item menu ejemplo</span>-->
</div>
<?php if($this->countmodules('columnaizquierda or columnaderecha')) : ?>
<?php if($this->countmodules('columnaderecha')) : ?>
<!--2 columnas contenido izquierda -->
<article class="col-md-8">
<jdoc:include type="message" />
<jdoc:include type="component" />
</article>
<aside class="col-md-4"><jdoc:include type="modules" name="columnaderecha" style="html5" /></aside>
<div class="clearfix"></div>
<?php endif; ?>
<?php else :?>
<?php if($this->countmodules('columnaizquierda')) : ?>
<!--2 columnas contenido derecha -->
<aside class="col-md-4"><jdoc:include type="modules" name="columnaizquierda" style="html5" /></aside>
<main class="col-md-8">
<jdoc:include type="message" />
<jdoc:include type="component" />
</main>
<div class="clearfix"></div>
<?php endif; ?>
<?php else :?>
<?php if($this->countmodules('columnaizquierda , columnaderecha')) : ?>
<!--3 columnas -->
<aside class="col-md-3"><jdoc:include type="modules" name="columnaizquierda" style="html5" /></aside>
<main class="col-md-6">
<jdoc:include type="message" />
<jdoc:include type="component" />
</main>
<aside class="col-md-3"><jdoc:include type="modules" name="columnaderecha" style="html5" /></aside>
<div class="clearfix"></div>
<?php else :?>
<!--1 columna x-->
<jdoc:include type="message" />
<jdoc:include type="component" />
<?php endif; ?>
<?php endif; ?>
</main>
but code brings me blank screen. debug entries statement functions correctly
code: select all
<?php if($this->countmodules('columnaizquierda , columnaderecha')) : ?>
<!--3 columnas -->
<aside class="col-md-3"><jdoc:include type="modules" name="columnaizquierda" style="html5" /></aside>
<main class="col-md-6">
<jdoc:include type="message" />
<jdoc:include type="component" />
</main>
<aside class="col-md-3"><jdoc:include type="modules" name="columnaderecha" style="html5" /></aside>
<div class="clearfix"></div>
<?php else :?>
<!--1 columna x-->
<jdoc:include type="message" />
<jdoc:include type="component" />
<?php endif; ?>
i'm not sure if i'm doing wrong in nesting see how deploy code in order make functionality said correct.
thanks in advance.
hi john-doe,
the standard template (protostar) this. counts modules set position rather name , sets "span" appropriately. i've never counted modules name have suggest not counts have "$this->countmodules('columnaizquierda or columnaderecha')", separate them "$this->countmodules('columnaizquierda') or $this->countmodules('columnaderecha')". hope helps. cheers.
glenn
the standard template (protostar) this. counts modules set position rather name , sets "span" appropriately. i've never counted modules name have suggest not counts have "$this->countmodules('columnaizquierda or columnaderecha')", separate them "$this->countmodules('columnaizquierda') or $this->countmodules('columnaderecha')". hope helps. cheers.
glenn
Comments
Post a Comment