Alexander Levenetz wrote:
>
> Hello Emile,
>
> you'll probably give up soon... ;-)
You obviously haven't hung around this list for long.
> Aha. Except, what I have looks slightly different:
>
> <?
> $article = mgd_list_topic_articles_all($topic_id); {
> for($i = 0; $i < 4; $i++) {
> if ( $article->fetch() ) {
> ?>
>
> and somewhere deeper, stuck in HTML
>
> &(article.name:h);
>
> I want only 4 articles to be displayed (I don't understand anything
> here, just that the 4 means 4 articles...). Because of that I have no
> clue how to implement what you have given me as an example.
<?
$article = mgd_list_topic_articles_all($topic_id); {
$displayed = 0;
while ($displayed < 4 && $article && $article->fetch()) {
if (mgd_is_in_topic_tree(13, $article->id) { continue; }
$displayed++;
?>
> I have
>
> -root(10)
> -this subtopic should be included(11)
> -this subtopic should be included(12)
> -this is private(13)
You could have
root (10)
private(29)
something(13)
public(56)
includethis(11)
inckudethat(12)
and then just pass 56 as parameter to mgd_list_topic_articles_all.
> Lets say "root" is topic #10. This is what I set as topic_id. It
> includes subtopics 11, 12 and 13. All content is displayed, but the
> one from subtopic 13 should not. You now say I can create another root
> - as a subtopic in 10? But what would that help if the rest of my
> subtopics are not part of that new root? I cannot really move all
> subtopics without going insane...
Asgard should be able to move trees. David, what's the status on that?
Otherwise, having created 29 and 56 (just examples), log into mysql and
do
UPDATE topic SET up=29 WHERE id=13;
UPDATE topic SET up=56 WHERE id IN (11,12);
Not convenient but it works.
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]