Create dynamic links to related content in SharePoint
HTML-код
- Опубликовано: 7 июл 2024
- One often overlooked capability in SharePoint is creating relationships between lists and libraries. In this video, you'll see how to add a lookup column to create such a relationship and also how to create a link to view the resulting "related" items.
JSON formatter for "Meetings" column:
{
"$schema": "columnformatting.sharepointpnp...",
"elmType": "button",
"attributes": {
"class": "ms-fontColor-themePrimary ms-fontColor-themeDarker--hover"
},
"style": {
"border": "none",
"background-color": "transparent",
"cursor": "pointer"
},
"children": [
{
"elmType": "a",
"attributes": {
"iconName": "CalendarAgenda",
"href": "@currentField",
"target": "_blank",
"title": "Meeting list",
"class": "ms-fontColor-themePrimary ms-fontColor-themeDarker--hover"
},
"style": {
"text-decoration": "none",
"font-size": "2em",
"padding-left": "40px"
}
}
]
} Наука