diff --git a/docs/source/_static/user-manual/manage/link-to-items.png b/docs/source/_static/user-manual/manage/link-to-items.png index 8922f8ce679..3d72bf39c33 100644 Binary files a/docs/source/_static/user-manual/manage/link-to-items.png and b/docs/source/_static/user-manual/manage/link-to-items.png differ diff --git a/docs/source/user-manual/links-to-item.md b/docs/source/user-manual/links-to-item.md index e584ba1e19b..13d720eb6a3 100644 --- a/docs/source/user-manual/links-to-item.md +++ b/docs/source/user-manual/links-to-item.md @@ -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 reference 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 to and references of 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 "Content that links to or references 'Supervisor Adélaïde Pickavance'". Below the caption, there is a table with one section per relation type, where each section has three columns. The first column's heading is the relation name, the second is "Review State", and the third is "Type". The 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]'". ``` -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. \ No newline at end of file diff --git a/locales/ca/LC_MESSAGES/volto.po b/locales/ca/LC_MESSAGES/volto.po index e01b268d76d..9bc111f684e 100644 --- a/locales/ca/LC_MESSAGES/volto.po +++ b/locales/ca/LC_MESSAGES/volto.po @@ -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 @@ -754,6 +755,11 @@ msgstr "" msgid "Content rules from parent folders" msgstr "" +#: components/manage/LinksToItem/LinksToItem +# defaultMessage: Content that links to or references {title} +msgid "Content that links to or references {title}" +msgstr "" + #: components/manage/Controlpanels/ContentTypes # defaultMessage: Content type created msgid "Content type created" @@ -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" @@ -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" @@ -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 @@ -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ó" @@ -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 diff --git a/locales/de/LC_MESSAGES/volto.po b/locales/de/LC_MESSAGES/volto.po index 22c83cb8a68..0e02089413c 100644 --- a/locales/de/LC_MESSAGES/volto.po +++ b/locales/de/LC_MESSAGES/volto.po @@ -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 @@ -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 to or references {title} +msgid "Content that links to or references {title}" +msgstr "Zu {title} verlinkende oder referenzierende Inhalte" + #: components/manage/Controlpanels/ContentTypes # defaultMessage: Content type created msgid "Content type created" @@ -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" @@ -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" @@ -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 @@ -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" @@ -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 diff --git a/locales/en/LC_MESSAGES/volto.po b/locales/en/LC_MESSAGES/volto.po index c85490b44bf..299b09fbcd4 100644 --- a/locales/en/LC_MESSAGES/volto.po +++ b/locales/en/LC_MESSAGES/volto.po @@ -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 @@ -745,6 +746,11 @@ msgstr "" msgid "Content rules from parent folders" msgstr "" +#: components/manage/LinksToItem/LinksToItem +# defaultMessage: Content that links to or references {title} +msgid "Content that links to or references {title}" +msgstr "" + #: components/manage/Controlpanels/ContentTypes # defaultMessage: Content type created msgid "Content type created" @@ -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" @@ -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" @@ -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 @@ -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 "" @@ -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 diff --git a/locales/es/LC_MESSAGES/volto.po b/locales/es/LC_MESSAGES/volto.po index 696ad123e64..3775e2659ba 100644 --- a/locales/es/LC_MESSAGES/volto.po +++ b/locales/es/LC_MESSAGES/volto.po @@ -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 @@ -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 to or references {title} +msgid "Content that links to or references {title}" +msgstr "" + #: components/manage/Controlpanels/ContentTypes # defaultMessage: Content type created msgid "Content type created" @@ -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" @@ -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" @@ -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 @@ -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" @@ -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 diff --git a/locales/eu/LC_MESSAGES/volto.po b/locales/eu/LC_MESSAGES/volto.po index b19c9ad4ded..ed3168d991f 100644 --- a/locales/eu/LC_MESSAGES/volto.po +++ b/locales/eu/LC_MESSAGES/volto.po @@ -433,6 +433,7 @@ msgstr "Erabilgarri dauden eduki-erregelak:" #: 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 @@ -752,6 +753,11 @@ msgstr "{title} elementuaren eduki erregelak" msgid "Content rules from parent folders" msgstr "Gurasoetan dauden eduki erregelak" +#: components/manage/LinksToItem/LinksToItem +# defaultMessage: Content that links to or references {title} +msgid "Content that links to or references {title}" +msgstr "" + #: components/manage/Controlpanels/ContentTypes # defaultMessage: Content type created msgid "Content type created" @@ -1931,6 +1937,17 @@ msgstr "Esteka" msgid "Link translation for" msgstr "Lotu itzulpena" +#: 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" @@ -2264,6 +2281,11 @@ msgstr "Karpeta honetan ez dago elementurik" msgid "No items selected" msgstr "Ez da elementurik aukeratu" +#: 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" @@ -2641,6 +2663,16 @@ msgstr "Berregin" msgid "Reduce complexity" msgstr "Konplexutasuna gutxitu" +#: 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 @@ -2806,6 +2838,7 @@ msgid "Revert to this revision" msgstr "Bertsio honetara itzuli" #: components/manage/Contents/Contents +#: components/manage/LinksToItem/LinksToItem # defaultMessage: Review state msgid "Review state" msgstr "Egoera" @@ -3683,6 +3716,7 @@ msgid "Triggering event field error. Please select a value" msgstr "Akzioaren eremuan errorea. Aukeratu balio bat" #: components/manage/Controlpanels/ContentTypes +#: components/manage/LinksToItem/LinksToItem #: components/manage/Widgets/SchemaWidget #: components/theme/View/TabularView # defaultMessage: Type diff --git a/locales/fi/LC_MESSAGES/volto.po b/locales/fi/LC_MESSAGES/volto.po index 19345cfa05f..77b000ffb41 100644 --- a/locales/fi/LC_MESSAGES/volto.po +++ b/locales/fi/LC_MESSAGES/volto.po @@ -437,6 +437,7 @@ msgstr "Saatavilla olevat sisältösäännöt:" #: 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 @@ -756,6 +757,11 @@ msgstr "Sisältösäännöt kohteelle {title} " msgid "Content rules from parent folders" msgstr "Sisältösäännöt ylemmistä kansioista" +#: components/manage/LinksToItem/LinksToItem +# defaultMessage: Content that links to or references {title} +msgid "Content that links to or references {title}" +msgstr "" + #: components/manage/Controlpanels/ContentTypes # defaultMessage: Content type created msgid "Content type created" @@ -1935,6 +1941,17 @@ msgstr "Linkin kohde" msgid "Link translation for" msgstr "Linkin käännös kohteelle" +#: 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" @@ -2268,6 +2285,11 @@ msgstr "Ei sisältöä" msgid "No items selected" msgstr "Sisältöä ei ole valittu" +#: 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" @@ -2645,6 +2667,16 @@ msgstr "Toista" msgid "Reduce complexity" msgstr "Yksinkertainen taulukko" +#: 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 @@ -2810,6 +2842,7 @@ msgid "Revert to this revision" msgstr "Palauta tämä versio" #: components/manage/Contents/Contents +#: components/manage/LinksToItem/LinksToItem # defaultMessage: Review state msgid "Review state" msgstr "Julkaisutila" @@ -3687,6 +3720,7 @@ msgid "Triggering event field error. Please select a value" msgstr "Käynnistä tapahtumakentän virhe. Valtse arvo" #: components/manage/Controlpanels/ContentTypes +#: components/manage/LinksToItem/LinksToItem #: components/manage/Widgets/SchemaWidget #: components/theme/View/TabularView # defaultMessage: Type diff --git a/locales/fr/LC_MESSAGES/volto.po b/locales/fr/LC_MESSAGES/volto.po index cfcd5a0af4f..c66a75aa05e 100644 --- a/locales/fr/LC_MESSAGES/volto.po +++ b/locales/fr/LC_MESSAGES/volto.po @@ -443,6 +443,7 @@ msgstr "Règles de contenu 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 @@ -762,6 +763,11 @@ msgstr "Règles de contenu pour {title}" msgid "Content rules from parent folders" msgstr "Règles de contenu des dossiers parents" +#: components/manage/LinksToItem/LinksToItem +# defaultMessage: Content that links to or references {title} +msgid "Content that links to or references {title}" +msgstr "" + #: components/manage/Controlpanels/ContentTypes # defaultMessage: Content type created msgid "Content type created" @@ -1941,6 +1947,17 @@ msgstr "Lien vers" msgid "Link translation for" msgstr "Traduction du lien pour" +#: 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" @@ -2274,6 +2291,11 @@ msgstr "Aucun élément trouvé dans ce conteneur" msgid "No items selected" msgstr "Aucun élément sélectionné" +#: 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" @@ -2651,6 +2673,16 @@ msgstr "Refaire" msgid "Reduce complexity" msgstr "Réduisez la complexité" +#: 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 @@ -2816,6 +2848,7 @@ msgid "Revert to this revision" msgstr "Revenir à cette révision" #: components/manage/Contents/Contents +#: components/manage/LinksToItem/LinksToItem # defaultMessage: Review state msgid "Review state" msgstr "Etat de révision" @@ -3693,6 +3726,7 @@ msgid "Triggering event field error. Please select a value" msgstr "Erreur avec le champ événement déclencheur. Veuillez choisir une valeur" #: components/manage/Controlpanels/ContentTypes +#: components/manage/LinksToItem/LinksToItem #: components/manage/Widgets/SchemaWidget #: components/theme/View/TabularView # defaultMessage: Type diff --git a/locales/it/LC_MESSAGES/volto.po b/locales/it/LC_MESSAGES/volto.po index 64d87aadc67..1cd6b64cbf5 100644 --- a/locales/it/LC_MESSAGES/volto.po +++ b/locales/it/LC_MESSAGES/volto.po @@ -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 @@ -745,6 +746,11 @@ msgstr "" msgid "Content rules from parent folders" msgstr "" +#: components/manage/LinksToItem/LinksToItem +# defaultMessage: Content that links to or references {title} +msgid "Content that links to or references {title}" +msgstr "" + #: components/manage/Controlpanels/ContentTypes # defaultMessage: Content type created msgid "Content type created" @@ -1924,6 +1930,17 @@ msgstr "Link a" msgid "Link translation for" msgstr "Collega traduzione 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" @@ -2257,6 +2274,11 @@ msgstr "Nessun elemento trovato in questo contenitore." msgid "No items selected" msgstr "Nessun elemento selezionato" +#: 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" @@ -2634,6 +2656,16 @@ msgstr "Ripeti" msgid "Reduce complexity" msgstr "Riduci complessità" +#: 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 @@ -2799,6 +2831,7 @@ msgid "Revert to this revision" msgstr "Ripristina questa versione" #: components/manage/Contents/Contents +#: components/manage/LinksToItem/LinksToItem # defaultMessage: Review state msgid "Review state" msgstr "Stato del workflow" @@ -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 diff --git a/locales/ja/LC_MESSAGES/volto.po b/locales/ja/LC_MESSAGES/volto.po index 9aef53b1573..06b1640a59f 100644 --- a/locales/ja/LC_MESSAGES/volto.po +++ b/locales/ja/LC_MESSAGES/volto.po @@ -434,6 +434,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 @@ -753,6 +754,11 @@ msgstr "" msgid "Content rules from parent folders" msgstr "" +#: components/manage/LinksToItem/LinksToItem +# defaultMessage: Content that links to or references {title} +msgid "Content that links to or references {title}" +msgstr "" + #: components/manage/Controlpanels/ContentTypes # defaultMessage: Content type created msgid "Content type created" @@ -1932,6 +1938,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" @@ -2265,6 +2282,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" @@ -2642,6 +2664,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 @@ -2807,6 +2839,7 @@ msgid "Revert to this revision" msgstr "このリビジョンに戻す" #: components/manage/Contents/Contents +#: components/manage/LinksToItem/LinksToItem # defaultMessage: Review state msgid "Review state" msgstr "審査状態" @@ -3684,6 +3717,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 diff --git a/locales/nl/LC_MESSAGES/volto.po b/locales/nl/LC_MESSAGES/volto.po index c563bf05bbd..04d4f1b52fd 100644 --- a/locales/nl/LC_MESSAGES/volto.po +++ b/locales/nl/LC_MESSAGES/volto.po @@ -445,6 +445,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 @@ -764,6 +765,11 @@ msgstr "" msgid "Content rules from parent folders" msgstr "" +#: components/manage/LinksToItem/LinksToItem +# defaultMessage: Content that links to or references {title} +msgid "Content that links to or references {title}" +msgstr "" + #: components/manage/Controlpanels/ContentTypes # defaultMessage: Content type created msgid "Content type created" @@ -1943,6 +1949,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" @@ -2276,6 +2293,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" @@ -2653,6 +2675,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 @@ -2818,6 +2850,7 @@ msgid "Revert to this revision" msgstr "Deze rivisie herstellen" #: components/manage/Contents/Contents +#: components/manage/LinksToItem/LinksToItem # defaultMessage: Review state msgid "Review state" msgstr "" @@ -3695,6 +3728,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 diff --git a/locales/pt/LC_MESSAGES/volto.po b/locales/pt/LC_MESSAGES/volto.po index b9f0a4602be..ed46ef0a8b9 100644 --- a/locales/pt/LC_MESSAGES/volto.po +++ b/locales/pt/LC_MESSAGES/volto.po @@ -434,6 +434,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 @@ -753,6 +754,11 @@ msgstr "" msgid "Content rules from parent folders" msgstr "" +#: components/manage/LinksToItem/LinksToItem +# defaultMessage: Content that links to or references {title} +msgid "Content that links to or references {title}" +msgstr "" + #: components/manage/Controlpanels/ContentTypes # defaultMessage: Content type created msgid "Content type created" @@ -1932,6 +1938,17 @@ msgstr "Ligar a" 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" @@ -2265,6 +2282,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" @@ -2642,6 +2664,16 @@ msgstr "" msgid "Reduce complexity" msgstr "Reduzir complexidade" +#: 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 @@ -2807,6 +2839,7 @@ msgid "Revert to this revision" msgstr "Reverter para esta revisão" #: components/manage/Contents/Contents +#: components/manage/LinksToItem/LinksToItem # defaultMessage: Review state msgid "Review state" msgstr "" @@ -3684,6 +3717,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 diff --git a/locales/pt_BR/LC_MESSAGES/volto.po b/locales/pt_BR/LC_MESSAGES/volto.po index 899a0fa7e47..7700d65ac46 100644 --- a/locales/pt_BR/LC_MESSAGES/volto.po +++ b/locales/pt_BR/LC_MESSAGES/volto.po @@ -436,6 +436,7 @@ msgstr "Regras de conteúdo disponíveis:" #: 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 @@ -755,6 +756,11 @@ msgstr "Regras de conteúdo para {title}" msgid "Content rules from parent folders" msgstr "Regras de conteúdo de pastas pai" +#: components/manage/LinksToItem/LinksToItem +# defaultMessage: Content that links to or references {title} +msgid "Content that links to or references {title}" +msgstr "" + #: components/manage/Controlpanels/ContentTypes # defaultMessage: Content type created msgid "Content type created" @@ -1934,6 +1940,17 @@ msgstr "Link para" msgid "Link translation for" msgstr "Linkar tradução para" +#: 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" @@ -2267,6 +2284,11 @@ msgstr "Não foram encontrados itens nesta pasta." msgid "No items selected" msgstr "Nenhum item selecionado" +#: 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" @@ -2644,6 +2666,16 @@ msgstr "Refazer" msgid "Reduce complexity" msgstr "Reduzir complexidade" +#: 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 @@ -2809,6 +2841,7 @@ msgid "Revert to this revision" msgstr "Reverter para esta revisão" #: components/manage/Contents/Contents +#: components/manage/LinksToItem/LinksToItem # defaultMessage: Review state msgid "Review state" msgstr "Estado" @@ -3686,6 +3719,7 @@ msgid "Triggering event field error. Please select a value" msgstr "Erro no campo de gatilho. Selecione um valor" #: components/manage/Controlpanels/ContentTypes +#: components/manage/LinksToItem/LinksToItem #: components/manage/Widgets/SchemaWidget #: components/theme/View/TabularView # defaultMessage: Type diff --git a/locales/ro/LC_MESSAGES/volto.po b/locales/ro/LC_MESSAGES/volto.po index 30009767d5f..6ae4126f749 100644 --- a/locales/ro/LC_MESSAGES/volto.po +++ b/locales/ro/LC_MESSAGES/volto.po @@ -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 @@ -745,6 +746,11 @@ msgstr "" msgid "Content rules from parent folders" msgstr "" +#: components/manage/LinksToItem/LinksToItem +# defaultMessage: Content that links to or references {title} +msgid "Content that links to or references {title}" +msgstr "" + #: components/manage/Controlpanels/ContentTypes # defaultMessage: Content type created msgid "Content type created" @@ -1924,6 +1930,17 @@ msgstr "Legătură către" msgid "Link translation for" msgstr "Legătură traducere pentru" +#: 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" @@ -2257,6 +2274,11 @@ msgstr "Nu s-au găsit articole în acest container." msgid "No items selected" msgstr "Niciun element selectat" +#: 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" @@ -2634,6 +2656,16 @@ msgstr "Reface" msgid "Reduce complexity" msgstr "Reduce complexitatea" +#: 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 @@ -2799,6 +2831,7 @@ msgid "Revert to this revision" msgstr "Reveniți la această revizuire" #: components/manage/Contents/Contents +#: components/manage/LinksToItem/LinksToItem # defaultMessage: Review state msgid "Review state" msgstr "Stare de revizuire" @@ -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 diff --git a/locales/volto.pot b/locales/volto.pot index 0524dad36f1..2ca0ee9db75 100644 --- a/locales/volto.pot +++ b/locales/volto.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2023-06-02T14:22:59.421Z\n" +"POT-Creation-Date: 2023-06-13T06:46:20.670Z\n" "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \n" "MIME-Version: 1.0\n" @@ -428,6 +428,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 @@ -747,6 +748,11 @@ msgstr "" msgid "Content rules from parent folders" msgstr "" +#: components/manage/LinksToItem/LinksToItem +# defaultMessage: Content that links to or references {title} +msgid "Content that links to or references {title}" +msgstr "" + #: components/manage/Controlpanels/ContentTypes # defaultMessage: Content type created msgid "Content type created" @@ -1926,6 +1932,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" @@ -2259,6 +2276,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" @@ -2636,6 +2658,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 @@ -2801,6 +2833,7 @@ msgid "Revert to this revision" msgstr "" #: components/manage/Contents/Contents +#: components/manage/LinksToItem/LinksToItem # defaultMessage: Review state msgid "Review state" msgstr "" @@ -3678,6 +3711,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 diff --git a/locales/zh_CN/LC_MESSAGES/volto.po b/locales/zh_CN/LC_MESSAGES/volto.po index e8f5457cddf..1bca113ac6f 100644 --- a/locales/zh_CN/LC_MESSAGES/volto.po +++ b/locales/zh_CN/LC_MESSAGES/volto.po @@ -432,6 +432,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 @@ -751,6 +752,11 @@ msgstr "{title}的内容规则" msgid "Content rules from parent folders" msgstr "父文件夹的内容规则" +#: components/manage/LinksToItem/LinksToItem +# defaultMessage: Content that links to or references {title} +msgid "Content that links to or references {title}" +msgstr "" + #: components/manage/Controlpanels/ContentTypes # defaultMessage: Content type created msgid "Content type created" @@ -1930,6 +1936,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" @@ -2263,6 +2280,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" @@ -2640,6 +2662,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 @@ -2805,6 +2837,7 @@ msgid "Revert to this revision" msgstr "回退到这个版本" #: components/manage/Contents/Contents +#: components/manage/LinksToItem/LinksToItem # defaultMessage: Review state msgid "Review state" msgstr "审核状态" @@ -3682,6 +3715,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 diff --git a/news/4842.feature b/news/4842.feature new file mode 100644 index 00000000000..457228117d1 --- /dev/null +++ b/news/4842.feature @@ -0,0 +1 @@ +Tune 'Links to item' view to 'Links and references' view. Show all relation types. @ksuess \ No newline at end of file diff --git a/src/actions/index.js b/src/actions/index.js index 3bc2e17847a..8212c75bf78 100644 --- a/src/actions/index.js +++ b/src/actions/index.js @@ -75,7 +75,6 @@ export { createRelations, deleteRelations, queryRelations, - resetRelations, } from '@plone/volto/actions/relations/relations'; export { rebuildRelations } from '@plone/volto/actions/relations/rebuild'; export { listRoles } from '@plone/volto/actions/roles/roles'; diff --git a/src/actions/relations/relations.js b/src/actions/relations/relations.js index 063b2244e33..6b837a366c3 100644 --- a/src/actions/relations/relations.js +++ b/src/actions/relations/relations.js @@ -7,7 +7,6 @@ import { CREATE_RELATIONS, DELETE_RELATIONS, LIST_RELATIONS, - RESET_RELATIONS, } from '@plone/volto/constants/ActionTypes'; /** @@ -85,16 +84,3 @@ export function queryRelations( }, }; } - -/** - * Reset relations function - * @function resetRelations - * @param {string} subrequest Key of the subrequest. - * @returns {Object} Reset relations action - */ -export function resetRelations(subrequest = null) { - return { - type: RESET_RELATIONS, - subrequest, - }; -} diff --git a/src/components/manage/LinksToItem/LinksToItem.jsx b/src/components/manage/LinksToItem/LinksToItem.jsx index 582e859fb07..0919a639d38 100644 --- a/src/components/manage/LinksToItem/LinksToItem.jsx +++ b/src/components/manage/LinksToItem/LinksToItem.jsx @@ -9,13 +9,7 @@ import { Portal } from 'react-portal'; import { Container, Segment, Table } from 'semantic-ui-react'; import { FormattedMessage, defineMessages, useIntl } from 'react-intl'; import { useDispatch, useSelector } from 'react-redux'; -import { map } from 'lodash'; -import { - queryRelations, - resetRelations, - getContent, - resetContent, -} from '@plone/volto/actions'; +import { getContent, queryRelations } from '@plone/volto/actions'; import { Icon as IconNext, Toolbar, @@ -30,134 +24,128 @@ const messages = defineMessages({ id: 'Back', defaultMessage: 'Back', }, - linktoitem: { - id: 'Link To Item', - defaultMessage: 'Link To Item', - }, - success: { - id: 'Success', - defaultMessage: 'Success', - }, - successAdd: { - id: 'Alias has been added', - defaultMessage: 'Alias has been added', + linkstoitem: { + id: 'Links and references', + defaultMessage: 'Links and references', }, }); const LinksToItem = (props) => { const intl = useIntl(); - const pathname = props.location.pathname; const dispatch = useDispatch(); - const relations_subrequest = useSelector( - (state) => state.relations.subrequests, + const pathname = props.location.pathname; + const itempath = getBaseUrl(pathname); + + const title = useSelector((state) => state.content.data?.title || ''); + const myrelations = useSelector( + (state) => state.relations.subrequests[itempath]?.relations, ); - const content_subrequest = useSelector((state) => state.content.subrequests); - const content = content_subrequest[pathname]?.data; - const relations = relations_subrequest[pathname]?.relations; useEffect(() => { - if (!content_subrequest[pathname]) { - dispatch(getContent(getBaseUrl(pathname), null, pathname)); - } - return () => { - resetContent(pathname); - }; - }, [dispatch, pathname, content_subrequest]); + dispatch(queryRelations(null, false, itempath, null, [itempath])); + }, [dispatch, itempath]); useEffect(() => { - if ( - !relations_subrequest[pathname] && - content_subrequest[pathname]?.data?.UID - ) { - dispatch( - queryRelations(null, false, pathname, null, [ - content_subrequest[pathname]?.data?.UID, - ]), - ); - } - return () => { - resetRelations(pathname); - }; - }, [dispatch, content_subrequest[pathname]?.data?.UID, relations_subrequest]); + if (!title) dispatch(getContent(itempath)); + }, [dispatch, itempath, title]); let links = {}; - - // Create a list of links (via constructing a hashmap and thus avoiding duplicates) - if (relations) { - for (const relation_items of Object.values(relations.items)) { - for (const item of relation_items) { - links[item.source.UID] = item.source; - } - } + if (myrelations) { + Object.keys(myrelations).forEach((relationtype) => { + links[relationtype] = {}; + myrelations[relationtype].items.forEach((item) => { + links[relationtype][item.source.UID] = item.source; + }); + }); } - let links_ordered = Object.values(links).sort((link) => link['@id']); - const relations_found = links_ordered.length > 0; - return content && relations ? ( - - + let links_ordered = {}; + Object.keys(links).forEach((relationtype) => { + links_ordered[relationtype] = Object.values(links[relationtype]).sort( + (link) => link['@id'], + ); + }); + + const relations_found = Object.keys(links_ordered).length > 0; + return ( + + {content.title} }} + id="Content that links to or references {title}" + defaultMessage="Content that links to or references {title}" + values={{ title: {title} }} /> - {relations_found && ( - <> - - - - - - - - - - - - - - - { - - {map(links_ordered, (link) => ( - - - - - {link.title} - - - - - {link.review_state} - - - ))} - - } -
- - )} - {!relations_found && ( + {relations_found ? ( + + { + + {Object.keys(links_ordered).map((relationtype) => { + return [].concat( + [ + + + {relationtype === 'isReferencing' ? ( + + ) : relationtype === 'relatedItems' ? ( + + ) : ( + <> + {relationtype} }} + /> + + )} + + + + + + + + , + ], + links_ordered[relationtype].map((link) => { + return ( + + + + + {link.title} + + + + + {link.review_state} + + + {link.type_title || ''} + + + ); + }), + ); + })} + + } +
+ ) : ( { pathname={pathname} hideDefaultViewButtons inner={ - + { )}
- ) : null; + ); }; export default LinksToItem; diff --git a/src/components/manage/LinksToItem/LinksToItem.test.jsx b/src/components/manage/LinksToItem/LinksToItem.test.jsx index 22463c0f786..e29506cd661 100644 --- a/src/components/manage/LinksToItem/LinksToItem.test.jsx +++ b/src/components/manage/LinksToItem/LinksToItem.test.jsx @@ -19,51 +19,41 @@ describe('LinksToItem', () => { const store = mockStore({ relations: { subrequests: { - '/page-1/links-to-item': { - loading: false, - loaded: true, - error: null, + '/page-1': { relations: { - '@id': - 'http://localhost:3000/VirtualHostBase/http/localhost:3000/Plone/++api++/VirtualHostRoot/@relations?target=d4cf2f07ea844d5ea58b98a66ab30e3b', - items: { - isReferencing: [ + isReferencing: { + items: [ { source: { '@id': 'http://localhost:3000/page-2-linking-to-page-1', '@type': 'Document', - UID: '46550d2ad6564938a7cdbaabd6fd24a8', + UID: 'SOMEUID008', description: '', review_state: 'private', title: 'page #2 linking to page #1', + type_title: 'Document', }, target: { '@id': 'http://localhost:3000/page-1', '@type': 'Document', - UID: 'd4cf2f07ea844d5ea58b98a66ab30e3b', + UID: 'SOMEUID007', description: '', review_state: 'private', title: 'page #1', + type_title: 'Document', }, }, ], - }, - items_total: { - isReferencing: 1, + items_total: 1, }, }, - stats: null, }, }, }, content: { - subrequests: { - '/page-1/links-to-item': { - data: { - UID: 'd4cf2f07ea844d5ea58b98a66ab30e3b', - title: 'page #1', - }, - }, + data: { + UID: 'SOMEUID007', + title: 'page #1', }, }, intl: { diff --git a/src/components/manage/LinksToItem/__snapshots__/LinksToItem.test.jsx.snap b/src/components/manage/LinksToItem/__snapshots__/LinksToItem.test.jsx.snap index cf46935f7fa..20d0954817a 100644 --- a/src/components/manage/LinksToItem/__snapshots__/LinksToItem.test.jsx.snap +++ b/src/components/manage/LinksToItem/__snapshots__/LinksToItem.test.jsx.snap @@ -3,7 +3,7 @@ exports[`LinksToItem renders links to item view 1`] = `
- Links to + Content that links to or references page #1
-
- Whenever this item is being referenced from some different item by a hyperlink, block or similar, it appears here in this list. -
- - Linked by this item + Linking this item with hyperlink in text + - - @@ -52,7 +48,7 @@ exports[`LinksToItem renders links to item view 1`] = ` className="" > page #2 linking to page #1 @@ -72,6 +69,13 @@ exports[`LinksToItem renders links to item view 1`] = ` private +
Review state + Type +
+ + Document + +
diff --git a/src/components/manage/Toolbar/More.jsx b/src/components/manage/Toolbar/More.jsx index 63478273eac..3e06a0193b4 100644 --- a/src/components/manage/Toolbar/More.jsx +++ b/src/components/manage/Toolbar/More.jsx @@ -54,8 +54,8 @@ const messages = defineMessages({ defaultMessage: 'URL Management', }, linkstoitem: { - id: 'Links To Item', - defaultMessage: 'Links To Item', + id: 'Links and references', + defaultMessage: 'Links and references', }, ManageTranslations: { id: 'Manage Translations', @@ -232,9 +232,7 @@ class More extends Component { id: 'redirection', }); - const linksToItemAction = find(this.props.actions.object_buttons, { - id: 'linkstoitem', - }); + const linksToItemAction = path !== ''; const { content, intl } = this.props; diff --git a/src/components/manage/Toolbar/__snapshots__/More.test.jsx.snap b/src/components/manage/Toolbar/__snapshots__/More.test.jsx.snap index 785eec18d04..da818c40540 100644 --- a/src/components/manage/Toolbar/__snapshots__/More.test.jsx.snap +++ b/src/components/manage/Toolbar/__snapshots__/More.test.jsx.snap @@ -92,6 +92,19 @@ exports[`Toolbar More component renders a Toolbar More component 1`] = ` /> +
  • + + Links and references + + +
  • @@ -190,6 +203,19 @@ exports[`Toolbar More component renders a Toolbar More component with manage con /> +
  • + + Links and references + + +
  • diff --git a/src/constants/ActionTypes.js b/src/constants/ActionTypes.js index bdeec80ec19..2a24ce004b0 100644 --- a/src/constants/ActionTypes.js +++ b/src/constants/ActionTypes.js @@ -39,7 +39,6 @@ export const GET_QUERYSTRING_RESULTS = 'GET_QUERYSTRING_RESULTS'; export const CREATE_RELATIONS = 'CREATE_RELATIONS'; export const DELETE_RELATIONS = 'DELETE_RELATIONS'; export const LIST_RELATIONS = 'LIST_RELATIONS'; -export const RESET_RELATIONS = 'RESET_RELATIONS'; export const REBUILD_RELATIONS = 'REBUILD_RELATIONS'; export const GET_SCHEMA = 'GET_SCHEMA'; export const POST_SCHEMA = 'POST_SCHEMA'; diff --git a/src/reducers/relations/relations.js b/src/reducers/relations/relations.js index 22031c4a19b..43ab28c4c4d 100644 --- a/src/reducers/relations/relations.js +++ b/src/reducers/relations/relations.js @@ -3,13 +3,10 @@ * @module reducers/relations/relations */ -import { omit } from 'lodash'; - import { CREATE_RELATIONS, DELETE_RELATIONS, LIST_RELATIONS, - RESET_RELATIONS, REBUILD_RELATIONS, } from '@plone/volto/constants/ActionTypes'; @@ -170,20 +167,6 @@ export default function relations(state = initialState, action = {}) { error: action.error, }, }; - case RESET_RELATIONS: - return action.subrequest - ? { - ...state, - subrequests: omit(state.subrequests, action.subrequest), - } - : { - ...state, - get: { - loaded: false, - }, - data: null, - relations: null, - }; default: return state; }