Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

[BUG} CSS: Zen Grid Menutype = Section Blog

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi JB,

I discovered a small bug in the Zen Grid Framework today - hoping you can help with a fix.

SOURCE:

When the Zen Grid template is in 'right column' mode for a section-blog, the right-column modules display below the content (instead of just to the right of the main content).

HOW TO RECREATE THE ISSUE:

The Quickest Way: I was able to quickly create the issue by changing the 'blog' menu from a category-blog to a section-blog, within the 'CorePlus' snapshot.

All indication is that the same thing applies for the QuickStart, etc, as well.

PROBLEM CODE:

The conflict is originating at some level with the template override file located at:
zengrid/html/com_content/section/blog_item.php

The area of the code causing the problem is at the start of the document - something in here:
<div class="jbSection">
<?php if ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own')) : ?>
<div class="contentpaneopen_edit<?php echo $this->escape($this->item->params->get('pageclass_sfx')); ?>">
	<?php echo JHTML::_('icon.edit', $this->item, $this->item->params, $this->access); ?>
</div>
<?php endif; ?>

TEMPORARY SOLUTION:

I've commented out the code for now, to no noticeable effect.

- Thanks for any solutions / tips!
  • Andrew J. Holden's Avatar
  • Andrew J. Holden
  • 3 Month Basic
  • 95 posts
  • 2 Thanks
  • Karma: 2
The administrator has disabled public write access.
Hi Andrew,

Do you have a link where we can see this?

Thanks Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Hi Anthony,

Sorry, we're only running Zen on WAMP at the moment.

That said, I was able to quickly re-create the problem with both the snapshot(s) and quickstart.

Basically, just unpublish any modules other than 'right' and set a menu to a section-blog. I used the 'popular' module but any seem to create the issue. Removing the override code set things back.

- HC
  • Andrew J. Holden's Avatar
  • Andrew J. Holden
  • 3 Month Basic
  • 95 posts
  • 2 Thanks
  • Karma: 2
The administrator has disabled public write access.
Wow thanks for spotting that - just a missing closing div at the bottom of the page.

If you add </div> before this line:
<?php echo $this->item->event->afterDisplayContent;

It will fix the issue.

Thanks Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
No problem - glad to help. Thanks for the fix.

- HC
  • Andrew J. Holden's Avatar
  • Andrew J. Holden
  • 3 Month Basic
  • 95 posts
  • 2 Thanks
  • Karma: 2
The administrator has disabled public write access.
No probs thanks Andrew :)
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers