It looks good :-)
I must also sitegroup for my page/pageelement/grp/person/member/style.. right ?
in "sitegroup" table, I've got only my sitegroup #1 (created by SQL) ; no sitegroup #0... normal too ?
benoit.
pp a �crit:
<?php
function change_sg($id) { $sg = //define as You wish $topic = mgd_get_topic($id); $topic->setsitegroup($sg); }
mgd_walk_topic_tree (change_sg, $root, 1000, &$foo);
?>
For articles should be enough:
<?php
$articles = mgd_list_topic_articles_all($root);
while ($articles && $articles->fetch()) { $articles->setsitegroup($sg); }
?>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
