Wednesday 25 August 2004 3:42:20 am
Hi Luis, Personally, I've done this the manual way, by starting the worflow with some code like this:
$db =& eZDB::instance();
// fetch most recently modified content object
$query =<<<EOF
SELECT
id,
contentclass_id,
current_version
FROM
ezcontentobject
WHERE
status = 1
ORDER BY
modified DESC
LIMIT
0,1
EOF;
// for each returned row
foreach($db->arrayQuery($query) as $temp)
{
// store in result in $object
$object = $temp;
}
$contentClassID = $object['contentclass_id'];
Hope this helps!
Sincerely,
Eirik Alfstad Johansen
http://www.netmaking.no/
|