- Issue created by @Amber Himes Matz
- 🇺🇸United States Amber Himes Matz Portland, OR USA
Updated remaining tasks to include instructions for testing.
- First commit to issue fork.
- last update
over 1 year ago 29,380 pass - @rassoni opened merge request.
- Status changed to Needs review
over 1 year ago 9:36am 9 May 2023 - 🇮🇳India rassoni Bangalore
After making changes, please refer to the images below to see how the page will appear.
- Status changed to RTBC
over 1 year ago 1:22pm 9 May 2023 - 🇺🇸United States smustgrave
I believe this is ready.
The tasks "Uninstall/Install Help Topics (or if Help Topics has been merged into Help, Help module)" seems out of scope of the title but could be wrong.
- Status changed to Needs review
over 1 year ago 5:23pm 9 May 2023 - 🇺🇸United States Amber Himes Matz Portland, OR USA
Updated issue summary's remaining tasks for clarity.
Looking at MR, it's doing what I suggested in the issue summary (thank you!) but I'm not crazy about the resulting grammar, now that I look at it. Going to ask for a 2nd opinion on that before we finalize this.
Thank you all for the quick MR and review.
- 🇺🇸United States smustgrave
What about
"Set a site-wide default contact form (the form show on Contact Forms)"
- Status changed to Needs work
over 1 year ago 8:32pm 9 May 2023 - 🇺🇸United States Amber Himes Matz Portland, OR USA
Oh, wait a minute, I made a mistake and confused the routes. Sorry about that! The route we already have is the route to the admin page that lists all contact forms
entity.contact_form.collection
. We don't have vars for the route to the default contact page (contact.site_page
).Also, although I couldn't find where /contact is configurable (or maybe it's just alterable in a custom module?), apparently it is, which is why this issue exists. So we shouldn't use the literal text "/contact" or its default route title, "Contact". The title of the page will vary, depending on which contact page is configured to be the default contact page (that's what this help topic describes in fact).
Ok. So there are 2 things to note/to do:
1. The route to /contact (e.g. the default contact form page) is
contact.site_page
. We don't have Twig variables set up for that route yet. (Use the existing pair of Twig variables in this topic as a guide. Both the route and the link text will need to be updated.)
2. The Goal (the sentence we are updating with this link) need to be rephrased so that the link to thecontact.site_page
route can be added. It needs to be rephrased in a multilingual-context-friendly way. Since we won't know the title, this is tricky! Perhaps if we link the entire parenthetical phrase, that will work, because the entire context can be translated. The rendered HTML could be something like:Set a site-wide contact form to be the default contact form ( the form that is show at the default contact page; for example, /contact) → ).
That shows that the URL might be /contact, but describes the page, just in case it isn't. And the whole phrase is linked, allowing for hopefully enough context for translators to make sense of it.
If we adopt that suggestion, here are the changes that need to be made to this file.
1. Add the following to the top of the file, above or below the current set of
{% set %}
statements.{% set contact_page_link_text %}{% trans %}the form that is show at the default contact page; for example, <em>/contact</em>){% endtrans %}{% endset %} {% set contact_page_link = render_var(help_route_link(contact_page_link_text, 'contact.site_page')) %}
2. Update the paragraph immediately following the
Goal
heading to:
<p>{% trans %}Set a site-wide contact form to be the default contact form ({{ contact_page_link }}).{% endtrans %}</p>
I've updated the issue summary's proposed resolution with this suggestion -- but discussion and feedback is welcome!
- 🇺🇸United States Amber Himes Matz Portland, OR USA
Edited issue summary's proposed resolution to fix typo (show => shown).
- Assigned to sourabhjain
- last update
over 1 year ago 29,383 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 11:52am 11 May 2023 - 🇮🇳India sourabhjain
I have updated the MR as per changes suggested in #10. Please review.
- Status changed to RTBC
over 1 year ago 9:03pm 12 May 2023 - last update
over 1 year ago 29,388 pass - Status changed to Needs work
over 1 year ago 9:58pm 12 May 2023 - 🇺🇸United States Amber Himes Matz Portland, OR USA
I reviewed the merge request via the generated Tugboat instance and I see that the HTML didn't get rendered properly, as you can see here (login: admin/admin)
https://mr3958-kxepnyr9mnydxhfgeg2mnr0rewij1yfl.tugboatqa.com/admin/help...
I think this is because there's HTML in the link text, so it gets escaped when passed through
render_var(help_route_link())
.I'll do some testing and figure out a better suggestion.
- 🇺🇸United States Amber Himes Matz Portland, OR USA
Also, I rebased the MR to 10.1.x, but maybe the target branch needs be update to 11.x (I'm not sure).
- 🇺🇸United States smustgrave
Think if this is fixing an existing link it can go into a minor release right?
- last update
over 1 year ago 29,385 pass, 1 fail - 🇺🇸United States Amber Himes Matz Portland, OR USA
I've pushed a fix after working out a solution. I've updated the issue summary. This is ready for review and testing.
Steps to test:
- Use the Tugboat link in this issue to review the merge request.
- Login as admin/admin
- Install Help Topics (admin/extend)
- Navigate to admin/help
- Click on the top-level topic, "Managing contact forms"
- Under "Related topics", click on "Setting a default contact form" (admin/help/topic/contact.setting_default).
- Status changed to Needs review
over 1 year ago 10:43pm 12 May 2023 - last update
over 1 year ago 29,388 pass - last update
over 1 year ago 29,388 pass - Status changed to RTBC
over 1 year ago 12:33am 13 May 2023 - 🇺🇸United States smustgrave
Verifying that's what I see.
Keep forgetting we have tugboat on here.
- Open on Drupal.org →Environment: PHP 8.1 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - First commit to issue fork.
- last update
over 1 year ago Custom Commands Failed - Status changed to Needs review
over 1 year ago 10:34am 15 May 2023 - Status changed to Needs work
over 1 year ago 2:22pm 15 May 2023 48:23 48:06 Running- 🇺🇸United States Amber Himes Matz Portland, OR USA
I'm working on rebasing onto 11.x.
- 🇺🇸United States Amber Himes Matz Portland, OR USA
First, I squashed the 3 commits and rebased 10.x.
- Assigned to Amber Himes Matz
- 🇫🇷France andypost
As a bug it fits into 10.1 and could be backported to 9.5.x
- 🇮🇳India shashank5563 New Delhi
I have tested #17 on my local. it is working as expected.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 4:20pm 18 May 2023 - 🇺🇸United States Amber Himes Matz Portland, OR USA
Ok, looks like it's not necessary (or appropriate) for me to add this to the 11.x branch, since it's a minor bug fix that can go in to 10.1.x (hopefully). The tests are passing now after I rebased again, so this looks good for a final review.
- Status changed to RTBC
over 1 year ago 4:28pm 18 May 2023 - last update
over 1 year ago 29,388 pass - last update
over 1 year ago 29,388 pass - Open on Drupal.org →Environment: PHP 8.1 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - last update
over 1 year ago 29,392 pass, 1 fail - last update
over 1 year ago 29,399 pass 36:19 32:45 Running- last update
over 1 year ago 29,400 pass - Open on Drupal.org →Environment: PHP 8.1 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - last update
over 1 year ago 29,409 pass - last update
over 1 year ago 29,415 pass - last update
over 1 year ago 29,420 pass - last update
over 1 year ago 29,420 pass - last update
over 1 year ago 29,425 pass - last update
over 1 year ago 29,429 pass 21:20 27:27 Running- last update
over 1 year ago 29,430 pass - last update
over 1 year ago 29,430 pass -
longwave →
committed cb90dcce on 11.x
Issue #3358575 by Amber Himes Matz, Rassoni, sourabhjain, smustgrave,...
-
longwave →
committed cb90dcce on 11.x
- Status changed to Fixed
over 1 year ago 9:45pm 21 June 2023 - 🇬🇧United Kingdom longwave UK
Committed and pushed cb90dcce1b to 11.x (10.2.x). Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.