21278 Posts in 5728 Topics by 2599 members
|Go to End|
7 July 2010 at 7:15pm
I need to intersept the exact poin wich my page is save (for draft site) ans save and publish (for published site). Where are this function?
How my page.php call this?
9 July 2010 at 3:37am
I need intercpt save draft site to add that in an other point of my page..
9 July 2010 at 5:51am
This is for StaffPage, for the Page is the same
$new = new StaffPage(); // Create new staff page
$new->populateDefaults(); // if defaults are set
$new->setParent($_POST['ID']); // set parent page
$new -> update(
'MenuTitle' => $title,
'Title' => $title,
'Locale' => $_POST['Locale'],
'PhotoID' => $image->ID // adding image
$new->writeToStage('Stage'); // Save Page
9 July 2010 at 10:10am
Have you tried onBeforeWrite?
|Go to Top|