ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Add variables for field: {site:sitename}, {site:mailfrom},{site:fromname}, {site:replyto},{site:replytoname}, {site:CONFIG_NAME}

koreshs 12 May, 2017
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}.
Max_admin 12 May, 2017
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
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
koreshs 12 May, 2017
Is this how it is done?
{var:JFactory::getConfig()->getValue( 'CONFIG_NAME' )}
Max_admin 12 May, 2017
No, create a new form event, drag PHP function inside and use this code:
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
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
koreshs 13 May, 2017
Thank you. I will know this for the future.
But still, getting the email site is norm.
SQL requests and write code every time for this is not good.
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com