[TYPO3-workspace] which hook while publishing?

Andreas Kiessling kiessling at pluspol.info
Mon Mar 19 21:33:44 CET 2012


Hi,

i needed something similar some weeks ago and ende up with this:

public function processCmdmap_postProcess($command, $table, $id, $value,
t3lib_TCEmain $pObj) {
  // if the cmd was issued through workspaces, check if the content is
now LIVE
    if ($command === 'version') {
      if ($value['action'] === 'swap' && $value['swapWith'] > 0) {
....

workspaces use an own tcemain command and then a hook to react on it.

HTH,
Andreas


More information about the TYPO3-team-workspace mailing list