no header/footer

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
danilo.macri
User
Posts: 93

no header/footer

Post by danilo.macri »

I inserted an image in Page:head with the program logo.

if I generate a page with no header/footer the header image (of Page_Head) remains....how can I remove it when I use no header/footer?


mobhar
User
Posts: 11660

Post by mobhar »

You may post your code for more discussion.


danilo.macri
User
Posts: 93

Post by danilo.macri »

in page_head i put this code

if (!isset($_GET["export"]) && CurrentPageID()!="edit"){
    print "<p align='center' style='line-height:0px'><img src='/DETENUTI/GEDE.jpg' width='550' height='55'></p>";
}

$nomeprofilo = CurrentUserLevelName();
$nome= CurrentUserInfo("nome");
if (CurrentuserID()>-3 && !isset($_GET["export"])){
echo "<p align='center' style='line-height:0px;font-size:12px'>Ciao <b>$nome</b> sei attualmente connesso con il profilo da: <b>$nomeprofilo</b></p>";

}

if i generate a no header/footer page the menu disappears but the header of Page_Head remains.
how can I do?


mobhar
User
Posts: 11660

Post by mobhar »

Just add this condition into your code in Page_Head server event (assume your custom file's object name is "News"; you may check the custom file's object name from models sub-folder):

if (CurrentPage()->PageObjName != "News") { // begin of check
    // your code goes below ...

} // end of check

Post Reply