Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Documentation
Docs
User Guide - English
Commits
f3f0ca02
Commit
f3f0ca02
authored
Jan 21, 2022
by
colemanw
Browse files
Merge branch 'urls' into 'master'
Documentation for action links See merge request
!548
parents
c1eac601
ed12488b
Changes
6
Hide whitespace changes
Inline
Side-by-side
docs/img/the-user-interface/search-kit/conditional-link.png
0 → 100644
View file @
f3f0ca02
70.2 KB
docs/img/the-user-interface/search-kit/per-field-link.png
0 → 100644
View file @
f3f0ca02
41.3 KB
docs/img/the-user-interface/search-kit/search-display-admin-rights.png
0 → 100644
View file @
f3f0ca02
32.9 KB
docs/img/the-user-interface/search-kit/search-display-links.png
0 → 100644
View file @
f3f0ca02
59.5 KB
docs/img/the-user-interface/search-kit/token-in-url.png
0 → 100644
View file @
f3f0ca02
66.8 KB
docs/the-user-interface/search-kit.md
View file @
f3f0ca02
...
...
@@ -10,7 +10,7 @@ It ships as an extension which you can enable on the Extensions screen from 5.29
overhauling existing code. This allows us to demarcate rapidly evolving
code and to keep long-standing code more stable. People can opt into
the extension or not. However, it is maintained as part of core against
the specific release it ships with (as it is closely tied to API v4
the specific release it ships with (as it is closely tied to API v4
functionality).
## Search components
...
...
@@ -18,7 +18,7 @@ It ships as an extension which you can enable on the Extensions screen from 5.29
There are 3 components to Search Kit: search screen, displays and forms. Depending on what you are doing you may not use all 3.
1.
The Search screen (or Compose Search):
This is where the search criteria and available fields are configured.
2.
Displays
...
...
@@ -130,6 +130,41 @@ Displays can be customized to make them fit the results better with options like
-
custom column headers and styles.
-
linking the column result to the entity
-
rewriting the column results with custom text or tokens.
-
customisable action links
### Action links
There are several ways to create links from a display. Each individual field can have a link associated with it.
In the table below links have been configured both on the fields and as actions.
The contact id has been configured to have a pop up 'edit contact' modal. Note how in row 3 the contact ID is
not a link - this is because the contact does not have permission to edit that contact (the edit link at the
right is missing for the same reason). The display name has been configured to link to 'view the contact' in
a new window (the view contact screen does not look nice in a popup) and the email field will load
a popup to send an email. The same things have also been configured as action links on the right (mostly
for demo purposes).

Note that the right hand buttons also include a 'delete action'. However, this is only visible
to the admin user who has permission to delete contacts.

When configuring a link per field you can choose from the listed drop down ones or construct your
own.

If you choose to construct your own you can use another field available to search kit as a parameter
in the url. In this case the email link is using email_id=[Contact_Email_contact_id_01.id] so that the
url will open with the chosen email id.

The configuration of the search actions is similar. As of 5.47 you can use conditions - such
as only display the send email action if email is not empty

### URL filtering
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment