No actually, I'm just reading the docs this week -- it wasn't quite clear.
Next week, we're beginning and evaluation of Midgard vs. "our needs" and I'm
just trying to wrap my head around as much of it as possible.

Thanks for the quick reply.

-bill

-----Original Message-----
From: Sergei Dolmatov [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 9:41 PM
To: '[EMAIL PROTECTED]'
Subject: Re: [midgard-user] Question: inline variable display modifier
x?


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]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to