The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.



Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Thu Sep 13, 2007 1:28 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Apr 17, 2007 2:11 pm
Posts: 52
In v. 1x it was possible to use the following to exclude a module from the front page:

if ($_REQUEST['option'] <> "com_frontpage" )

does anyone know what the code would be for 1.5 please?? :)

thanks


Top
 Profile  
 
PostPosted: Fri Sep 14, 2007 1:40 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Jun 15, 2007 8:07 am
Posts: 112
yea its...
Code:
if (JRequest::getVar('view') == 'frontpage'){...}

_________________
http://www.speedingpc.com – Repair/speed up/secure/save space/pimp your computer


Top
 Profile  
 
PostPosted: Mon Sep 24, 2007 6:55 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Sep 11, 2007 5:16 pm
Posts: 21
I' trying to exclude an entire column on right side of the screen (3 column layout) for example, when the wrapper page comes up for the graphics link at http://ftmyersoffshore.com/.&nbsp; How is this used in this case?


Top
 Profile  
 
PostPosted: Sun Oct 21, 2007 4:58 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Jun 30, 2006 5:24 pm
Posts: 1168
Location: CZ
Just an example (if not on frontpage, then show right column with a module position user3 )




_________________
MarHaj


Top
 Profile  
 
PostPosted: Thu Oct 25, 2007 8:56 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Mar 24, 2006 4:58 pm
Posts: 92
Location: Derby, UK
Hi,

I'm trying to do something similar - that is detecting whether the search component is loaded or not and then displaying a module position.

I have used the getVar function as follows:

Code:
<?php if (JRequest::getVar(' view ') == 'search') : ?>
      <go and do stuff here>
      <?php endif; ?>


There is only one view for com_search and this isn't working? any ideas? I am using a template overide but only to get rid of tables and neaten up the layout. Should I be looking at a different variable name? And how/where can I find what these variables are?

Jon.


Top
 Profile  
 
PostPosted: Mon Oct 20, 2008 8:20 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 27, 2005 7:27 am
Posts: 97
Code:
<?php if(JRequest::getCmd('view') == 'search') : ?><!-- Search -->

Try this code. I usually use it for frontpage.

_________________
http://www.allmightyweb.com
Custom modules, components anad joomla templates


Top
 Profile  
 
PostPosted: Thu Nov 19, 2009 6:53 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sun Jun 14, 2009 6:39 pm
Posts: 2
And how should I do to use this code for an specific component, let´s say Rs form or an specific articles show as the default page?

Thanks indedd


Top
 Profile  
 
PostPosted: Fri Nov 20, 2009 7:33 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Tue Nov 17, 2009 11:16 am
Posts: 1
Really a educative and informative post, the post is good in all regards,I am glad to read this post.

_________________
Pro Acai Max


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 



Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group