|
||||
[Chameleon] Query WidgetPaul Spencer spencer@dmsolutions.caWed, 14 Jan 2004 22:22:17 -0500
|
Tracy, in 1.) it would have been easy. In 1.1, it is a little trickier. Basically, we need a way of loading a separate template. The way the help widgets work is to embed them in a help file and they output language-specific help into the template. You provide your own page structure and additional text around the widget-specific help. To do this, you need to create a second .phtml file. You probably named your first one index.phtml or something like that. You can create a second one called help.phtml (for instance) and in this new file, change the application template to be your help template (assume help.html :)) Then you would add a link widget that points to help.phtml and it will load help.html and replace all the help widgets with the appropriate help text. One thing I am not sure of is if you really need to have a map file or not. You can experiment with this :) You may be able to just leave out the map file part and it will just work. The other way to do it is within the same index.phtml file and provide logic for selecting a map file and application template based on some URL value ... you could set the Link widget to call index.phtml with ?template=help and then in index.phtml select the help.html file as the template. Cheers, Paul Tracy Howlett wrote: > I did notice the Link widget and thought I would give it a try. I haven't > done that yet as I wanted to check on how the Help tool worked. Obviously > it would be better if the tool could figure out what widgets were loaded and > populate the help file with the appropriate instructions (I think that is > what this help widget is intended to do). I'm running 1.1. > > -----Original Message----- > From: Paul Spencer [mailto:pagameba@magma.ca] > Sent: Wednesday, January 14, 2004 1:33 PM > To: thowlett@whistlermuseum.org > Cc: chameleon@lists.maptools.org > Subject: Re: [Chameleon] Query Widget > > Tracy, I think the way to do that is to use a Link widget. But now that > I think about it, I'm not sure that this will work yet. The help widget > is something that you would normally put into a second template and then > have chameleon load that second template. Are you using Chameleon 1.0 > or 1.1? My advice from this point on depends on which version you are > using :) > > Paul > > Tracy Howlett wrote: > > >>Part 2 of my question was about the Print and Help tools. When I click on >>Print I get a 'No Event' box and I don't think I totally understand how > > the > >>Help Widget is supposed to be implemented since it only requires the base >>attributes. How can I attach this to a button? >> >>-----Original Message----- >>From: chameleon-admin@lists.maptools.org >>[mailto:chameleon-admin@lists.maptools.org] On Behalf Of Tracy Howlett >>Sent: Wednesday, January 14, 2004 9:57 AM >>To: spencer@dmsolutions.ca >>Cc: chameleon@lists.maptools.org >>Subject: RE: [Chameleon] Query Widget >> >>That'll do it. Thanks Paul >> >>-----Original Message----- >>From: chameleon-admin@lists.maptools.org >>[mailto:chameleon-admin@lists.maptools.org] On Behalf Of Paul Spencer >>Sent: Saturday, January 10, 2004 3:22 PM >>To: thowlett@whistlermuseum.org >>Cc: chameleon@lists.maptools.org >>Subject: Re: [Chameleon] Query Widget >> >>Tracy, >> >>I think there is a small problem with the query widget not including the >>popup code. Try adding the following line of code to Query.widget.php >>around line 31 (with the other includes). If it works, I'll commit the >>change to CVS. >> >>include_once( "Popup.php" ); >> >> >>Cheers, >> >>Paul >> >>Tracy Howlett wrote: >> >> >> >>>I'm trying to implement the Query widget but I'm getting the following >>>error: >>> >>>PHP Fatal error: Cannot instantiate non-existent class: cwcpopup in >>>C:\apps\cwc2\htdocs\widgets\Query.widget.php on line 56 >>> >>>I can't find any documentation on the cwcpopup class (or lack thereof!). >>> >>>I'm also having problems getting the PrintWidget and HelpWidget working. >>>Are there any known issues with these widgets? >>> >>>My setup: >>>MapServer 4.0.1 >>>PHP/MapScript 4.3.4 >>>Chameleon 1.1 >>>Win XP (must also work on Server 2003) >>> >>> >>> >>>_______________________________________________ >>>Chameleon mailing list >>>Chameleon@lists.maptools.org >>>http://lists.maptools.org/mailman/listinfo/chameleon >>> >> >> > -- ----------------------------------------------------------------- |Paul Spencer spencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| -----------------------------------------------------------------
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |