From: Andreas A. <a.a...@th...> - 2001-08-27 12:38:53
|
Hi Alex, sorry, maybe I was a bit too fast when I inspected the files (I visited the wrong one). The output generated for a page is actually unusable. The Keyless module arrays in page are normally translated to the "container-format" we apply also to datasources/queries/lang: load => array( array(modulefoo), array(modulebar), ... ); With Andris' latest files I get a structure like this: load => array( 'module' => array( modulefoodata ) ); This does not work, 'caus onyl the last module entry of the pagedef is in the generated page (the key module is sequently overwritten). Andi > -----Original Message----- > From: bin...@li... > [mailto:bin...@li...]On Behalf Of alex > black > Sent: Montag, 27. August 2001 00:28 > To: bin...@li... > Subject: Re: [binarycloud-dev] bye-bye [xm2php] > > > I need to look at this, but I'm willing to bet that I'll agree. > > I'll probably commit a changed version of Page on monday. > > _a > > ----- Original Message ----- > From: "Andreas Aderhold" <a.a...@th...> > > > Hi Andris, > > > > Hmm. But the output looks more clear to me. I think it's worth changing > > Page. > > > > Hopefully see you soon. Good luck with your move. > > > > Andi > > > > > xml2php now uses the idea from Alex to know when to > > > generate keyless arrays(the version before generated > > > keyless arrays if there were two array keys with the > > > same name, but it didn't work if there was only one array > > > defined). > > > _Because of this change it is necesary to change the bcp.xml page > > > definitions and the way Page processes them._ > > > > > So, > > > <langs> > > > <lang> > > > <name>Latvian</name> > > > </lang> > > > <lang> > > > <name>English</name> > > > </lang> > > > </langs> > > > > > > will become > > > > > > $langs=array( > > > array( > > > 'name' => "Latvian", > > > ), > > > array( > > > 'name' => "English", > > > ), > > > ); > > > |