Custom flexi content plugin update value

More
7 years 4 months ago #68733 by Ali_wdm
I have created one custom plugin for flexicontent field. When I am going to update value of this field, whaterver code I have wriiten in onBeforeSaveField(), it works fine and updates value in database, but it gives an sql error after saving the field.


There is another issue
When I am using more than one field of this page in a item, for the second field, I get nothing in $item.
Attachments:

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

More
7 years 4 months ago #68737 by ggppdk
Hello

i see,

but you have given only a part of the field's PHP code
also you have not given the definitions of the SQL tables (you could export table's definition into an SQL file WITHOUT data via phpmyadmin)

the above 2 things makes answering you more difficult


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
7 years 4 months ago - 7 years 4 months ago #68738 by Ali_wdm
Here is table defination:

CREATE TABLE IF NOT EXISTS `#__flexicontent_checklist` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`itemId` int(11) unsigned NOT NULL,
`checklistFieldId` int(11) unsigned NOT NULL,
`editable` tinyint(1) NOT NULL DEFAULT '0',
`createdBy` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE `utf8_general_ci` ;

CREATE TABLE IF NOT EXISTS `#__flexicontent_checklist_item` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`checklistId` int(11) NOT NULL,
`item` varchar (255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE `utf8_general_ci` ;


And u can find checklist.php file in attachment

File Attachment:

File Name: checklist.php.txt
File Size:15 KB
Attachments:
Last edit: 7 years 4 months ago by Ali_wdm.

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

More
7 years 4 months ago - 7 years 4 months ago #68751 by ggppdk
Hello

i am making 1 small and 1 medium importance bug fix for v3.2.0.1

your question will need wait for a while

because bugs fixes are of higher importance


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 7 years 4 months ago by ggppdk.

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

More
7 years 4 months ago #68754 by Ali_wdm
Ok..i'll wait. But please reply as soon as possible.

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

More
7 years 4 months ago #68756 by ggppdk
Hello

also inside the plugin code and inside its layout file (if you are using this)
you should also replace:
Code:
self::

with
Code:
static::

if it is possible send me a PM with super admin access and give me an ID of an item to edit


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.406 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline