Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 27

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 13.12.2004, 20:36   #1 (permalink)
Baby Mamber
 
Join Date: Dec 2004
Posts: 12
mamborv is on a distinguished road
Default Help identifying Home page

Help !

I'm trying to modify this system for a client of mine, and I believe I found where I need make a change - in content.html.php We're running v. 4.5.0 (not the latest release, but one back) I'm going to need to change the "class" in specific areas to something other than "contentheading". My question - how can I tell, when I'm in this script, if the visitor is on the Home page or another page? If the visitor is on the Home page I'll need to change the "contentheading" class to one name, and if he's on an inside page, I'll need to change the "contentheading" class to something completely different. This was I can set up my style sheets to display the "contentheading" class on the Home page differently than it would display on an inside page.

I know that the parameter "option=com_frontpage" is set once a visitor is browsing and goes back to the Home page. But it is not set when a visitor comes to the site for the very first time (no parameters are set).

Thanks much for any help anyone can provide.

Mambo RV
mamborv is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 13.12.2004, 20:48   #2 (permalink)
Professional Mamber
 
zorkhh's Avatar
 
Join Date: Apr 2004
Location: Northern Germany
Posts: 713
zorkhh is on a distinguished road
Default Re: Help identifying Home page

Hi,

AFAIK it will work with option=...

Try to insert this directly after your body-tag in your template and call the site just with the domain. "Test" should appear.

<?php if ($option=="com_frontpage") echo "test"; ?>

hth

ZorkHH
__________________
News and stories around Joomla! PlanetJoomla.com
For individual Joomla-AddOns visit Joomlaexpert.com
zorkhh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 13.12.2004, 21:03   #3 (permalink)
Baby Mamber
 
Join Date: Dec 2004
Posts: 12
mamborv is on a distinguished road
Default Re: Help identifying Home page

It works, thank you. I probably should have tried that first before posting this message :} Thanks again.

Mambo RV
mamborv is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 13.12.2004, 22:56   #4 (permalink)
Baby Mamber
 
Join Date: Dec 2004
Posts: 12
mamborv is on a distinguished road
Default Re: Help identifying Home page

Hello all,

I spoke too soon. $option does in fact equal "com_frontpage" when I check it in the index.php template file. But when I check $option in the content.html.php program it equals "1" for all pages (I displayed it). What's more strange is that the inside page URL depicts "option=content". So just checking for $option=="com_frontpage" in content.html.php is not working. Any other thoughts?

Thanks in advance for your help.

Mambo RV
mamborv is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 13.12.2004, 23:11   #5 (permalink)
Senior Mamber
 
novocaine's Avatar
 
Join Date: Apr 2004
Location: Hamburg/Germany
Posts: 241
novocaine is on a distinguished road
Default Re: Help identifying Home page

Try this one:

PHP Code:
<?php
if ($_REQUEST["option"] == "com_frontpage") {
    echo 
"foo";
}
?>
__________________
Visit ThinkMambo - home of TMEdit and XHTMLSuite
WYSIWYG editors for Mambo Open Source
novocaine is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 14.12.2004, 16:30   #6 (permalink)
Baby Mamber
 
Join Date: Dec 2004
Posts: 12
mamborv is on a distinguished road
Default Re: Help identifying Home page

This seems to have done it, thank you. Your help is very much appreciated.

Mambo RV
mamborv is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How does Mambo determine the 'home page'? JayBlackwood Mambo 4.5.1 'How Do I' Questions 1 15.11.2004 17:37
change of page title only for home page? mhutchin Mambo 4.5 'How Do I' Questions 2 20.10.2004 14:54
different title only for home page? mhutchin Mambo 4.5.1 'How Do I' Questions 0 11.10.2004 04:09
my first page is not HOME !!! pokojang Mambo 4.5.1 General Talk 2 06.10.2004 12:02
Log-in and come back to the same page, not home page vivekhyd Mambo 4.5 'How Do I' Questions 1 03.06.2004 14:31


All times are GMT +2. The time now is 06:06.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.