[pmwiki-users] Rightbar style switcher

Hans Bracker design at flutesong.net
Wed Jan 26 09:51:17 CST 2005


To switch on styles for the RightBar in my gemini skin i use:

$rpage = ReadPage(FmtPageName('$Group.RightBar', $pagename));
if ($rpage['text'] == '') $rpage = ReadPage('Main.RightBar');
if ($rpage['text'] > '') { ..... }

Now if a $Group.RightBar exists but is empty, the empty Rightbar page
will be displayed with styling, meaning an empty small box appears.
What i need is to test also if such  a page exists, in semi-English:

( if $Group.RightBar exists AND content>0 ) OR
( if Main.RightBar content>0 )
 then {...}

How can i write that in code?
  

thanks so much!
 Hans                          




More information about the pmwiki-users mailing list