WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Droplets & Snippets => Topic started by: Youkai on September 30, 2009, 06:29:53 PM

Title: Droplet multiple times on a page
Post by: Youkai on September 30, 2009, 06:29:53 PM
I have a droplet I created and I want to call it multiple times on a page. My calling code looks like this:

[[ItemCheckboxes?startPoint=101&checkboxID=products]]
[[ItemCheckboxes?startPoint=97&checkboxID=products]]
[[ItemCheckboxes?startPoint=114&checkboxID=products]]

The start points are page ID's. My droplet is essentially this (I stripped out a couple things but this code is in my droplet):

$displayText = 'Start Point: '.$startPoint.'<br />';
return $displayText;

When it spits out to the page I get "Start Point: 101" three times. Is there a known issue with calling droplets with pramaters multiple times on the same page? It seems that my second and third call are using the parameter from the first call.

I am using: CMS version 2.8, Admin version 1.4
Title: Re: Droplet multiple times on a page
Post by: instantflorian on September 30, 2009, 07:33:57 PM
Hi,

please update the droplets module to version 1.0.2 which you can find here:
http://www.websitebakers.com/pages/droplets/module-wb2.8.php (http://www.websitebakers.com/pages/droplets/module-wb2.8.php)

Regards

-instantflorian.
Title: Re: Droplet multiple times on a page
Post by: BlackBird on April 01, 2010, 01:18:20 PM
This problem still occurs with Droplets 1.0.2
Title: Re: Droplet multiple times on a page
Post by: DarkViper on April 02, 2010, 07:32:25 PM
solved with version 1.0.3 (07.03.2010)
available on SVN (http://project.websitebaker2.org/browser/branches/2.8.x/wb/modules/droplets)
Title: Re: Droplet multiple times on a page
Post by: erpe0812 on April 03, 2010, 12:16:12 AM
Click here (http://www.websitebakers.com/pages/droplets/module-wb2.8.php) to download module only

rgds

erpe