From 8382926416315bd20b2d9c09a897c32204173de1 Mon Sep 17 00:00:00 2001 From: quietone Date: Fri, 21 Apr 2023 12:52:12 +1200 Subject: [PATCH] =?UTF-8?q?Issue=20#3307695=20by=20smustgrave,=20Shubham?= =?UTF-8?q?=20Chandra,=20andypost,=20Amber=20Himes=20Matz,=20G=C3=A1bor=20?= =?UTF-8?q?Hojtsy:=20Update=20sentence-embedded=20internal=20links=20in=20?= =?UTF-8?q?content=5Fmoderation,=20core.content=5Fstructure,=20search.over?= =?UTF-8?q?view=20help=20topics=20to=20use=20help=5Froute=5Flink=20functio?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../content_moderation.changing_states.html.twig | 10 ++++++---- ...ent_moderation.configuring_workflows.html.twig | 15 +++++++++------ .../help_topics/core.content_structure.html.twig | 5 +++-- .../help_topics/search.overview.html.twig | 5 +++-- 4 files changed, 21 insertions(+), 14 deletions(-) diff --git a/core/modules/help_topics/help_topics/content_moderation.changing_states.html.twig b/core/modules/help_topics/help_topics/content_moderation.changing_states.html.twig index 5eec3f11f1a..fb7389ef865 100644 --- a/core/modules/help_topics/help_topics/content_moderation.changing_states.html.twig +++ b/core/modules/help_topics/help_topics/content_moderation.changing_states.html.twig @@ -7,15 +7,17 @@ related: --- {% set workflows_overview_topic = render_var(help_topic_link('workflows.overview')) %} {% set content_structure_topic = render_var(help_topic_link('core.content_structure')) %} -{% set content_moderation_permissions = render_var(url('user.admin_permissions.module', {'modules': 'content_moderation'})) %} -{% set content = render_var(url('system.admin_content')) %} +{% set content_moderation_permissions_link_text %}{% trans %}Content Moderation{% endtrans %}{% endset %} +{% set content_moderation_permissions_link = render_var(help_route_link(content_moderation_permissions_link_text, 'user.admin_permissions', {}, {'fragment': 'module-content_moderation'})) %} +{% set content_link_text %}{% trans %}Content{% endtrans %}{% endset %} +{% set content_link = render_var(help_route_link(content_link_text, 'system.admin_content')) %}

{% trans %}Goal{% endtrans %}

{% trans %}Change the workflow state of a particular entity. See {{ workflows_overview_topic }} for an overview of workflows, and {{ content_structure_topic }} for an overview of content entities.{% endtrans %}

{% trans %}Who can change workflow states?{% endtrans %}

-

{% trans %}Users with the content moderation permissions can change workflow states. There are separate permissions for each transition.{% endtrans %}

+

{% trans %}Users with content moderation permissions can change workflow states. There are separate permissions for each transition. See Permissions > {{ content_moderation_permissions_link }} to configure content moderation permissions.{% endtrans %}

{% trans %}Steps{% endtrans %}

    -
  1. {% trans %}Find the entity that you want to moderate in either the content moderation view page, if you created one, or the appropriate administrative page for managing that type of entity (such as the Content administration page for content items).{% endtrans %}
  2. +
  3. {% trans %}Find the entity that you want to moderate in either the content moderation view page, if you created one, or the appropriate administrative page for managing that type of entity (such as the administration page for content items; see {{ content_link }}).{% endtrans %}
  4. {% trans %}Click Edit to edit the entity.{% endtrans %}
  5. {% trans %}At the bottom of the page, select the new workflow state under Change to: and click Save.{% endtrans %}
diff --git a/core/modules/help_topics/help_topics/content_moderation.configuring_workflows.html.twig b/core/modules/help_topics/help_topics/content_moderation.configuring_workflows.html.twig index 4df160d1e80..2aac896d395 100644 --- a/core/modules/help_topics/help_topics/content_moderation.configuring_workflows.html.twig +++ b/core/modules/help_topics/help_topics/content_moderation.configuring_workflows.html.twig @@ -10,13 +10,16 @@ related: {% set user_overview_topic = render_var(help_topic_link('user.overview')) %} {% set user_permissions_topic = render_var(help_topic_link('user.permissions')) %} {% set workflows_overview_topic = render_var(help_topic_link('workflows.overview')) %} -{% set content_moderation_permissions = render_var(url('user.admin_permissions.module', {'modules': 'content_moderation'})) %} -{% set workflows_permissions = render_var(url('user.admin_permissions.module', {'modules': 'workflows'})) %} -{% set workflows_url = render_var(url('entity.workflow.collection')) %} +{% set content_moderation_permissions_link_text %}{% trans %}Content Moderation{% endtrans %}{% endset %} +{% set content_moderation_permissions_link = render_var(help_route_link(content_moderation_permissions_link_text, 'user.admin_permissions', {}, {'fragment': 'module-content_moderation'})) %} +{% set workflows_permissions_link_text %}{% trans %}Administer workflows{% endtrans %}{% endset %} +{% set workflows_permissions_link = render_var(help_route_link(workflows_permissions_link_text, 'user.admin_permissions', {}, {'fragment': 'module-workflows'})) %} +{% set workflows_link_text %}{% trans %}Workflows{% endtrans %}{% endset %} +{% set workflows_link = render_var(help_route_link(workflows_link_text, 'entity.workflow.collection')) %}

{% trans %}Goal{% endtrans %}

{% trans %}Create or edit a workflow with various workflow states (for example Concept, Archived, etc.) for moderating content. See {{ workflows_overview_topic }} for more information on workflows.{% endtrans %}

{% trans %}Who can configure a workflow?{% endtrans %}

-

{% trans %}Users with the Administer workflows permission (typically administrators) can configure workflows.{% endtrans %}

+

{% trans %}Users with workflows permissions (typically administrators) can configure workflows. See Permissions > {{ workflows_permissions_link }} to configure workflows permissions.{% endtrans %}

{% trans %}Steps{% endtrans %}

  1. {% trans %}Make a plan for the new workflow:{% endtrans %} @@ -35,7 +38,7 @@ related:
  2. {% trans %}Decide which entity types and subtypes the workflow should apply to. Only entity types that support revisions are possible to define workflows for. See {{ content_structure_topic }} for more information on content entities and fields.{% endtrans %}
  3. -
  4. {% trans %}To implement your plan, in the Manage administrative menu, navigate to Configuration > Workflow > Workflows. A list of workflows is shown, including the default workflow Editorial that you can adapt.{% endtrans %}
  5. +
  6. {% trans %}To implement your plan, in the Manage administrative menu, navigate to Configuration > Workflow > {{ workflows_link }}. A list of workflows is shown, including the default workflow Editorial that you can adapt.{% endtrans %}
  7. {% trans %}Click Add workflow.{% endtrans %}
  8. {% trans %}Enter a name in the Label field, select Content moderation from the Workflow type field, and click Save.{% endtrans %}
  9. {% trans %}Verify that the States list matches your planned states. You can add missing states by clicking Add a new state. You can edit or delete states by clicking Edit or Delete under Operations (if the Delete option is not available, you will first need to delete any Transitions to or from this state).{% endtrans %}
  10. @@ -45,6 +48,6 @@ related:
  11. {% trans %}Click Save.{% endtrans %}
  12. {% trans %}Under Workflow settings, select the Default moderation state for new content.{% endtrans %}
  13. {% trans %}Click Save to save your workflow.{% endtrans %}
  14. -
  15. {% trans %}Follow the steps in {{ user_permissions_topic }} to assign permissions for each transition to roles. The permissions are listed under the Content Moderation section; there is one permission for each transition in each workflow.{% endtrans %}
  16. +
  17. {% trans %}Follow the steps in {{ user_permissions_topic }} to assign permissions for each transition to roles. The permissions are listed under the {{ content_moderation_permissions_link }} section; there is one permission for each transition in each workflow.{% endtrans %}
  18. {% trans %}Optionally (recommended), create a view for your custom workflow, to provide a page for content editors to see what content needs to be moderated. You can do this if the Views UI module is installed, by following the steps in the related Creating a new view topic listed below under Related topics. When creating the view, under View settings > Show, select the revision data type you configured the workflow for, and be sure to display the Workflow State field in your view.{% endtrans %}
diff --git a/core/modules/help_topics/help_topics/core.content_structure.html.twig b/core/modules/help_topics/help_topics/core.content_structure.html.twig index 147d5f01db1..c2997147c6c 100644 --- a/core/modules/help_topics/help_topics/core.content_structure.html.twig +++ b/core/modules/help_topics/help_topics/core.content_structure.html.twig @@ -2,7 +2,8 @@ label: 'Managing content structure' top_level: true --- -{% set help_url = render_var(url('help.main')) %} +{% set help_link_text %}{% trans %}Help{% endtrans %}{% endset %} +{% set help_link = render_var(help_route_link(help_link_text, 'help.main')) %}

{% trans %}What types of data does a site have?{% endtrans %}

{% trans %}There are four main types of data. Content is the information (text, images, etc.) meant to be displayed to website visitors. Configuration is data that defines how the content is displayed; some configuration (such as field labels) may also be visible to site visitors. State is temporary data about the state of your site, such as the last time the system cron jobs ran. Session is a subset of State information, related to users' interactions with the site, such as site cookies and whether or not they are logged in.{% endtrans %}

{% trans %}What is a content entity?{% endtrans %}

@@ -41,7 +42,7 @@ top_level: true
  • {% trans %}The core Layout Builder module provides a more flexible user interface for configuring the display of entities.{% endtrans %}
  • {% trans %}The core Filter, Responsive Image, and Path modules provide settings and display options for entities and fields.{% endtrans %}
  • -

    {% trans %}Depending on the core and contributed modules that you currently have installed on your site, the related topics below, and other topics listed on the main Help page, will help you with tasks related to content structure.{% endtrans %}

    +

    {% trans %}Depending on the core and contributed modules that you currently have installed on your site, the related topics below and other topics listed on the main help page (see {{ help_link }}) will help you with tasks related to content structure.{% endtrans %}

    {% trans %}Additional resources{% endtrans %}