Problem with Blog Layout........... Bug

Elegant Joomla template designed especially for both professional and personal website presentation.
GK User
Sun Aug 15, 2010 2:56 pm
Hi there, I think this is a bug and need help fixing it. There are 3 issues to be exact.

1. I have created a main menu item called "Blog" and in joomla made it a "Blog Layout". I have 3 articles in this blog layout all with different created and published dates however on the blog it just shows todays date (on the left: 15th Aug) on all 3 articles and not the correct published date for each??? See attached. :(

2. Also when I click the read more on any of these 3 articles I am taken to the homepage of the template and at the bottom of the homepage the article is opened up??? Obviously I do not want this and just want the article to open on its own page? :ohmy:

3. On the homepage of the site I like the blog article at the bottom but again when its opened it does not open in its own page even though I have assigned it to a menu item under Blog???

If you give me a private email I can send through access to the site as its not live just yet until I fix this blog page bug with the template.
User avatar
Gold Boarder

GK User
Mon Aug 16, 2010 1:13 pm
Shameless bump on this as its a pretty major issue and makes the template a little useless right now when you cannot have a simple Blog Layout? :blush:
User avatar
Gold Boarder

GK User
Mon Aug 16, 2010 10:32 pm
I have always had good support from Gavick but im feeling a little left out here :) This is a bug ive tried a lot of things to fix it and im stumped!!

Any help from anyone on this please?
User avatar
Gold Boarder

GK User
Mon Aug 16, 2010 10:36 pm
Please wait a moment - I'm working with it ;)
User avatar
Administrator

GK User
Mon Aug 16, 2010 10:39 pm
Its a slightly confusing one so if you need my site to test it off let me know - I can email you the link etc. Thanks for your time
User avatar
Gold Boarder

GK User
Mon Aug 16, 2010 11:22 pm
Problems 1 and 3 are probably connected with fact that articles or their categories haven't specified menu item - that's why it is showing on the frontpage.

About second problem: in html/com_content/category/blog_item.php please change fragment:
Code: Select all
<?php if (($this->item->params->get('show_create_date'))) : ?>
<div class="article-tools">
   <?php if ($this->item->params->get('show_create_date')) : ?>
      <?php $article_time = strtotime($this->item->created); ?>
   <span class="createdate-day">
      <?php echo JHTML::_('date', $this->item->modified, '%d'); ?>
   </span>
   <span class="createdate-month">
      <?php echo JHTML::_('date', $this->item->modified, '%B'); ?>
   </span>
   <?php endif; ?>
</div>
<?php endif; ?>


for:
Code: Select all
<?php if (($this->item->params->get('show_create_date'))) : ?>
<div class="article-tools">
   <?php if ($this->item->params->get('show_create_date')) : ?>
   <span class="createdate-day">
      <?php echo JHTML::_('date', $this->item->created, '%d'); ?>
   </span>
   <span class="createdate-month">
      <?php echo JHTML::_('date', $this->item->created, '%B'); ?>
   </span>
   <?php endif; ?>
</div>
<?php endif; ?>
User avatar
Administrator

GK User
Mon Aug 16, 2010 11:52 pm
Nope problem those articles have a menu item - blog. Even on that Blog page which has nothing to do with the homepage - when click the read more button the user gets taken to the homepage??? This is totally strange because they do have main menu item - blog? I can show you on my site if you wish.

I will try your solution for the blog dates
User avatar
Gold Boarder

GK User
Tue Aug 17, 2010 12:48 am
yes, please show me your website - dziudek[at]gavick[dot]com
User avatar
Administrator

GK User
Tue Aug 17, 2010 8:07 am
Hi there, I have sent you a private email just now. Thanks for your time as I still have not fixed this and it seems anything setup in a Blog Layout menu - will open on the homepage so its certainly a bug of some sort.
User avatar
Gold Boarder

GK User
Tue Aug 17, 2010 9:09 am
Just a quick update here. Your Code to fix the Blog Date issue worked. However I still have the other issue with the Blog read more buttons and titles always reverting to the homepage to display in full.
User avatar
Gold Boarder

GK User
Wed Aug 18, 2010 8:17 am
shameless bump here - is there anyway to fix this?
User avatar
Gold Boarder

GK User
Wed Aug 18, 2010 6:57 pm
After great support from Mr Dziudek in support, the following is the solution:

"Home" menu item overrides "Blog" menu item with Itemid. so therefore in order to get a blog layout to show on the homepage but also under a menu item you need to do the following

Please change "Home" menu item type to frontpage layout and please replace content of html/com_content/frontpage/default_item.php with html/com_content/category/blog_item.php - then you'll can manage items on your main page as a frontpage items.
User avatar
Gold Boarder

GK User
Thu Aug 19, 2010 6:49 am
this should be fixed with update 2.0.0
User avatar
Platinum Boarder

GK User
Wed Nov 10, 2010 8:36 pm
Sorry, but I didn't understand what to do excactly. Could you tell me more detailed? I have the 2.07 version now but it still not possible to get a 2 column blog layout on either page.

Would appreciate any support.
JG
User avatar
Junior Boarder

teitbite
Fri Nov 12, 2010 4:17 pm
Hi

probably the easiest way will be ro replace the respective file from joomla's com_content to the com_content folder in template.
User avatar
Moderator


cron