From 4ec6b7542d1c15eec72c4107008c148d3a4672b0 Mon Sep 17 00:00:00 2001 From: quietone <quietone@2572884.no-reply.drupal.org> Date: Wed, 14 May 2025 21:09:42 +1200 Subject: [PATCH 1/2] remove history from help --- core/modules/help/help_topics/core.tracking_content.html.twig | 1 - core/modules/help/tests/src/Functional/HelpTest.php | 3 +-- .../help_topics/history.tracking_user_content.html.twig | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/core/modules/help/help_topics/core.tracking_content.html.twig b/core/modules/help/help_topics/core.tracking_content.html.twig index f0b2c631ba66..ef8fef65ca93 100644 --- a/core/modules/help/help_topics/core.tracking_content.html.twig +++ b/core/modules/help/help_topics/core.tracking_content.html.twig @@ -3,5 +3,4 @@ label: 'Tracking the content of your website' top_level: true --- <h2>{% trans %}Tracking overview{% endtrans %}</h2> -<p>{% trans %}The core History module tracks how recently users have viewed content items, and provides a Views field and filter that can be used to show users content that they haven't yet seen.{% endtrans %}</p> <p>{% trans %}If you have one or more tracking modules installed on your site, see the related topics listed below for specific tasks.{% endtrans %}</p> diff --git a/core/modules/help/tests/src/Functional/HelpTest.php b/core/modules/help/tests/src/Functional/HelpTest.php index 920179bca8ad..59b5a637f3a3 100644 --- a/core/modules/help/tests/src/Functional/HelpTest.php +++ b/core/modules/help/tests/src/Functional/HelpTest.php @@ -29,7 +29,6 @@ class HelpTest extends BrowserTestBase { 'help', 'help_page_test', 'help_test', - 'history', ]; /** @@ -114,7 +113,7 @@ public function testHelp(): void { $page_text = $this->getTextContent(); $start = strpos($page_text, 'Module overviews'); $pos = $start; - $list = ['Block', 'Block Content', 'Breakpoint', 'History', 'Text Editor']; + $list = ['Block', 'Block Content', 'Breakpoint', 'Text Editor']; foreach ($list as $name) { $this->assertSession()->linkExists($name); $new_pos = strpos($page_text, $name, $start); diff --git a/core/modules/history/help_topics/history.tracking_user_content.html.twig b/core/modules/history/help_topics/history.tracking_user_content.html.twig index 1a082f8f871b..0843bcb04dec 100644 --- a/core/modules/history/help_topics/history.tracking_user_content.html.twig +++ b/core/modules/history/help_topics/history.tracking_user_content.html.twig @@ -4,6 +4,6 @@ related: - core.tracking_content --- <h2>{% trans %}What content visits are tracked?{% endtrans %}</h2> -<p>{% trans %}The core History module tracks when each logged-in user has most recently visited each content item page on the site. This allows content to be marked as <em>new</em> or <em>updated</em> for each user, meaning that it was newly created or has been updated since the last time they visited its page. These records are kept for one month, meaning that content older than one month is never marked as new or updated.{% endtrans %}</p> +<p>{% trans %}The History module tracks when each logged-in user has most recently visited each content item page on the site. This allows content to be marked as <em>new</em> or <em>updated</em> for each user, meaning that it was newly created or has been updated since the last time they visited its page. These records are kept for one month, meaning that content older than one month is never marked as new or updated.{% endtrans %}</p> <h2>{% trans %}What options are available for using this tracking information?{% endtrans %}</h2> <p>{% trans %}You can display the new/updated status of content by creating or editing a view. There is a <em>Has new content</em> field for <em>Content</em> views, which displays the new/updated marker. There is also a <em>Has new content</em> filter, which limits the view to new and updated content.{% endtrans %}</p> -- GitLab From edc9f9bfeb614ded9320c765611ce7ff51b3a97c Mon Sep 17 00:00:00 2001 From: quietone <quietone@2572884.no-reply.drupal.org> Date: Thu, 29 May 2025 20:00:05 +1200 Subject: [PATCH 2/2] remove core.tracking_content.html.twig --- .../help/help_topics/core.tracking_content.html.twig | 6 ------ .../help_topics/history.tracking_user_content.html.twig | 2 -- 2 files changed, 8 deletions(-) delete mode 100644 core/modules/help/help_topics/core.tracking_content.html.twig diff --git a/core/modules/help/help_topics/core.tracking_content.html.twig b/core/modules/help/help_topics/core.tracking_content.html.twig deleted file mode 100644 index ef8fef65ca93..000000000000 --- a/core/modules/help/help_topics/core.tracking_content.html.twig +++ /dev/null @@ -1,6 +0,0 @@ ---- -label: 'Tracking the content of your website' -top_level: true ---- -<h2>{% trans %}Tracking overview{% endtrans %}</h2> -<p>{% trans %}If you have one or more tracking modules installed on your site, see the related topics listed below for specific tasks.{% endtrans %}</p> diff --git a/core/modules/history/help_topics/history.tracking_user_content.html.twig b/core/modules/history/help_topics/history.tracking_user_content.html.twig index 0843bcb04dec..6f0d477c86d8 100644 --- a/core/modules/history/help_topics/history.tracking_user_content.html.twig +++ b/core/modules/history/help_topics/history.tracking_user_content.html.twig @@ -1,7 +1,5 @@ --- label: 'Tracking which content a user has visited' -related: - - core.tracking_content --- <h2>{% trans %}What content visits are tracked?{% endtrans %}</h2> <p>{% trans %}The History module tracks when each logged-in user has most recently visited each content item page on the site. This allows content to be marked as <em>new</em> or <em>updated</em> for each user, meaning that it was newly created or has been updated since the last time they visited its page. These records are kept for one month, meaning that content older than one month is never marked as new or updated.{% endtrans %}</p> -- GitLab