From: Mitra <mi...@mi...> - 2003-01-14 00:14:33
|
> >> P.S. I'd still like a hint on how to create a new "item" refering to > > an item id, this would be very useful for use of the site module, but >> I can't figure out if this is possible. > >I'm not sure I understand, what you need. In the site, I have a parameter like --m1234 So I have an id of an item, - (actually a short id, but it doesn't really matter. ) What I would like to do is in module/site/sites/site_greenpages.php3 create an instance of the class "item" (as in include/item.php3) so that I can then do my unaliasing in that context. This would mean that within the site definition I could put _#HEADLINE or {headline........} or {alias:related........1:f_v:view.php3?vid=23&cmd[]=x-23-_#this} etc etc But the code for creating the instance of the class item is pretty obscure, it is tightly coupled to the places it is used now, I'm looking for some guidelines to creating an instance of the class item starting with an id. - Mitra -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722 Life is a Mystery to be Lived, not a Problem to be Solved |