Updating content without publishing

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.
Locked
Jay7

Updating content without publishing

Post by Jay7 »

I am setting up CMSms 1.0.2 for a client and as they will have several staff members updating content they would like to be able to save updated content without the changes being published until it is reviewed and approved by other staff members.

I have added a new "Save" button next to the "Apply" button in the edit view and have duplicated the content_props table and named it content_props_temp. My thinking is that I need to save the content to the content_props_temp table and when reviewed and approved overwrite the existing entry in content_props to make it live.

At the top of editcontent.php I added

$savetemp = false;
if (isset($_POST["savebutton"])) $savetemp = true;


On line 264 of editcontent.php I added

if ($savetemp){
$contentobj->Savetemp();
}else{
$contentobj->Save();}

Then in class.content.inc.php I duplicated the Save() function, named it Savetemp and changed the name of the table to which the function saves data to content_props_temp.

I am obviously doing something wrong because nothing gets stored. Can anyone offer advice on how best to achieve what I am trying to achieve? Thanks  :)
Last edited by Jay7 on Sun Nov 19, 2006 9:35 pm, edited 1 time in total.
Pierre M.

Re: Updating content without publishing

Post by Pierre M. »

May be you should post this in the dev discussion forum ?
Or run SVN ? or wait for v1.1 ?
PM
jongrant
Forum Members
Forum Members
Posts: 23
Joined: Thu Dec 07, 2006 11:04 am

Re: Updating content without publishing

Post by jongrant »

Any chance you got your fault sorted? I'm also looking for the same outcome.. Thanks
Locked

Return to “CMSMS Core”