joomla variables in Spacer field

  • akourou
  • akourou's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #676 by akourou
akourou created the topic: joomla variables in Spacer field
hello,

is there a way to use joomla variables, like user.name, user.id, user.email in the spacer field.
I tried to use the following code in options of spaces field but failed.

<?php
$joomuser = JFactory::getUser();
echo "<p>Your name is {joomuser->name}, your ID is {$joomuser->id}, your email is {$joomuser->email}, and your username is {$user->joomusername}</p>";
?>

thank you

Please Log in or Create an account to join the conversation.

Fork me on GitHub
Cookies make it easier for us to provide you with our services. With the usage of our services you permit us to use cookies.
More information Ok