Tarjei Huse wrote:
>
> Hi,
>
> I'm going to write a script to update a whole pagetree, is ther an
> mgd_aprove_page function?
>
> If not, what code do I need in n-admin to do the job?
nadmin stores page status as a record extension
if you look at a page->edit, then parameters
the page's approval is
$pageobject->approval_status
to set
$pageobject->parameter("approval","status","always");
the status's are always,approved,changed or empty - the exact code is in
the snippet hklc_adminsite_host/argv0/approve/approve
note that if you are using replication and you want to approve the page
as well, you should set the above var, then do a
$pageobject->update() -- along with update all of the 'pagelements,
images and parameters'
to force the date stamp on everything to get replicated.
One of the 'todo' list is to change the first 'entry page to have
checkboxes to allow you to approve multiple sites in one go..'
regards
alan
>
> basicly I'm going to make a function like :
>
> mgd_aprove_tree($rootid, [and maybe later: type])
> where type can be, page, articles etc.
>
> Tarjei
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]