Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • lmauer Friend
    #157689

    hi i’m using seleni template…
    can you plz tell me how to solve this problem
    i have put border on .ja-content-main to display it on artice… everything works great but on front page and section pages it shows empty content becouse i dont have any artice as it on that pages, see on screenshot…
    what can i do to move that “box” from that pages, or is there some other way to display borders on articles.
    live link
    http://www.e-kako.hr

    thx


    1. Clipboard01
    aman204 Friend
    #367810

    Try go to ::

    /templates/ja_seleni/layouts/blocks/main.php file and add in suggested code here in this thread::

    http://www.joomlart.com/forums/topic/hide-main-content-block/

    lmauer Friend
    #367815

    i dont have that code in main.php…
    and i dont know where to put it…

    this is what i got in main.php

    <!-- CONTENT -->
    <div id="ja-main" style="width:<?php echo $this->getColumnWidth('m') ?>%">
    <div class="inner clearfix">

    <jdoc:include type="message" />

    <?php
    $mass_top = $this->getPositionName ('content-mass-top');
    if($this->countModules($mass_top)) : ?>
    <div class="ja-mass ja-mass-top clearfix">
    <jdoc:include type="modules" name="<?php echo $mass_top;?>" style="JAxhtml" />
    </div>
    <?php endif; ?>

    <div id="ja-contentwrap" class="<?php echo $this->getColumnWidth('cls_m'); ?>">
    <?php
    $inset1 = $this->getPositionName ('inset1');
    $inset2 = $this->getPositionName ('inset2');
    ?>
    <div id="ja-content" class="column" style="width:<?php echo $this->getColumnWidth('cw') ?>%">

    <div id="ja-current-content" class="column" style="width:<?php echo $this->getColumnWidth('c') ?>%">
    <?php
    $content_top = $this->getPositionName ('content-top');
    if($this->countModules($content_top)) : ?>
    <div class="ja-content-top clearfix">
    <jdoc:include type="modules" name="<?php echo $content_top;?>" style="JAxhtml" />
    </div>
    <?php endif; ?>

    <?php $contents = $this->getBuffer('component');
    if (!preg_match ('/<div class="blog">s*</div>/',$contents)) :?>
    <div class="ja-content-main clearfix">
    <jdoc:include type="component" />
    </div>
    <?php endif; ?>

    <?php
    $content_bottom = $this->getPositionName ('content-bottom');
    if($this->countModules($content_bottom)) : ?>
    <div class="ja-content-bottom clearfix">
    <jdoc:include type="modules" name="<?php echo $content_bottom;?>" style="JAxhtml" />
    </div>
    <?php endif; ?>
    </div>

    <?php if($this->countModules($inset1)) : ?>
    <div class="ja-col column ja-inset1" style="width:<?php echo $this->getColumnWidth('i1') ?>%">
    <jdoc:include type="modules" name="<?php echo $inset1;?>" style="JAxhtml" />
    </div>
    <?php endif; ?>

    </div>

    <?php if($this->countModules($inset2)) : ?>
    <div class="ja-col column ja-inset2" style="width:<?php echo $this->getColumnWidth('i2') ?>%">
    <jdoc:include type="modules" name="<?php echo $inset2;?>" style="JAxhtml" />
    </div>
    <?php endif; ?>
    </div>

    <?php
    $mass_bottom = $this->getPositionName ('content-mass-bottom');
    if($this->countModules($mass_bottom)) : ?>
    <div class="ja-mass ja-mass-bottom clearfix">
    <jdoc:include type="modules" name="<?php echo $mass_bottom;?>" style="JAxhtml" />
    </div>
    <?php endif; ?>

    </div>
    </div>
    <!-- //CONTENT -->

    lmauer Friend
    #367816

    i made this change

    <?php if( !$this->isFrontPage() ): ?>
    <!– CONTENT –>
    .
    .
    .
    <!– //CONTENT –>
    <?php endif; ?>

    but no changes…

    aman204 Friend
    #367922

    Mainly, You can change this::

    <?php $contents = $this->getBuffer(‘component’);
    if (!preg_match (‘/<div class=”blog”>s*</div>/’,$contents)) :?>
    <div class=”ja-content-main clearfix”>
    <jdoc:include type=”component” />
    </div>
    <?php endif; ?>

    to

    <?php if( !$this->isFrontPage() ): ?>
    <?php $contents = $this->getBuffer(‘component’);
    if (!preg_match (‘/<div class=”blog”>s*</div>/’,$contents)) :?>
    <div class=”ja-content-main clearfix”>
    <jdoc:include type=”component” />
    </div>
    <?php endif; ?><?php endif; ?>
    but Please ensure that menu type is selected as frontpage blog layout

    lmauer Friend
    #367930

    in which file ? in main.php i cant find this line…

    <?php $contents = $this->getBuffer('component');
    if (!preg_match ('/<div class="blog">s*</div>/',$contents)) :?>
    <div class="ja-content-main clearfix">
    <jdoc:include type="component" />
    </div>
    <?php endif; ?>

    aman204 Friend
    #367934

    Strange. Please check if you are viewing the file as stated in path above as I took in specific code from this file

    lmauer Friend
    #367942

    solved and now working as i wanted to, thank you very much…
    i missed when i was looking for that line…

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

This topic contains 8 replies, has 2 voices, and was last updated by  lmauer 13 years, 11 months ago.

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