This functionality is available as soon as you have installed the additional Linchpin Manager app with a valid license.
Attributes for user restriction
Choose up to three user profile fields to create a menu based on a user's profile. Assign menu entries on the structure tab. If you allow anonymous users to view the menu, they will only be shown menu items without assigned field values.
Display navigation entries based on user values
If you have configured filtering attributes in the settings view (see LNM - Menu Structure 2.7#Attributes for user restriction), you can define profile field values for each menu item. The menu entry will only be shown to users if their profile matches the entered values.
To preview the menu structure for certain attributes, you can enter arbitrary values under "Filter menu by defined attributes" as described above. For ease of use, the input fields offer auto-completion for any values you have already entered in the menu structure.
Use the wildcards and logical operators to create even more complex filters based on Confluence user values.
Wildcards and logical operators
In the past, you have already been able to assign menu items to specific profile field values. Now you can also use wildcards in addition to exact values. Using logical operators (AND, OR, NOT) you can also create more complex filters, e.g., to show a menu item to all users that have not selected English as their Confluence language ("NOT en*").
|Wildcard / Operator
|matches any value
|matches a single character
matches CEO and CTO , but not C3PO
|matches 0 or more characters
matches en , en_GB , en_US, but not de_DE or men
|Logical 'or' operator
|en_GB OR fr_FR
matches en_GB and fr_FR , but not de_DE
|Logical 'and' operator
|en* AND *GB
matches all values that start with en and end with GB
|Logical 'not' operator
|en* AND NOT en_US
matches all values that start with en except en_US
Due to the "Wildcards and logical operators" it is not possible to use key words in filter attributes. As a workaround, replace the key words with the same number of "?" signs (or at least one of the letters of the word).
These keys are case sensitive, so "And" or "and" would not match.
|New York (State)
|New York ?State?
|HR AND QS
|HR AN? QS
|NOT for everybody
|NO? for everybody
|This OR That
|This O? That
- No labels