User link
From VYRE
Description of how to create user links and how to use them for searching.In addition to links between items in data and file stores you can create links between users and items in Vyre. User links need to be defined in a similar maner to item links but in stead of defining a link between one store and another you define a link between a store and a user realm. The following describes how to create user link definitions, link items to users and how to search for items linked to certain users.
Contents |
Defining user links
To define a user link definition from a store called "My Store" to a realm called "My Realm" you go to Content -> Data/File Stores -> My Store in the tree. This takes you to the search page for that store. Click Edit in the top bar and go to Edit... -> User Link Definitions. Click on Create to create a new Link Definition.
Here you need to choose "My Realm" in the Realm dropdown box, and give the link definition two names, one use to describe the relationship seen from the items point of view and vice versa.
For example a link from a store called Reports to Intranet users might be called "Reported by" from the items point of view but "Reported" from the user.
Linking a item to a user
You can link users to a item in the backend by coosing Edit... -> Links when editing a item.
You can also, and more importantly link users to items using the Item - Edit portlet. In the Item - Edit portlet set up to edit a store with user link definitions you will be given the option to add user link fields. A user link field can be set up to give various options, link one or multiple users at a time or to always link to the user creating/editing the item.
Searching for items based on user links
In the Item - Search portlet you can create a field for searching based on user links in much the same matter as the Item - Edit field. You can search for items linked to one or many users or create a Item - Search portlet that only finds items linked to the current user through a given item link.
Saved searches
In saved searches you can define a search that searches for users linked via a given user link. For example to find items linked to the current user via link definition with the id 555 use the query:
+userLink_555:$current_user
