Hi, this might be a dumb question, but here goes ...

Is there some midgard-esque way to pass arguments to child elements?
I know that active pages have access to $argc and $argv. What I would 
like to do is pass some value that I've computed to a child element.

For example, let's say that I define a list-recent-news element in my 
style and that in it's parent I always calculate the current topic.
Rather than relying on a global variable what I'd like to do is say 
something like <[list-recent-news?topic=$topic_id]> or 
<[list-recent-news/topic/$topic_id]> and get that value inside 
list-recent-news via some kind of argv-type array.

My reasoning is that this would make my list-recent-news code more 
readable since I could see where my variables came from. Also I could 
make my style very generic and only override a few elements on a page.

Thanks,

James


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

Reply via email to