Save in the DB edited Content without Admin-Panel

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Kerockx
New Member
New Member
Posts: 1
Joined: Wed Jun 28, 2023 11:06 am

Save in the DB edited Content without Admin-Panel

Post by Kerockx »

Hello everyone

I need your help with saving content that has been edited outside the Admin-Panel.

I have developed a NodeJS tool with which I can edit the content of a page.
To do this, the database table Tcms_content_props is simply updated at the appropriate place using SQL. This works perfectly. However, the edited content is only displayed when the page is saved by clicking on the button in the admin panel. I assume that this triggers a hook that synchronizes the page. Is there a way to completely update the page without having to go to the Admin-Panel?

Thank you very much
Kerockx
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3484
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Save in the DB edited Content without Admin-Panel

Post by velden »

I don't think it's good practice to do what you do for multiple reasons.
Consider leveraging the existing API's (which I don't know if they exist for your use case). Else walk through the code and check what happens when page content is updated by an admin.
Post Reply

Return to “CMSMS Core”