Monday, May 21st

Last update05:36:30 AM GMT

Font Size

Screen

Profile

Layout

Menu Style

Cpanel
Welcome, Guest
Username Password: Remember me

Hide modules when viewing full article?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Hide modules when viewing full article?

Hide modules when viewing full article? 2 years, 9 months ago #1913

  • schmaka
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
I have a main menu item which is a blog layout for all my articles. The blog layout also has modules located on both the left and right sides.

When I link to the articles, it loads the article with the modules still showing both sides.

How do I set it up so the modules don't show up when reading the articles?

The reason for this is that I would like all my articles to be the full width of my template, not squashed between modules.

Any ideas?

cheers
schmaka

Re:Hide modules when viewing full article? 2 years, 9 months ago #1915

  • buipy001
  • OFFLINE
  • Administrator
  • Posts: 250
  • Karma: 12
You might be able to add a little bit of code to disable module areas when in full article view.

e.g. right modules if the view if article view.

This article might help you a bit:
www.joomladin.com/index.php/how-to/41-te...-module-display.html

or completely confuse you.

Peter
The only limitation is your imagination
www.pbwebdev.com.au

Twitter: twitter.com/astroboysoup
Facebook: www.facebook.com/pbwebdev

Re:Hide modules when viewing full article? 2 years, 9 months ago #1919

  • schmaka
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Thanks for the suggestion Peter... my head is completely spinning now!

Must admit, I was hoping for a simpler solution

cheers
schmaka

Re:Hide modules when viewing full article? 2 years, 8 months ago #1991

  • jengregory
  • OFFLINE
  • Senior Boarder
  • Posts: 61
  • Karma: 2
How are you linking to the articles - is it through the read more link? If so, why don't you manually set up a read more link and link to the article only. i.e. type Read More, highlight it, link to the article. This should work.
Jennifer Gregory
www.standoutwebdesign.com.au

Re:Hide modules when viewing full article? 2 years, 4 months ago #2409

  • patricki7
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Solved using the PHP from that tutorial

whereas "<jdoc:include type="modules" name="left" style="xhtml"/>" is the html that i want to hide from the full article view. I just inserted into the index.php of the template. however, this condititional statement could be used on anything.

 
<?php $view = JRequest::getVar('view', 0); ?>
<?php if ($view == "article") : ?>
<?php else : ?>
<div id='leftbar'>
<jdoc:include type="modules" name="left" style="xhtml"/>
</div>
<?php endif; ?>
 
Last Edit: 2 years, 4 months ago by patricki7.
  • Page:
  • 1
Time to create page: 0.55 seconds
You are here: Forum