How to not show the module

Free responsive Joomla 2.5 and 3.x module to present your content with easy and intuitive way.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Thu Sep 02, 2010 1:57 pm
Hi,,

I put the GK news show pro4 in specific module location on my page.

It is work and no problem at all with the module.

However, when i click 1 of the articles contained the module and go to the article page, the module is still there..I want the module is not there, so i get clean article page without the module...

Thanks
User avatar
Fresh Boarder

GK User
Thu Sep 02, 2010 2:10 pm
I would guess its all about the modules-assignment.

Opening the module you can chose, to which menus it shall be assigned. The module will only show up on assigned menu points
User avatar
Senior Boarder

teitbite
Fri Sep 03, 2010 9:56 am
Hi

Yeap. That's a right answer.
User avatar
Moderator

GK User
Sat Sep 11, 2010 9:10 am
Hi, I have a slightly different issue, or maybe what arpanjayadi was talking about is this:
I use the Gavik GK3 to show the articles in a category instead of the usual bloglist (i configure the menu item to show 0 articles, and than go get them with the news show)
here is the result:
Image

my problem is that when you click on one of the articles it shows up as it is supposed to show up but the module is still there (because it is still the same menu item i guess)

Image

so,would it be possible to make the module disappear when the article is shown.

Regards,

Dmitriy
User avatar
Fresh Boarder

teitbite
Sun Sep 12, 2010 3:31 pm
Hi

I've helped with such problems before by hiding the NSP module at article view screen.

Please in default.php file add something like this:

Code: Select all
<?php
if($_GET['view']=='article'){
?>
<style type="text/css">news_show_pro_class { display:none; }</style>
<?
}
?>


Please of course choose right class name.
User avatar
Moderator

GK User
Mon Sep 13, 2010 11:40 am
Hi, thank you for your reply!

as I'm no genius in php I couldn't quite figure out where to put the lines you suggested me, but still could figure out what they should do.
so what I finally did is modify the view.default.php where it renders the table and made it look like this
Code: Select all
<table <?php echo $this->mstyle; ?> class="gk_news_show_table

<?php
if($_GET['view']=='article')
echo " gk_art_view"
?>

" id="<?php echo $this->module_unique_id; ?>">


where separated lines (which I took from your example) add a " gk_art_view" class to the rendered table, which I made invisible
Code: Select all
table.gk_news_show_table.gk_art_view {display:none;}

in my css file, thus, finally it renders in at the end but is invisible... which is fine too :lol:
so thank you !!
User avatar
Fresh Boarder

teitbite
Tue Sep 14, 2010 9:06 pm
Hi

Glad it helped. But my code simply relised the css code in article view. A little less of the code :)
User avatar
Moderator


cron