Konfiguration af menupunkter
From LimeSurvey Manual
Generelt
For at få adgang til tabellen menuindgange skal du klikke på Konfiguration og derefter på Konfiguration af menupunkter.
Denne funktion giver dig mulighed for at oprette, redigere eller slette menupunkter. For at være synlige/vises, skal disse poster tilføjes i en menu.
Følgende handlinger er tilgængelige:
- Opret en menuindgang
- Rediger menuindgang
- Slet menuindgang
- Omarranger menuindgange
- Nulstil menupunkter til standardværdierne
For at oprette en ny menuindgang skal du klikke på knappen + Ny øverst til venstre i vinduet. Følgende menuindstillinger vil blive vist:
- Menu: Vælg den menu, hvor den nye post vil være placeret ([[Menukonfiguration#Opret en menu|læs vores wiki om, hvordan man opretter menuer her] ]);
- Navn: Indtast navnet på menuindgangen;
- Titel: Titlen på den respektive post, som vil blive vist i menuen eller under visse faner (f.eks. under fanen undersøgelsesindstillinger)
- Bestilling: Hvis flere menupunkter føjes til en menu, skal du bruge denne funktion til at bestille dem.
- Menutitel : På en fane eller en menupost vil menutitlen blive vist på den første linje. Hvis du f.eks. klikker på Oversigt, placeret under fanen Undersøgelsesindstillinger, vil oversigtspanelet blive vist med (menu)titlen: Undersøgelsesoversigt
- Menunavn: Vises, når du holder musen over den respektive post. Hvis du f.eks. holder musen over Temaindstillinger, vises følgende besked: Rediger temaindstillinger for denne undersøgelse.
- Menuikon: Alle de brugte ikoner er som standard fantastiske ikoner. For at finde andre tilgængelige ikoner, tjek følgende link. Indfør i boksen strengen placeret efter "fa fa-". F.eks. for en diskette har vi "fa fa-floppy-o". For at bruge det som et ikon for en menupost, skriv kun "floppy-o" i denne boks.
- Menuikontyper: Det afhænger af dem, der bruges i dit aktuelle tema. For yderligere detaljer, tjek følgende wiki-sektion.
- Menuklasse:
- Menulink: Link menuindgangen til URL'en på den funktion
- Tilladelse:
- Tilladelsesgrad:
To change the details of an already existing menu entry, click the green button located in the Action column. The respective menu will get selected and you can do the edits.
To delete a menu entry, click the red trash button that corresponds to that respective menu entry (located in the Action column).
The ordering process takes first into account the menu an entry belongs to, and then it orders the entries according to the value from the order field. Once you change these values, click the reorder button to get the entries rearranged in the table.
To reset all the values of the survey menu entries to their default values, click the reset button located in the upper right part of the screen. A message will be displayed asking you to confirm the action. Please note that once you confirm the action, all the custom menu entries will be lost.
Examples
This example demonstrates how to add a Label sets menu entry to the default survey menu.
First, click the + New button located on the top left side of the screen and start completing the fields:
- Menu: Select from the dropdown list the menu you wish to add to the menu entry.
- Name: labelsets.
- Order: 20.
- Menu title: Label sets.
- Menu name: "Click here to edit the available sets."
- Menu icon: Check out the following link to find the right icon for the new menu entry. In the screenshot from above, I used "fa fa-battery-three-quarters".
- Menu icon type: Select from the dropdown box the "Fontawesome icon" option.
- Menu link: Find the URL of the option you wish to link the entry to, and copy everything after the website name (admin/labels/sa/view in our case):
Click the create button to verify that the new survey menu entry was added:
Check the survey menu to verify that the survey menu entry is functional:
When creating or editing a menu entry, you may find in the lower right part of the dialog the Toggle advanced options button. The following extra fields will be shown once you click it:
- Action
- Template
- Partial
- Classes
- Data
- Get data method
- Language
Once the edits are done, do not forget to click Save.