On Thu, Aug 29, 2002 at 10:43:39AM -0400, Bill Bull wrote: > There's a comment about Midgard UDF's here: > http://www.midgard-project.org/manual/en/part.concepts.syntaxaddition.php > Can I assume that if the docs were updated, then there would be a new > "inline variable display modifier", x? > X: Add a value as formatted by the name which is registered to the user > defined filter/formatter function. > ... > function display_topic($top) { > if($top->__table__ != "topic") { > echo "This is not a topic"; > } > echo "<h1>$top->name</h1>; > echo "<p>$top-description</p>"; > /* list articles here... and so on... */ > } > > mgd_register_filter("top", "display_topic"); > > $var = mgd_get_topic(1); > ?> > &(var:xtop); > ^^^^^ > This last line seems to be the most important point -- is x the modifier and > top is the registered name?
Yes, they are. Do you have any problems with it? -- Regards, Sergei Dolmatov. --- There are never any bugs you haven't found yet. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
