LunpaCMS Whipping your website into shape! Introducing Lunpa, our mascot.  Her mother was a hamster and her father was Chilean M00se.  Oddly, neither smelt of elderberries.


LunpaCMS Administrative Menu Customization Documentation

A Quick Introduction

LunpaCMS automatically generates administrative menu based on the Managers installed in the site. Also, it allows site administrators an ability to add custom menu items under Dashboard tab for site specific administrative scripts.

How to Add Custom Menu Items to Administrative Page Menu System

In order to add menu items to administrative menu system, you can do followings:

  1. Place administrative scripts in <site_root>/admin/ directory.
  2. Create &get_admin_deshboard_menu_data() sub routine in the site's Library.
    sub get_admin_dashboard_menu_data {
      my ($FORM, %params) = @_;
      my (@menu_items);
    
      @menu_items = (
        { label=>'Custom Script 1',
          script=>'/admin/custom_script1.cgim',
          carryover_vars=>&Library_global::build_carryover_vars($FORM, var_list_additions=>[]),
          desc=>'Description about this script.'
        },
        { label=>'Custom Script 2',
          script=>'/admin/custom_script2.cgim',
          carryover_vars=>&Library_global::build_carryover_vars($FORM, var_list_additions=>[]),
          desc=>'Description about this script.'
        }
      );
    
      return @menu_items;
    }
    

Two menu items, Custom Script 1 and Customer Script 2, with links to /admin/custom_script1.cgim and /admin/custom_script2.cgim respectively will be created under Dashboard tab. If you want to pass any query string, use carryover_vars hash. If you want to put any description about the menu item, use desc hash.


Add Your Comment


(Only a limited set of HTML tags such as <b>, <i>, <u> are allowed. Embedded flash video from Youtube or Vimeo are also supported.)


Copyright © 2018 Peregrine Computer Consultants Corp. All rights reserved.

About Lunpa, our mascot. Her mother was a hamster and her father was an ill-tempered Chilean M00se. Oddly, neither smelt of elderberries.
The artist is Jennifer Lomax.