[1.5.6] Widget question...

Hi there,

Im working on a small widget to place thumbs with information below an image
My idea was to create a custom field “thumbindex” and using the value of this field in the Widget I would refer to the right photo, text, etc…

For example:

{{{~Sectionthumb fieldindex=“1” spanclass=“span3”}}}
{{{~Sectionthumb fieldindex=“2” spanclass=“span3”}}}
{{{~Sectionthumb fieldindex=“3” spanclass=“span3”}}}

CUSTOM FIELDS VALUES:
text_1, img_1
text_2, img_2
text_3, img_3
etc…

GET VALUE FROM CUSTOM FIELDS:
cb.getCustomField(‘text_#fieldindex#’,0)

cb.getCustomField(‘img_#fieldindex#’,0)

etc…

With this I was expecting to get three different boxes with different content, using the fieldindex. But I got three exact same boxes all with fieldindex _1
so, my question is: Can I call the same Widget more than once and get different results in every call?

Thanks in advance

xerrano

You should, each widget call is a different one.

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Thank you Luis, I got it… this how it looks now… ContentBox just Awsome!

Looks really nice!!

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Thanks Luis!