$count_children = $object->_totalSeek;
} elseif (strpos($tag_id, "none") === 0) {
    $parts = explode("-", $tag_id);
    $object_class = $parts[1];
    $tag->object_class = $object_class;
    $object = new $object_class();
    $where["tag_item_id"] = "IS NULL";
    $ljoin = array("tag_item" => "tag_item.object_id = {$object->_spec->table}.{$object->_spec->key} AND tag_item.object_class = '{$object_class}'");
    if (!$keywords) {
        $keywords = "%";
    }
    $objects = $object->seek($keywords, $where, 10000, true, $ljoin);
    $count_children = $object->_totalSeek;
} else {
    $tag->load($tag_id);
    $count_children = $tag->countChildren();
    $objects = $tag->getObjects($keywords);
    // filter by group_id
    if ($group_id) {
        foreach ($objects as $_id => $_object) {
            if ($_object->group_id && $_object->group_id != $group_id) {
                unset($objects[$_id]);
            }
        }
    }
}
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("objects", $objects);
$smarty->assign("columns", $columns);
$smarty->assign("insertion", $insertion);