[Chameleon] duplicate widgets
Yahya Mohammad
mfyahya at gmail.com
Wed Jul 12 07:14:56 EDT 2006
Are you passing any GET, POST parameters or calling javascript functions? Both
widgets might be getting the same params/functions. The solution would be to
add a unique ID at appropriate places in the widget code. If you look at some
other widgets this is done by appending $this->mnId wherever needed.
Yahya Mohammad
> Anyone,
>
> I have a question relating to duplicate widgets. Is it possible to have
> multiple copies of a widget within an application. I created a widget and
> now I would like to have multiple copies, each with their own settings.
>
> I added the 2 tags, like they are below but only the first one worked. when
> ever I attempted to use the second copy, it had the settings for the first
> copy. The second copy did have the correct image tip though.
>
> <td>
> <cwc2 type="ContentSelector" imagetip="Display Chameleon"
> image="icons/icon_image_query.png" styleresource="NavButtons"
> toolset="Navigation"
> TEMPLATEFILE="IMGTemplate.html" TYPE="PAGE"
> URLFIELDNAME="URL" DEFAULTURL="http://10.25.2.154/images/COGS.jpg">
> <image state="normal"
> IMAGE="buttons/button_image_query_1.png"/> <image state="hover"
> IMAGE="buttons/button_image_query_2.png"/> <image state="selected"
> IMAGE="buttons/button_image_query_3.png"/> </cwc2>
> </td>
>
> <td>
> <cwc2 type="ContentSelector" imagetip="Display image"
> image="icons/icon_image_query.png" styleresource="NavButtons"
> toolset="Navigation"
> TEMPLATEFILE="IMGTemplate.html" TYPE="image"
> URLFIELDNAME="URL" DEFAULTURL="http://10.25.2.154/images/COGS.jpg">
> <image state="normal"
> IMAGE="buttons/button_image_query_1.png"/> <image state="hover"
> IMAGE="buttons/button_image_query_2.png"/> <image state="selected"
> IMAGE="buttons/button_image_query_3.png"/> </cwc2>
> </td>
>
> anybody have any idea how i could get this to work?
>
> Arthur Abbott
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
More information about the Chameleon
mailing list