Hello Carl,
Thursday, September 14, 2000, 9:00:11 PM, you wrote:
CB> I have been setting up a small product catalogue with in a midgard site,
CB> It seemed like a good idea to is use the topic/article structure to represent
CB> toplevel, sublevel, product and product properities where the properities are
CB> articles and everything above are topics (dif product properities for each
CB> sublevel).
CB> Now mgd_walk_topic_tree looked like the perfect answer to list the full product
CB> range, but I must be doing something wrong, it alsways come back with:
CB> 'Wrong parameter count for mgd_walk_topic_tree() in content on line ...'
CB> that sonds helpfull, but it does this with 0 - 5+ parameters ( i started as per
CB> manual)
CB> I have studied the twalk function in detail(i think) but it walks up a topic
CB> not down.
CB> when mgd_walk_topic_tree works the manual comments that it sends backa topic
CB> like object ( can use the ->fetch() method), but how does it differicate from
CB> one level to the next?
It seems that you have outdated manual which describes
mgd_walk_xxx_tree() functions in wrong way. Please download current
version of manual from
http://www.midgard-project.org/~emiliano/docs/
In brief: mgd_walk_xxx_tree() doesn't return anything, it calls user-defined
function (UDF) instead. Also it doesn't pass objects' IDs to UDF in
some definitive order, so your code must do ordering if needed.
--
Best regards,
Alexander mailto:[EMAIL PROTECTED]
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]