Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Bug reports and fixes
.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
how to change or rotate intro banner
« previous
next »
Print
Pages: [
1
]
Author
Topic: how to change or rotate intro banner (Read 4918 times)
xmanhattan
Hero Member
Posts: 1235
If I'm still breathing, I'm doing something!
how to change or rotate intro banner
«
on:
August 11, 2008, 18:14:28 »
Hello all,
I would like to know how php can determine if it is on the front page or not.
I would like to be able to change banners depending on certain menu area selection
and have setup:
two id's for introbanners in my css file,
an introbanner position in module position of the template manager,
and two introbanner images.
What is the
parameter or key word
so that I can create the
if statement
.
e.g.
Code:
[Select]
if mos PageCount??? then oktoheader1
else
oktoheader2
Unless there is another way of doing this?
Assumes that the oktoheader1 and 2 css are the same so that there are no problems with image size and layout.
Petros
«
Last Edit: August 15, 2008, 12:23:28 by xmanhattan
»
Logged
Bournias.net
xmanhattan
Hero Member
Posts: 1235
If I'm still breathing, I'm doing something!
Re: how to change or rotate intro banner
«
Reply #1 on:
August 20, 2008, 17:17:48 »
Anyone?
Logged
Bournias.net
datahell
Elxis Team
Hero Member
Posts: 10356
Re: how to change or rotate intro banner
«
Reply #2 on:
August 22, 2008, 14:21:57 »
To determine if you are on the front-page you should check the value of the $option global variable.
global $option;
if (($option == 'com_frontpage') || ($option == '')) {
//you are in front-page
} else {
//you are not in front-page
}
I did nt get the rest you are talking about.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
xmanhattan
Hero Member
Posts: 1235
If I'm still breathing, I'm doing something!
Re: how to change or rotate intro banner
«
Reply #3 on:
August 23, 2008, 11:39:09 »
Thank you datahell.
I will work on what you have given me.
Petros
Logged
Bournias.net
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
how to change or rotate intro banner