• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Article Update on Form Submission

dboggs1994

New Member
I have the article creation plug-in installed, it is not 100% working, getting white screen after submission of the article. However the more concerning issue at this point is when an update is made a new article is created. If I just switch the plug-in to fire when a new record is inserted updates are not made. Is the creation of a new version of the article normal behavior when an update occurs? Can if be suppressed?
 
No, it should edit the existing article when editing a form.

Do you have the "Reference Element" set? And is there data in it? It should be a JSON string, mapping a category ID to an article ID, like ...

{"123":"234"}

-- hugh
 
Hi, sorry for my late response. I am not completely following you, JSON? I am using an Article Template to create the initial article. I have referenced the article id and specified a category for newly created records. Even selecting the correct article id and referencing that on submission creates a new JOOMLA article. Doing updates creates a new JOOMLA article. Editing an existing submission creates a new JOOMLA article.
 
Your form must have an element (field) which is used to store the article id and the category id (in JSON format, so the element content is looking like {"123":"234"} where 123=catID and 234 = articleID).

This element has to be selected as "reference element" in the article plugin settings.
 
Sorry I must be really thick headed here. Hugh, the Internal reference you mention is that the Internal ID field that is automatically generated? I have used the ID field as the reference element (hidden).
I have a category field that I am using for the category reference, a database join field type, to bring the list of categories into a dropdown list (id is the value, titles are the labels). What am I missing?
 
is that the Internal ID field that is automatically generated
No, the InternalID is the primary key of your Fabrik list.
You need an extra field - the reference element - where Fabrik can store the infos (catID, articleID) the article plugin needs to work.
 
As Troester says, create a new field element, called something like 'reference', set it to hidden, and designate that as the 'Reference Element' in the article plugin settings.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top