Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Category blog layout messed up
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: Category blog layout messed up

Category blog layout messed up 13 years, 5 months ago #19637

Hello,
I was a very happy user off JoomSEF for a long time. But, now i Have a problem.

When i link to a category blog with one column layout it is coming up into a two colums layout with one leadingitem in one column. But i want to see all articles in one collumn.
My settings are all correct for the menuitem
It is only happening when i use JoomSEF.
Purging the SEF url's and let the system automatic create new items is not the solution.

Is there a solution for this problem ?

Re: Category blog layout messed up 13 years, 5 months ago #19647

I have the same error. Menu link blog set to 1 column. two columns showing. everything goes to one column, normal, when artio sef is disabled. did I spend some time tracking this to sef? Yes! I've tried a host of sef settings without success.

Re: Category blog layout messed up 13 years, 5 months ago #19648

Grantiago,

I fixed my problem. I took de blog.php file from the Beez template (attachement) end i made in my template the following changes. In the template go to the html directory.
Create the com_content directory
In this directory create the category directory
Into this directory is uploaded the blog.php
After that my problem was fixed.
If you try it, please let me know if this was helping you to fix your problem.
Copy the text after this en save it as blog.php


<?php // @version $Id: blog.php 11917 2009-05-29 19:37:05Z ian $
defined('_JEXEC') or die('Restricted access');
$cparams = JComponentHelper::getParams ('com_media');
?>

<?php if ($this->params->get('show_page_title')) : ?>
<h1 class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
<?php echo $this->escape($this->params->get('page_title')); ?>
</h1>
<?php endif; ?>

<div class="blog<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">

<?php if ($this->params->def('show_description', 1) || $this->params->def('show_description_image', 1)) : ?>
<div class="contentdescription<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">

<?php if ($this->params->get('show_description_image') && $this->category->image) : ?>
<img src="<?php echo $this->baseurl . $cparams->get('image_path') . '/' . $this->category->image; ?>" class="image_<?php echo $this->category->image_position; ?>" />
<?php endif; ?>

<?php if ($this->params->get('show_description') && $this->category->description) :
echo $this->category->description;
endif; ?>

<?php if ($this->params->get('show_description_image') && $this->category->image) : ?>
<div class="wrap_image">&nbsp;</div>
<?php endif; ?>

</div>
<?php endif; ?>

<?php $i = $this->pagination->limitstart;
$rowcount = $this->params->def('num_leading_articles', 1);
for ($y = 0; $y < $rowcount && $i < $this->total; $y++, $i++) : ?>
<div class="leading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
<?php $this->item =& $this->getItem($i, $this->params);
echo $this->loadTemplate('item'); ?>
</div>
<span class="leading_separator<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">&nbsp;</span>
<?php endfor; ?>

<?php $introcount = $this->params->def('num_intro_articles', 4);
if ($introcount) :
$colcount = (int)$this->params->def('num_columns', 2);
if ($colcount == 0) :
$colcount = 1;
endif;
$rowcount = (int) $introcount / $colcount;
$ii = 0;
for ($y = 0; $y < $rowcount && $i < $this->total; $y++) : ?>
<div class="article_row<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
<?php for ($z = 0; $z < $colcount && $ii < $introcount && $i < $this->total; $z++, $i++, $ii++) : ?>
<div class="article_column column<?php echo $z + 1; ?> cols<?php echo $colcount; ?>" >
<?php $this->item =& $this->getItem($i, $this->params);
echo $this->loadTemplate('item'); ?>
</div>
<span class="article_separator">&nbsp;</span>
<?php endfor; ?>
<span class="row_separator<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">&nbsp;</span>
</div>
<?php endfor;
endif; ?>

<?php $numlinks = $this->params->def('num_links', 4);
if ($numlinks && $i < $this->total) : ?>
<div class="blog_more<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
<?php $this->links = array_slice($this->items, $i - $this->pagination->limitstart, $i - $this->pagination->limitstart + $numlinks);
echo $this->loadTemplate('links'); ?>
</div>
<?php endif; ?>

<?php if ($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2 && $this->pagination->get('pages.total') > 1)) : ?>
<?php if( $this->pagination->get('pages.total') > 1 ) : ?>
<p class="counter">
<?php echo $this->pagination->getPagesCounter(); ?>
</p>
<?php endif; ?>
<?php if ($this->params->def('show_pagination_results', 1)) : ?>
<?php echo $this->pagination->getPagesLinks(); ?>
<?php endif; ?>
<?php endif; ?>

</div>


Attachment blog.txt not found

Last Edit: 13 years, 5 months ago by jmnetje.

Re: Category blog layout messed up 13 years, 5 months ago #19649

you can get it to work, if you can call it that, by going to extensions and then the content ext and set it to the joomla default router. wow! that is not impressive.

Re: Category blog layout messed up 13 years, 5 months ago #19650

thanks. I've got a copy and will look at it tomorrow. my template already has the dir structure and blog.php file. interesting it looks to be exactly like the joomla beez version but they stamped their license and copy all over it. hmmm.

anyway, with the extension set to the joomla default router the urls are decent enough. but when I have to do that I have to question why even bother with another sef com?

thanks again.
  • Page:
  • 1
Přihlášení uživatele Prázdný