I've read a lot on already posted topics on how to add a Target _blank to one of the menu items but since the versions have changed, I'm finding answers but they don't work.
I am adding the below code to my Menu_Rendering function and I'm getting
C:\xampp\htdocs\tracking\src\userfn.php(75): Attempt to assign property "Target" on null
I am able to get the menu item object by FindItem(2) and it makes sense...and then ->Target to access the objects target value...
function Menu_Rendering() {
$this->FindItem(2)->Target = "_blank";
}
I can go about adding a target _blank in other ways which is not my issue, but like to know how I can grab the menu's object values, for example, Text, Url, Name etc.
Any help is appreciated.