Wikka Documentation : WikkaMenus

HomePage :: Index :: RecentChanges :: Search :: Login/Register
[2300] Latest edit on 2012-05-20 00:44:11 by BrianKoontz [minor typo]


Additions:
image
Deletions:
image


[2299] Edited on 2012-05-20 00:43:09 by BrianKoontz [added screenshots]


Additions:
Generated navlinks in header for administrators (right below the page title):
image
Generate action links in footer for administrators only:
image

Deletions:
Generated navlinks in header for administrators (right below the page title).
Generate action links in footer for administrators only.



[2298] Edited on 2012-05-20 00:38:31 by BrianKoontz [added new menus as of 1.3]


Additions:
since 1.2

image

main_menu.admin.inc

Generated navlinks in header for administrators (right below the page title).
Settings
You are Unknown action "whoami/whoami.php"
Unknown action "logout/logout.php"

main_menu.user.inc

Generated navlinks in header for non-admin users (right below the page title).
Settings
You are Unknown action "whoami/whoami.php"
Unknown action "logout/logout.php"
Generate navlinks for anonymous users (right below the page title).

options_menu.admin.inc

Generate action links in footer for administrators only.
Unknown action "revertlink/revertlink.php"
Unknown action "deletelink/deletelink.php"
Unknown action "clonelink/clonelink.php"
Unknown action "referrerslink/referrerslink.php"

options_menu.user.inc

Generate action links in footer for non-admin users.
Unknown action "clonelink/clonelink.php"
Generate action links in footer for anonymous users.

Deletions:
since 1.3.7



[2297] Edited on 2012-05-20 00:31:56 by BrianKoontz [added new menus]


Additions:
since 1.2
By default two menu templates are bundled with Wikka, main_menu and options_menu.
since 1.3
Several new menu templates have been added (see below).
since 1.3.7

since 1.3

dashboard.admin.inc

This menu generates an admin toolbar in the upper right corner, visible to administrators only:
AdminUsers
AdminPages
SysInfo
WikkaConfig
Please make sure that the server has write access to a folder named uploads.

Deletions:
By default two menu templates are bundled with Wikka, main_menu and options_menu.


[2095] Edited on 2009-09-02 11:43:31 by DarTar [legacy menu settings]


Additions:

Legacy navigation links (Wikka 1.1.X)

Before Wikka 1.2, menu settings were stored in the config file as navigation_links and logged_in_navigation_links. As of 1.2 these settings are obsolete: when upgrading to 1.2, the installer will attempt to parse the existing menu configuration and write it to the corresponding menu template files. The server must have write access to the config/ folder to be able to perform this operation.



[2087] Edited on 2009-09-02 09:34:54 by DarTar [menu templates docs]


Additions:
Wikka 1.2 introduces support for menu templates as part of its new theme functionality. Menu template files can contain any kind of text, actions (including custom ones) or wiki markup and are stored in the config/ directory. Different menu items are separated by a new line.
Menu widgets (or "menulets") are the most obvious candidates to add content to menu templates. {{homepagelink}}, for example, creates a link to the wiki's homepage, {{editlink}} creates a link to edit the current page (if the user has sufficient privileges to do so) and so on.
By default two menu templates are bundled with Wikka, main_menu and options_menu.

Default menu templates

main_menu.inc

main_menu controls the content of the main navigation bar, with links to the most important pages and functionality of the wiki.
[[CategoryCategory Categories]]
PageIndex
RecentChanges
RecentlyCommented
[[UserSettings Login/Register]]
Your hostname is {{whoami}}
{{searchform}}

options_menu.inc

options_menu controls the content of the footer toolbar, with links to a variety of handlers.
{{editlink}}
{{historylink}}
{{revisionlink}}
{{ownerlink}}

ACL and menu templates

Menu template files containing the .user and .admin suffix are loaded when the current user is a registered user or an admin, respectively.
This allows you to control the different kinds of content displayed to different users as a function of their privileges.

Creating custom menus

You can create an unlimited number of custom menus and navigation bars by storing the corresponding templates in the config/ folder. Menu templates are loaded via the MakeMenu() method. MakeMenu() takes as an argument the name of the template file (without suffixes), e.g.:
templates/default/header.php (line 59)
  1. <?php echo $this->MakeMenu('main_menu'); ?>

MakeMenu() automatically takes care of displaying the correct template files as a function of the privileges of the current user, so you don't need to use an ACL test when using it in a theme. The output of MakeMenu() is an unordered list using the menu template name as an id (which can be used to style/position the menu via the stylesheet), e.g.:
<ul id="main_menu">
<li><a class="" href="http://testme/wikka/1.2/wikka.php?wakka=CategoryCategory">Categories</a></li>
<li><a class="" href="http://testme/wikka/1.2/wikka.php?wakka=PageIndex">PageIndex</a></li>
<li><a class="" href="http://testme/wikka/1.2/wikka.php?wakka=RecentChanges">RecentChanges</a></li>
<li><a class="" href="http://testme/wikka/1.2/wikka.php?wakka=RecentlyCommented">RecentlyCommented</a></li>
<li><a class="" href="http://testme/wikka/1.2/wikka.php?wakka=UserSettings">Login/Register</a></li>
<li>Your hostname is <tt>wakka</tt></li>
<li><form action="http://testme/wikka/1.2/wikka.php?wakka=TextSearch" id="form_c2b696fff2">
<fieldset class="hidden">
    <input type="hidden" name="wakka" value="TextSearch" />
</fieldset>
<label for="searchbox">Search: </label><input id="searchbox" name="phrase" size="15" class="searchbox" /></form>
</li>
</ul>

Deletions:
The documentation for this new feature will be uploaded soon


[2082] Edited on 2009-09-02 06:22:13 by DarTar [links]


Additions:


Deletions:




[2066] Edited on 2009-09-02 03:34:43 by DarTar [coming soon]


Additions:
The documentation for this new feature will be uploaded soon


[2023] Edited on 2009-08-19 06:59:55 by DarTar [stub]


Additions:

Menu Template Files

NOTE
This feature is available since:
WikkaWiki 1.2
 



CategoryEN

Deletions:
(stub)


[2013] The oldest known version of this page was created on 2009-08-19 04:33:38 by DarTar [stub for the documentation of the Wikka menu config files]

History of recent changes for WikkaMenus
(stub)
Creative Common Attribution-ShareAlike License
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0542 seconds