- Posts: 3
- Thank you received: 0
How can use editor in Event Custom Field
- Manthan Desai
- Topic Author
- Offline
- New Member
-
Less
More
11 years 7 months ago #49071
by Manthan Desai
How can use editor in Event Custom Field was created by Manthan Desai
Hi Tuan,
Is there any way to use editor in Event Custom Field. I want to have html used in for one of the Event Custom Field.
Any help will be greatly appreciated.
Thanks,
Manthan
Is there any way to use editor in Event Custom Field. I want to have html used in for one of the Event Custom Field.
Any help will be greatly appreciated.
Thanks,
Manthan
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 6 months ago #49089
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic How can use editor in Event Custom Field
Hi Manthan
It is event custom field, not registration form custom fields, correct ? Seems we will need to edit the code alitle to allows saving data of html editor custom field.
If you are not in rush, I can work on it during this weekend to support that feature. Will that be OK for you ?
Tuan
It is event custom field, not registration form custom fields, correct ? Seems we will need to edit the code alitle to allows saving data of html editor custom field.
If you are not in rush, I can work on it during this weekend to support that feature. Will that be OK for you ?
Tuan
Please Log in or Create an account to join the conversation.
- Manthan Desai
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
11 years 6 months ago #49093
by Manthan Desai
Replied by Manthan Desai on topic How can use editor in Event Custom Field
Hi Tuan,
Could you please guide me to do it, i can do it as well.
thanks for the help.
Thanks,
Manthan
Could you please guide me to do it, i can do it as well.
thanks for the help.
Thanks,
Manthan
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 6 months ago #49094
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic How can use editor in Event Custom Field
Hi Manthan
1. The idea is that editing the file components/com_eventbooking/fields.xml, add a new editor custom field . Hope you know how to do it
.
2. Edit the code in the file administrator/components/com_eventbooking/model/event.php, look at store method. At the moment, the data for custom field is stored in INI format and It could not be used in this case. I think we will need to store the data in json format. See the code below :
I think we will need to change it to :
Complete that modifications and check to see how it goes
Tuan
1. The idea is that editing the file components/com_eventbooking/fields.xml, add a new editor custom field . Hope you know how to do it
2. Edit the code in the file administrator/components/com_eventbooking/model/event.php, look at store method. At the moment, the data for custom field is stored in INI format and It could not be used in this case. I think we will need to store the data in json format. See the code below :
Code:
$params = $data['params'];
if (is_array($params))
{
$txt = array();
foreach ($params as $k => $v)
{
$txt[] = "$k=\"$v\"";
}
$row->custom_fields = implode("\n", $txt);
}
I think we will need to change it to :
Code:
$params = $data['params'];
if (is_array($params))
{
$row->custom_fields = json_encode($params);
}
Complete that modifications and check to see how it goes
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2026 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.