wiki:CreacionMenu/en

Version 3 (modified by paqui, 12 years ago) (diff)

Ok

TOC?

Create menus for clients computers user interface

The start menu of OpenGnSys clients is managed from the administrator console.

There are two types of menus depending on the creation mode and the client interaction:

  • automatic menu:
    • Generated by specifics actions in the administrator console (commands and tasks)
    • Administration server is notified by clicking the link and the server sends the command to the client.
    • Commands are monitored by action console.
  • customize menu:
    • Generated by a html or php webpage, links embed OpenGNsys script calls or Linux bash commands.
    • Local commands are issued by clicking links without notifing the administrator console.

The menu can have a public zone used for all users and a private zone that only can be used by operators and administrators.

Create New Menu

In the "tab Menu" right click on "Define New Menu" and enter the following:

  • Menu Name: It will show in the administrator console.
  • Menu Title: It will show in the strat menu of OpenGnSys client.
  • Background Image
  • Comments
  • Public or Private Menu Items:
    • coordinate X and Y: Menu position respect to the edge of the screen.
    • method: Number of columns are distributed the icons of the items.
    • public menu url: Customized menu url.

If we want to modify this options, only we have to access to "tab Menu" and click on "Properties"

Automatic Menu

Including procedures or menu tasks

In the menu we can include procedures or tasks defined above. The procedures are executed in the computer where we are and the task is executed in the scope where it has been defined. In general, the procedures are shown in the public part of the menu and the tasks in the private.

To introduce procedures or tasks, we go to "tab Actions" on the procedure o task and right click on "Management Menu".

It shown a list of all existing menus and we can select what we want contains the action. In each case we have to select the type (public or private), icon, text and display order within each menu.

Review Actions included in the Menu

In the "tab Menus" on the desired menu, right-click on "Menu Information". We get a list with the following information:

  • Computers with this menu assigned.
  • Publics and Privates Items
  • Values for each item: Code, order of presentation, text and image.

Modify Actions included in Menu

In the "tab Menus" on the desired menu, right-click on "Manage Items". We get a list where we can modify the item options.

Create Customized Menu

Customized Menu Characteristics

OpenGnSys allow create customized menus. By default there are in /opt/opengngsys/www/menus directory, although it may be on another server.

There are standard web pages. We can include links to a command to be executed on the client. The url link must have the following format:

<a href=”command: nombre_comando”>Texto</a>

You can execute any command or bash script, including the especifics OpenGnSys (located in /opt/opengnsys/client/script). Functions included in the libraries (ie: ogGetIpAddress) can not be execute if not are called by a script.

We have an example of customized menu in the part of the code. When OpenGnSys is installed, it is copied as example in the adecuated folder.

Linking Customized Menu with Console Menu

The empty menu propierties defined on the console we should include the complete url of the customized menu page. We can see a public and private section, so we can define a custom menu independient for each.

The custom menu settings overlaps the automatic, so that if an automatic item exists it will not be displayed.

Private Zone Menu

In the private zone menu can access administrator users and operators classrooms.

The public menu show a link called "Management" and when clicking on it will ask an username and password. If there are correct we will see the operations of the private zone menu.

To exit from the private zone, click on link "return"

Attachments (7)

Download all attachments as: .zip