-
AuthorPosts
-
December 20, 2010 at 5:09 pm #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.hrthx
aman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
December 20, 2010 at 6:50 pm #367810Try 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/
1 user says Thank You to aman204 for this useful post
December 20, 2010 at 7:10 pm #367815i 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 -->December 20, 2010 at 7:14 pm #367816i made this change
<?php if( !$this->isFrontPage() ): ?>
<!– CONTENT –>
.
.
.
<!– //CONTENT –>
<?php endif; ?>but no changes…
aman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
December 21, 2010 at 10:19 am #367922Mainly, 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 layout1 user says Thank You to aman204 for this useful post
December 21, 2010 at 10:34 am #367930in 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 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
December 21, 2010 at 11:43 am #367942solved and now working as i wanted to, thank you very much…
i missed when i was looking for that line…AuthorPostsViewing 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
Article border
Viewing 8 posts - 1 through 8 (of 8 total)