Skip to Content Skip to Menu

User defined variables for radio button options

  • geeffland
  • geeffland
  • OFFLINE
  • Posts: 199
  • Thanks: 0
  • Karma: 233
18 years 10 months ago #2745 by geeffland
I have seen example on how to use language specific variables for paramter names and descriptions but I am not sure how to do the same for the text of radio button options?

i.e. lets say
english.php contains:

DEFINE('_UE_CONFIG_DELETEUSER',"Delete User Settings:");
DEFINE('_UE_CONFIG_DELETEUSER_INFO',"This allows you to select what happens when a user is deleted.");
DEFINE('_UE_CONFIG_DELETEUSER_OPT1',"Delete only the User");
DEFINE('_UE_CONFIG_DELETEUSER_OPT2',"Delete User and everything from User");

========================
yyy.xml contains

<param name="userDelete" type="radio" default="0" label="_UE_CONFIG_DELETEUSER" description="_UE_CONFIG_DELETEUSER_INFO">

<option value="0">_UE_CONFIG_DELETEUSER_OPT1</option>
<option value="1">_UE_CONFIG_DELETEUSER_OPT2</option>

</param>

CB3PD Developer - CB Connector (formerly phpBB Connector) plugin

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

  • beat
  • beat
  • ONLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
18 years 10 months ago #2855 by beat
Your example seems logical. If it doesn't work, please file a CB bug report on developer.joomla.org ;)

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

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

Moderators: beatnantkrileon
Powered by Kunena Forum