Publish.pm


NAME

Communiware::Postprocess::Publish - set published date to the current when status changes to specified value.


SYNOPSIS

  <:If STATUS != STATUS_VALUE:>
    <:Do postedit Publish STATUS_VALUE:>
  <:EndIf:>


DESCRIPTION

Sets PUBLISHED date to current value if status after submit is equal to one of comma-separated value given as parameter.

If there exists any replics, which was posted before applying this preprocessor they would be deleted.


BUGS

Cannot check if status BEFORE submit is already equal to specified value. This check should be done in template, as shown in SYNOPSIS above.

16 октябрь 2007 13:45