[pmwiki-users] drop down menu

hsubryan at buffalo.edu hsubryan at buffalo.edu
Wed Apr 25 11:52:38 CDT 2007


First of all i would like to say pmwiki is an amazing tool. 
There's is so much you can do with this piece of software. 
Thank you to all the developers who have been working on this.

Since i'm a newbie, however, working on learning understanding the 
capabilities of pmwiki, i've run into a hump and can't get over it. 

My question relates to the drop down menu used in simple skin. Although
i have it working quite beautifully, there is a little delimena.  
Basically, i have a log-in/log-out system, separates public and private 
content.  There's an author menu's in the private section, which have 
edit, upload, history and print links, and also house another drop-down 
menu.  In the public menu, the drop down menu works, however in the 
private section it does not.  Initially i thought it was the style 
sheet, but i've duplicated the style for the drop down menu entirely, 
but it still does not work.  

I'm in desparate need of help on this. 
Anythoughts or feedback would be greatly appreciated. 

thank you.

Here is the break down of things:

simple.tmpl:
<div id="main">
<div id="menubar" $SkinMenuBarVisible>
			<span id = "popupmenu" style="float: 
right;">        
			<ul id = "menu">   
  			<li>Main
                        	<!--wiki:Site.SideBar-->
                        </li>


			<li>Content
                                <!--wiki:Site.ContentBar-->
                        </li> 

			
  			<li>Developers
                                <!--wiki:Site.DevBar-->
                        </li>
  			
				   
                        </ul> 
		</span>
</div>

<div id="amenubar">
                <span id= menu>
		$PageCustodianFmt 
		</span>
</div>


<div id="amenubarright">
		<span id= "rmenu">			
		$PageMenuFmt
		</span>
</div>
 
<div id="amenubarmiddle" $SkinMenuBarVisible>
		<span id = "apopupmenu">        
		<ul id = "amenu">   
		<li>
		 $PageDropMenuFmt<!--wiki:Site.EditBar-->
		
		</li>     
		<li>$PageDropMenuFmtt<!--wiki:Site.ToolsBar-->
		
		</li>    
		</ul>		
 		</span>
</div>

config.php file:
$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 = 'Editing Tools';
$PageDropMenuFmtt = 'Submissions';

$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>';
}







More information about the pmwiki-users mailing list