Menu

#63 Exclude topics from XoopsTopic::makeMySelBox()

open
nobody
Core (214)
5
2012-09-25
2004-03-29
No

Wouldn't it be nice with the possibility to exclude
topics from a topics listing?

In the News module, I have successfully made
permissions by topic, but it hurts my young heart to
discard a core function to make the selection box in
the submit form manually. My need is to have a
selection box of topics - but ONLY the topics in an
array I get from the group permissions.

Preferably, I'd like a XoopsTopic function to return an
array of topicid => topictitle, where topictitle has
the "--"'s in front and in the right order, so it will
be possible to do a

$topic_select->addOptionArray($xoopsTopicObject->getTopicsTree($none,
$selected_topic,
$selected_topic_name, $onchange, $excluded_topics));

or whatever the function should be called

Discussion


Log in to post a comment.