I was wondering if it would be possible to edit the Welcome message when you log in to the support portal. At this moment it says: Hi, How can we help you?
But, my "challenge” for my customer is, to get the name of the requester between ‘Hi’ and the Comma (,).
So, If I login, the welcome message will say; Hi Chris, how can we help you?
I hope someone knows how to do this.
Thanks in advance!
Page 1 / 1
Hi @Chris S. This is a simple change in your support portal.
Navigate to Admin > General Settings > Helpdesk Rebranding > Requester Portal Branding > Customize Portal
Then click on “Layouts and Pages” tab, then “Portal Pages” select “Portal Home”.
Then you want to edit the following line of code to include the dynamic placeholder {{user_info.first_name}} and then just hard code the text around it like the image below.
Do that, save and publish and you will see this as a result and it will be dynamic to who the user accessing the portal is.
Hope that helps! :)
Cool, that's exactly what I meant!
Thanks m8!
GreetZ!
Chris
Hello @zachary.king ,
Do you also know how to get this text automatically translated just like the rest?
Because all the text is translated to Hungarian when the colleagues from Hungary login, except the Welcome message… ;-)
Gr.
Chris
Hello @Chris S.
You can include a condition using liquid placeholders to check the current language and render the text accordingly.
For example, you can add the following code to display the translated version of the text on the portal:
{% if portal.current_language.code == "hu" %}
Szia Chris, hogyan segíthetünk?
{% elsif portal.current_language.code == "en" %}
Hi Chris, how can we help you?
{% endif %}
Cheers!
Hello @Chris S.
You can include a condition using liquid placeholders to check the current language and render the text accordingly.
For example, you can add the following code to display the translated version of the text on the portal:
{% if portal.current_language.code == "hu" %}
Szia Chris, hogyan segíthetünk?
{% elsif portal.current_language.code == "en" %}
Hi Chris, how can we help you?
{% endif %}
Cheers!
Hi @aravind.sundararajan
Just to confirm:
Can we actually combine both and create something like this?
<h2 style="color:#12344D" > {% if portal.current_language.code == "hu" %} Szia {{user_info.first_name}}, hogyan segíthetünk? {% elsif portal.current_language.code == "en" %} Hi {{user_info.first_name}}, how can we help you? {% endif %} </h2>
And where do I paste this code?
Unfortunally, im not that programmer minded, so I wouldnt know where to add this code.
Till this part all was clear, except this one ;-)
GreetZ!
Chris
Hello @Chris S.
It would be the same location as @zachary.king mentioned.
Navigate to Admin > General Settings > Helpdesk Rebranding > Requester Portal Branding > Customize Portal
Then click on “Layouts and Pages” tab, then “Portal Pages” select “Portal Home”.
Then you want to edit the following line of code to include the dynamic placeholder {{user_info.first_name}} and then just hard code the text around it like the image below.
Cheers!
Hello @Chris S.
You can include a condition using liquid placeholders to check the current language and render the text accordingly.
For example, you can add the following code to display the translated version of the text on the portal:
{% if portal.current_language.code == "hu" %}
Szia Chris, hogyan segíthetünk?
{% elsif portal.current_language.code == "en" %}
Hi Chris, how can we help you?
{% endif %}
Cheers!
Hi @aravind.sundararajan
Just to confirm:
Can we actually combine both and create something like this?
<h2 style="color:#12344D" > {% if portal.current_language.code == "hu" %} Szia {{user_info.first_name}}, hogyan segíthetünk? {% elsif portal.current_language.code == "en" %} Hi {{user_info.first_name}}, how can we help you? {% endif %} </h2>
Hello @eeha0120
It should work but I would suggest adding the style tag inline instead to avoid any code breakages.
{% if portal.current_language.code == "hu" %} <h2 style="color:#12344D" >Szia {{user_info.first_name}}, hogyan segíthetünk?</h2> {% elsif portal.current_language.code == "en" %} <h2 style="color:#12344D" >Hi {{user_info.first_name}}, how can we help you?</h2> {% endif %} </h2>
Thank you very much @aravind.sundararajan
Hi @Chris S. This is a simple change in your support portal.
Navigate to Admin > General Settings > Helpdesk Rebranding > Requester Portal Branding > Customize Portal
Then click on “Layouts and Pages” tab, then “Portal Pages” select “Portal Home”.
Then you want to edit the following line of code to include the dynamic placeholder {{user_info.first_name}} and then just hard code the text around it like the image below.
Do that, save and publish and you will see this as a result and it will be dynamic to who the user accessing the portal is.
Hope that helps! :)
This is great - ty @zachary.king
My FS instance is quite old and I have the ugly original layout and I am not able to use {{user_info.first_name}} in my header.
Anyone know any other option?
Thanks! :-)
No worries @BrynCYDEF, you could try {{portal.user.firstname}}. Here is a solution article that contains a list of Dynamic Placeholders