datadoit.com
|
| Posted: 04/14/2005, 12:41 PM |
|
PHP4; CCS 2.3
I'd like to be able to hide a link control based on what the current page
is.
Ex:
if ($ThisPage == "index.php") {
$ThisPage->Link_Home->Visible = false;
}
What's the quickest and easiest route?
Thanks.
-MikeR
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 04/14/2005, 3:35 PM |
|
Maybe:
global $FileName;
if ($FileName == "index.php") { ...}
($FileName is the exact name of the variable used within CCS pages)
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
datadoit.com
|
| Posted: 04/14/2005, 7:04 PM |
|
Sweet!
"peterr" <peterr@forum.codecharge> wrote in message
news:5425ef030f419f@news.codecharge.com...
> Maybe:
> global $FileName;
> if ($FileName == "index.php") { ...}
> _________________
> Peter R.
> YesSoftware Forums Moderator
> For product support please visit http://support.yessoftware.com
> ---------------------------------------
|
|
|
 |