What are Link Columns?
In views, there is an option to add links, in addition to fields. To the right of the fields menu in the view editor is the links menu. This is where you can add links to delete a record, edit a record, view more details about a record, or link to another child page.
- Link to delete record: this will add a link to delete a record. When the user clicks on the link they will be asked to confirm the delete. Clicking yes will then remove the record from the table and delete it.
- Link to edit record: this will create a new child page with a form to edit this record. Clicking on the link will go to that page to edit the record.
- Link to view more details: this will create a new child page displaying all the details for this record. Clicking on the link will go to that page to view those details. This is useful if an object has too many fields to fit in a table. You can pick a few to show in the table and then show the full set of fields on a details page.
- Link to another page: reuse another page you've already created by linking to it. For example, if we already had a complex page that was showing details about a company record, we could link to that page instead of creating a new page for this table.
Add Link Columns
To add a link column, simply click on the link column you would like to add to your table:
The link column will be added to the right of the table as the last column.
Edit Link Columns
To edit a column link, simply hover over the column and click the edit icon.
Editing link columns gives you three customization options: Properties, Layout and Display Rules.
To learn more about link column settings, click here.
Delete Link Columns
Hover over a column and click the "trash can" icon to delete that column:
Warning: deleting a link column may delete child pages using this link.
Move Link Columns
To move field columns, click the header of the column you would like to move and drag it to either the left or right.
Link Column Settings
Editing link columns gives you three customization options: Properties, Layout and Display Rules.
Properties
- Scene to link to: The page that the link directs to. This is only available if "link to edit record", "link to view more details" or "link to another page" is selected.
- Column Header: Name of the column. This can be edited.
- Link Type: Text or field. A field will use the record value for that field as the clickable link text. This is only available if link to edit record, link to view more details or link to another page is selected.
- Link Text: The text that will display for the user to click on to follow the link. This is only available if link to edit record, link to view more details or link to another page is selected.
- Icon: An image that can be displayed with the link text or used instead of the link text.
Layout
- Column Width: Choose either a default width for your column or you can use a custom width of your choosing.
- Align: This will align the data in that column based on your choice. You can choose to have data aligned to the left, center or right.
Display Rules
A display rule is added by defining the conditions (if) that trigger the actions (then):
If: the conditions that will trigger the actions when each condition is true. More than one condition can be added to trigger the action, in which case every condition must be true.
Then: the action to trigger when the condition is met. There are five actions that can be triggered by display rules:
- Set Text Color: changes the text color to a color of your choice.
- Set Text Style: can choose to change the text to italic, bold, or both.
- Set Background Color: changes the background color of the cell in the table to a color of your choice.
- Display Icon: displays an icon next to the value in the cell with a color of your choice.
- Hide Value: hides the value in that cell in the table.
Multiple conditions and actions can be added for each rule by using the green "plus" button.