[pmwiki-users] drowdown menu hlelp_simpleskin
hsubryan at buffalo.edu
hsubryan at buffalo.edu
Wed Apr 18 10:10:48 CDT 2007
Hello,
I'm currently working of a wiki site, which uses a drop down menu
system. I have login/logout system working. There is a set of drop
down menu for public viewing and then there is set of menus which i
want enable when the user login to the site. I have part of that
system working. When users login, the edit, history, print and logout
links all shows up. These work fine, however, the problem is when the
users login, the second set of drop down menus do not work.
////This is the code i'm using the config file to enable the
login/logout process.
$pagename = ResolvePageName($pagename);
$isEditAuthorized = CondAuth($pagename, 'edit'); #detects current
rights mode
if (!$isEditAuthorized) { #conditionally sets menu layout
$PageCustodianFmt = '
<ul>
<li><a href="$PageUrl?action=login">Authors Login</a></li>
</ul>';
} else {
$PageCustodianFmt = '
<ul><li><a href="$PageUrl?action=logout">Authors Logout</a></li></ul>
';
$PageDropMenuFmt = 'Wiki Tools';
$PageDropMenuFmtt = 'Admin <!--wiki:Site.AdminBar-->';
$PageMenuFmt = '
<ul>
<li><a href="$PageUrl?action=edit">Edit Page</a></li>
<li><a href="$PageUrl?action=diff">History</a></li>
<li><a href="$PageUrl?action=upload">Upload</a></li>
<li><a href="$PageUrl?action=print">Print</a></li>
</ul>';
}
////This is the code which is used in the .tmpl file.
<div id="main">
<div id="menubar" $SkinMenuBarVisible>
<span id = "popupmenu" style="float: right;">
<ul id = "menu">
<li>Main
<!--wiki:Site.SideBar-->
</li>
<li>Edit
<!--wiki:Site.EditBar-->
</li>
<li>Development
<!--wiki:Site.DevBar-->
</li>
<li>Content
<!--wiki:Site.ContentBar-->
</li>
</ul>
</span>
</div>
<div class="clearer"></div>
<div id="amenubar">
<span id= menu>
$PageCustodianFmt
</span>
</div>
<div id="amenubarmiddle" $SkinMenuBarVisible>
<span id = "apopupmenu">
<ul id = "amenu">
<li>$PageDropMenuFmt <!--wiki:Site.ToolsBar--></li>
</ul>
</span>
</div>
<div id="amenubarright">
<span id= "amenu">
$PageMenuFmt
</span>
</div>
<div class="clearer"></div>
This is the link to what the drop down skin looks like.
http://www.pmwiki.org/wiki/Cookbook/SimpleSkinPreview
I basically duplicated the popupmenu settings in the css file seeing
that the originals were all ids. Thank you for any help in advance.
Heamchand Subryan.
More information about the pmwiki-users
mailing list