Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

References (not just links) to item (view and menu item) – Update to released plone.restapi.relations #4842

Merged
merged 15 commits into from
Jun 14, 2023
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified docs/source/_static/user-manual/manage/link-to-items.png
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to reduce the image width by resizing the browser width for legibility? Images should be no wider than 740 pixels to fit within the documentation's main view port.

https://6.docs.plone.org/contributing/documentation/authors.html#plone-documentation-styleguide

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course, thanks for the hint. Changed in c4106b0

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 14 additions & 14 deletions docs/source/user-manual/links-to-item.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
---
myst:
html_meta:
"description": "User manual on how to find all links to the current item."
"property=og:description": "User manual on how to find all links to the current item."
"property=og:title": "Finding links to the current item."
"keywords": "Volto, Plone, frontend, React, User manual, links"
"description": "User manual on how to find all links and relations to the current item."
"property=og:description": "User manual on how to find all links and relations to the current item."
"property=og:title": "Finding links and relations to the current item."
"keywords": "Volto, Plone, frontend, React, User manual, links, relations, references, related content"
---

(links-to-item-label)=

# Finding links to the current item
# Finding links and references to the current page

Sometimes it can be hard to keep track from where a certain page is referenced.
This is especially true whenever you want to reconstruct your website with a greater number of objects being moved or deleted.
For this situation, you can visit the {guilabel}`Links to item` page, which is an overview of all objects that refererence a certain object.
For this situation, you can visit the {guilabel}`Links and references` page, which is an overview of all content items that refererence a certain content item.

```{note}
An item references another item by creating a hyperlink to this item, using the item in a block, or using it in the {guilabel}`Related Items` field.
An item references another item by creating a hyperlink to this item, using the item in a block, referencing it in the {guilabel}`Related Items` field, or referencing it in a relation field.
```

## {guilabel}`Links to item` view
## {guilabel}`Links and references` view

In the toolbar on the left side, you can click on the item with the three horizontally aligned dots, called {guilabel}`More menu`.
Click then on the item labeled {guilabel}`Links to item`.
Click then on the item labeled {guilabel}`Links and references`.

You can see now a table displaying all links to the current item.
You can see now a table displaying all links and references to the current item.

```{image} ../_static/user-manual/manage/link-to-items.png
:alt: A panel captioned with "Links to My Summer Vacation - Day 2". A table with two columns (first column labeled with "linked by this item", second column labeled with "review state"). In the row appears a link titled "Links to My Summer Vacation - Day 1", because it is referencing the current item.
:alt: A panel captioned with "Links and references to 'My Summer Vacation - Day 2'". A table with three columns (first column labeled with "Linking / referencing this item", second column labeled with "Review state", third column labeled with "Type"). In the row appears a link titled "Links to My Summer Vacation - Day 1", because it is referencing the current item.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:alt: A panel captioned with "Links and references to 'My Summer Vacation - Day 2'". A table with three columns (first column labeled with "Linking / referencing this item…", second column labeled with "Review state", third column labeled with "Type"). In the row appears a link titled "Links to My Summer Vacation - Day 1", because it is referencing the current item.
:alt: A panel captioned with "Content that links to or references 'Supervisor Adélaïde Pickavance'". Below the caption, there is a table with three sections, where each section has three columns. The first column's heading is the section name, the second is "Review State", and the third is "Type". The three sections are named, from top to bottom, "Linking this item with hyperlink in text", "Referencing the item as related item", and "Referencing this item with '[Name of Relation Field]'".

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I applied your suggestion and tried to find wording for the fact that the table is generative: the two relations "hyperlink in text" and "related items" and further more if there are custom relations and items that are relating with these custom relations. Hope that is understandable?
99af3e5

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it is too difficult to describe in words, maybe the table is too complex? Maybe it would be easier to have three tables, instead of three sections in one table? Then we don't have do alt text gymnastics.

I don't know whether mentioning the table is generative would be helpful, and would cause further confusion.

Anyway, when I get stuck on what to do, I usually go with the simpler method. ¯\_(ツ)_/¯

```

For editors, this view gives insight to whether those links are still relevant.
On second sight, it also helps to prevent potential broken links.
For editors, this view gives insight to whether those links and references are still relevant.
On second sight, it also helps to prevent potential broken links and relations.

For example, when you try to delete this page with other pages linking to it, you will get a warning that this will cause broken links that lead to a "not found" error page.
For example, when you try to delete this page with other pages linking to it, you will get a warning that this will cause broken links or relations that lead to a "not found" error page.
If you receive such a warning, you can inspect this view and go through each referencing page, removing any references.
34 changes: 34 additions & 0 deletions locales/ca/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ msgstr ""
#: components/manage/Controlpanels/UpgradeControlPanel
#: components/manage/Diff/Diff
#: components/manage/History/History
#: components/manage/LinksToItem/LinksToItem
#: components/manage/Multilingual/ManageTranslations
#: components/manage/Preferences/ChangePassword
#: components/manage/Preferences/PersonalPreferences
Expand Down Expand Up @@ -754,6 +755,11 @@ msgstr ""
msgid "Content rules from parent folders"
msgstr ""

#: components/manage/LinksToItem/LinksToItem
# defaultMessage: Content that links or references to {title}
msgid "Content that links or references to {title}"
msgstr ""

#: components/manage/Controlpanels/ContentTypes
# defaultMessage: Content type created
msgid "Content type created"
Expand Down Expand Up @@ -1933,6 +1939,17 @@ msgstr "Enllaç a"
msgid "Link translation for"
msgstr "Traducció d'enllaços per"

#: components/manage/LinksToItem/LinksToItem
# defaultMessage: Linking this item with hyperlink in text
msgid "Linking this item with hyperlink in text"
msgstr ""

#: components/manage/LinksToItem/LinksToItem
#: components/manage/Toolbar/More
# defaultMessage: Links and references
msgid "Links and references"
msgstr ""

#: components/manage/Blocks/Listing/schema
# defaultMessage: Listing
msgid "Listing"
Expand Down Expand Up @@ -2266,6 +2283,11 @@ msgstr "No s'han trobat articles en aquest contenidor."
msgid "No items selected"
msgstr "No s'ha seleccionat cap element"

#: components/manage/LinksToItem/LinksToItem
# defaultMessage: No links to this item found.
msgid "No links to this item found."
msgstr ""

#: components/manage/Blocks/Maps/MapsSidebar
# defaultMessage: No map selected
msgid "No map selected"
Expand Down Expand Up @@ -2643,6 +2665,16 @@ msgstr ""
msgid "Reduce complexity"
msgstr "Disseny de taula minimalista"

#: components/manage/LinksToItem/LinksToItem
# defaultMessage: Referencing this item as related item
msgid "Referencing this item as related item"
msgstr ""

#: components/manage/LinksToItem/LinksToItem
# defaultMessage: Referencing this item with {relationship}
msgid "Referencing this item with {relationship}"
msgstr ""

#: components/theme/Anontools/Anontools
#: components/theme/Login/Login
#: components/theme/Register/Register
Expand Down Expand Up @@ -2808,6 +2840,7 @@ msgid "Revert to this revision"
msgstr "Torna a aquesta revisió"

#: components/manage/Contents/Contents
#: components/manage/LinksToItem/LinksToItem
# defaultMessage: Review state
msgid "Review state"
msgstr "Estat de revisió"
Expand Down Expand Up @@ -3685,6 +3718,7 @@ msgid "Triggering event field error. Please select a value"
msgstr ""

#: components/manage/Controlpanels/ContentTypes
#: components/manage/LinksToItem/LinksToItem
#: components/manage/Widgets/SchemaWidget
#: components/theme/View/TabularView
# defaultMessage: Type
Expand Down
34 changes: 34 additions & 0 deletions locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ msgstr "Verfügbare Inhaltsregeln:"
#: components/manage/Controlpanels/UpgradeControlPanel
#: components/manage/Diff/Diff
#: components/manage/History/History
#: components/manage/LinksToItem/LinksToItem
#: components/manage/Multilingual/ManageTranslations
#: components/manage/Preferences/ChangePassword
#: components/manage/Preferences/PersonalPreferences
Expand Down Expand Up @@ -751,6 +752,11 @@ msgstr "Inhaltsregeln für {title}"
msgid "Content rules from parent folders"
msgstr "Inhaltsregeln von übergeordneten Seiten"

#: components/manage/LinksToItem/LinksToItem
# defaultMessage: Content that links or references to {title}
msgid "Content that links or references to {title}"
msgstr "Zu {title} verlinkende oder referenzierende Inhalte"

#: components/manage/Controlpanels/ContentTypes
# defaultMessage: Content type created
msgid "Content type created"
Expand Down Expand Up @@ -1930,6 +1936,17 @@ msgstr "Link auf"
msgid "Link translation for"
msgstr "Übersetzung verbinden"

#: components/manage/LinksToItem/LinksToItem
# defaultMessage: Linking this item with hyperlink in text
msgid "Linking this item with hyperlink in text"
msgstr "Inhalte, die im Text auf diesen Inhalt verlinken"

#: components/manage/LinksToItem/LinksToItem
#: components/manage/Toolbar/More
# defaultMessage: Links and references
msgid "Links and references"
msgstr "Links und Referenzen"

#: components/manage/Blocks/Listing/schema
# defaultMessage: Listing
msgid "Listing"
Expand Down Expand Up @@ -2263,6 +2280,11 @@ msgstr "Keine Elemente gefunden"
msgid "No items selected"
msgstr "Kein Element ausgewählt"

#: components/manage/LinksToItem/LinksToItem
# defaultMessage: No links to this item found.
msgid "No links to this item found."
msgstr "Keine Links gefunden."

#: components/manage/Blocks/Maps/MapsSidebar
# defaultMessage: No map selected
msgid "No map selected"
Expand Down Expand Up @@ -2640,6 +2662,16 @@ msgstr "Wiederholen"
msgid "Reduce complexity"
msgstr "Komplexität reduzieren"

#: components/manage/LinksToItem/LinksToItem
# defaultMessage: Referencing this item as related item
msgid "Referencing this item as related item"
msgstr "Inhalte, die diesen Inhalt als verwandten Inhalt referenzieren"

#: components/manage/LinksToItem/LinksToItem
# defaultMessage: Referencing this item with {relationship}
msgid "Referencing this item with {relationship}"
msgstr "Inhalte, die diesen Inhalt mit {relationship} referenzieren"

#: components/theme/Anontools/Anontools
#: components/theme/Login/Login
#: components/theme/Register/Register
Expand Down Expand Up @@ -2805,6 +2837,7 @@ msgid "Revert to this revision"
msgstr "Die aktuelle Version durch diese ersetzen"

#: components/manage/Contents/Contents
#: components/manage/LinksToItem/LinksToItem
# defaultMessage: Review state
msgid "Review state"
msgstr "Arbeitsablauf"
Expand Down Expand Up @@ -3682,6 +3715,7 @@ msgid "Triggering event field error. Please select a value"
msgstr "Fehler im auslösenden Ereignis. Bitte geben Sie einen Wert ein"

#: components/manage/Controlpanels/ContentTypes
#: components/manage/LinksToItem/LinksToItem
#: components/manage/Widgets/SchemaWidget
#: components/theme/View/TabularView
# defaultMessage: Type
Expand Down
34 changes: 34 additions & 0 deletions locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ msgstr ""
#: components/manage/Controlpanels/UpgradeControlPanel
#: components/manage/Diff/Diff
#: components/manage/History/History
#: components/manage/LinksToItem/LinksToItem
#: components/manage/Multilingual/ManageTranslations
#: components/manage/Preferences/ChangePassword
#: components/manage/Preferences/PersonalPreferences
Expand Down Expand Up @@ -745,6 +746,11 @@ msgstr ""
msgid "Content rules from parent folders"
msgstr ""

#: components/manage/LinksToItem/LinksToItem
# defaultMessage: Content that links or references to {title}
msgid "Content that links or references to {title}"
msgstr ""

#: components/manage/Controlpanels/ContentTypes
# defaultMessage: Content type created
msgid "Content type created"
Expand Down Expand Up @@ -1924,6 +1930,17 @@ msgstr ""
msgid "Link translation for"
msgstr ""

#: components/manage/LinksToItem/LinksToItem
# defaultMessage: Linking this item with hyperlink in text
msgid "Linking this item with hyperlink in text"
msgstr ""

#: components/manage/LinksToItem/LinksToItem
#: components/manage/Toolbar/More
# defaultMessage: Links and references
msgid "Links and references"
msgstr ""

#: components/manage/Blocks/Listing/schema
# defaultMessage: Listing
msgid "Listing"
Expand Down Expand Up @@ -2257,6 +2274,11 @@ msgstr ""
msgid "No items selected"
msgstr ""

#: components/manage/LinksToItem/LinksToItem
# defaultMessage: No links to this item found.
msgid "No links to this item found."
msgstr ""

#: components/manage/Blocks/Maps/MapsSidebar
# defaultMessage: No map selected
msgid "No map selected"
Expand Down Expand Up @@ -2634,6 +2656,16 @@ msgstr ""
msgid "Reduce complexity"
msgstr ""

#: components/manage/LinksToItem/LinksToItem
# defaultMessage: Referencing this item as related item
msgid "Referencing this item as related item"
msgstr ""

#: components/manage/LinksToItem/LinksToItem
# defaultMessage: Referencing this item with {relationship}
msgid "Referencing this item with {relationship}"
msgstr ""

#: components/theme/Anontools/Anontools
#: components/theme/Login/Login
#: components/theme/Register/Register
Expand Down Expand Up @@ -2799,6 +2831,7 @@ msgid "Revert to this revision"
msgstr ""

#: components/manage/Contents/Contents
#: components/manage/LinksToItem/LinksToItem
# defaultMessage: Review state
msgid "Review state"
msgstr ""
Expand Down Expand Up @@ -3676,6 +3709,7 @@ msgid "Triggering event field error. Please select a value"
msgstr ""

#: components/manage/Controlpanels/ContentTypes
#: components/manage/LinksToItem/LinksToItem
#: components/manage/Widgets/SchemaWidget
#: components/theme/View/TabularView
# defaultMessage: Type
Expand Down
34 changes: 34 additions & 0 deletions locales/es/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ msgstr "Reglas de contenido disponibles:"
#: components/manage/Controlpanels/UpgradeControlPanel
#: components/manage/Diff/Diff
#: components/manage/History/History
#: components/manage/LinksToItem/LinksToItem
#: components/manage/Multilingual/ManageTranslations
#: components/manage/Preferences/ChangePassword
#: components/manage/Preferences/PersonalPreferences
Expand Down Expand Up @@ -756,6 +757,11 @@ msgstr "Reglas de contenido para {title}"
msgid "Content rules from parent folders"
msgstr "Reglas de contenido de las carpetas principales"

#: components/manage/LinksToItem/LinksToItem
# defaultMessage: Content that links or references to {title}
msgid "Content that links or references to {title}"
msgstr ""

#: components/manage/Controlpanels/ContentTypes
# defaultMessage: Content type created
msgid "Content type created"
Expand Down Expand Up @@ -1935,6 +1941,17 @@ msgstr "Enlazar a"
msgid "Link translation for"
msgstr "Enlazar traducción de"

#: components/manage/LinksToItem/LinksToItem
# defaultMessage: Linking this item with hyperlink in text
msgid "Linking this item with hyperlink in text"
msgstr ""

#: components/manage/LinksToItem/LinksToItem
#: components/manage/Toolbar/More
# defaultMessage: Links and references
msgid "Links and references"
msgstr ""

#: components/manage/Blocks/Listing/schema
# defaultMessage: Listing
msgid "Listing"
Expand Down Expand Up @@ -2268,6 +2285,11 @@ msgstr "No hay elementos en esta carpeta."
msgid "No items selected"
msgstr "No se han seleccionado elementos"

#: components/manage/LinksToItem/LinksToItem
# defaultMessage: No links to this item found.
msgid "No links to this item found."
msgstr ""

#: components/manage/Blocks/Maps/MapsSidebar
# defaultMessage: No map selected
msgid "No map selected"
Expand Down Expand Up @@ -2645,6 +2667,16 @@ msgstr "Rehacer"
msgid "Reduce complexity"
msgstr "Reducir complejidad"

#: components/manage/LinksToItem/LinksToItem
# defaultMessage: Referencing this item as related item
msgid "Referencing this item as related item"
msgstr ""

#: components/manage/LinksToItem/LinksToItem
# defaultMessage: Referencing this item with {relationship}
msgid "Referencing this item with {relationship}"
msgstr ""

#: components/theme/Anontools/Anontools
#: components/theme/Login/Login
#: components/theme/Register/Register
Expand Down Expand Up @@ -2810,6 +2842,7 @@ msgid "Revert to this revision"
msgstr "Revertir a esta revisión"

#: components/manage/Contents/Contents
#: components/manage/LinksToItem/LinksToItem
# defaultMessage: Review state
msgid "Review state"
msgstr "Estado"
Expand Down Expand Up @@ -3687,6 +3720,7 @@ msgid "Triggering event field error. Please select a value"
msgstr "Error de campo de evento desencadenante. Por favor seleccione un valor"

#: components/manage/Controlpanels/ContentTypes
#: components/manage/LinksToItem/LinksToItem
#: components/manage/Widgets/SchemaWidget
#: components/theme/View/TabularView
# defaultMessage: Type
Expand Down
Loading