Very, very much I ask you to add support of variables in fields.
These variable values are the parameters of the site configuration.
{site:sitename}, {site:mailfrom},{site:fromname}, {site:replyto},{site:replytoname}, {site:CONFIG_NAME}, where CONFIG_NAME is JFactory::getConfig()->getValue( 'CONFIG_NAME' ); .
Especially I ask you to use support:
{site:sitename}, {site:mailfrom},{site:fromname}, {site:replyto},{site:replytoname}.
These variable values are the parameters of the site configuration.
{site:sitename}, {site:mailfrom},{site:fromname}, {site:replyto},{site:replytoname}, {site:CONFIG_NAME}, where CONFIG_NAME is JFactory::getConfig()->getValue( 'CONFIG_NAME' ); .
Especially I ask you to use support:
{site:sitename}, {site:mailfrom},{site:fromname}, {site:replyto},{site:replytoname}.
Hi koreshs,
You can get the value of these settings inside a PHP function, then return the value and use the {var:function_name} syntax.
Best regards,
Max
You can get the value of these settings inside a PHP function, then return the value and use the {var:function_name} syntax.
Best regards,
Max
Is this how it is done?
{var:JFactory::getConfig()->getValue( 'CONFIG_NAME' )}
{var:JFactory::getConfig()->getValue( 'CONFIG_NAME' )}
No, create a new form event, drag PHP function inside and use this code:
Now, in your custom code call this: {var:php_function_name}
where "php_function_name" is the name of the PHP function!
Best regards,
Max
return JFactory::getConfig()->getValue( 'CONFIG_NAME' );
Now, in your custom code call this: {var:php_function_name}
where "php_function_name" is the name of the PHP function!
Best regards,
Max
This topic is locked and no more replies can be posted.