Page 1 of 1

no header/footer

Posted: Mon May 29, 2023 1:12 am
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?


Re: no header/footer

Posted: Mon May 29, 2023 8:18 am
by mobhar

You may post your code for more discussion.


Re: no header/footer

Posted: Tue May 30, 2023 3:43 am
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?


Re: no header/footer

Posted: Tue May 30, 2023 9:50 am
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