This topic is locked

Change text and color of welcome menu item

5/6/2021 10:09:13 PM
PHPRunner General questions
J
jrlozano author

Is it posible to change welcome item dinamically as it can be done in menu items?

Thanks!

admin 5/7/2021

We do not have an option to do that dynamically. You can only change it in the Page Designer.

fhumanes 5/8/2021

Surely with a Snippet code, you can do it.

Greetings,
fernando

J
jrlozano author 5/10/2021

Hi and thanks both for your reply
I tried to do it but I only found the option to hide or show

$pageObject->hideItem("itemId")

I couldn't change the caption. My idea was adding a number after welcome item text . Something like "New Messages" and calculate the number dinamically and change it by "New Messages (2)" or "No new messages" for example