[From nobody Tue Sep 5 14:22:55 2006 Message-ID: <44FC4900.8060905@mapgears.com> Date: Mon, 04 Sep 2006 11:40:48 -0400 From: Julien-Samuel Lacroix <jlacroix@mapgears.com> User-Agent: Mozilla Thunderbird 1.0.2-6 (X11/20050513) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Pagurek,Debbie [NCR]" <Debbie.Pagurek@ec.gc.ca> Subject: Re: [Chameleon] Query widget and tablerenderer.php References: <3F34A5A15450C74C813BA20E31DBB451030F76D6@ncrx3.ncr.int.ec.gc.ca> In-Reply-To: <3F34A5A15450C74C813BA20E31DBB451030F76D6@ncrx3.ncr.int.ec.gc.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, You can specify Layout="vertical" in your widget definition to have vertical results. To change the QueryResults.phtml popup, you can simply copy the file to have a new name and change the Query.widget.php file to point to the new result file. Around line 85, change the Link to a new .phtml file: $this->moPopup->mszLink = $_SESSION['gszCoreWebPath']."widgets/Query/QueryResults.phtml"; Hope that help Julien Pagurek,Debbie [NCR] wrote: > > Hi all, > I'm just starting to do some work with Chameleon 2.4. I notice that > there is a difference in the QUERY widget now (we used Chameleon 2.2 for > our app) - I see that there is a tablerenderer.php script, and that it > might be possible to pass a new layout to that script from the query > widget. We basically want a vertical table, but we have tweaked the > styling and have some other things that replace certain characters for > instance. > > So the question is, what would the cwc2 tag look like to accommodate a > new layout? Can it be used this way? > > Just wondering if I can do my changes this way or if I will have to > replicate the entire Query widget and call it something new and then > make my changes (which is what we did in version 2.2). > Is there anything special I need to know about doing it this way in 2.4? > > Thanks for your help, > D. Pagurek > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ ]