Leon,
Thanks for confirming what I thought. I started down the %{bsh:....}
path last night, but I think I might go back to FTL for all but the
simplest things.
Cheers, Iain
Leon Torres wrote:
Hi, are these lists of yours nested or do you have one list followed
by another list? The form widget can handle the latter, but not nesting.
In my experience, the form widget is the wrong tool if you're trying
to create a page with rich content. It's great for churning out
simple forms, but I'd stick with an FTL file for something more
complicated.
But if you still wish to go down this route, you can attempt to use
<display descritpion="%{bsh: helperObject.composeMultiValue()} /> and
have that function generate your multi valued nested code.
- Leon
Iain Fogg wrote:
Does anyone know how to iterate over a list of values in a form widget.
I'm trying to compose a page in the catalog manager that shows a
summary of more important product elements. Several of the bits I'm
interested in are multi-valued. For example, I want to show a simple
list of the different product prices (along with a bunch of other
stuff that traditionally lives on other screens in the catalog app):
<stuff here>
Price: $19.95 (list)
$15.95 (default)
$12.95 (promo)
<more stuff here>
I've thought of composing the page with multiple "list" forms, but
I'm struggling to get to grips with the styles to make everything
look the way I want (eg, nice alignment between forms) on the page.
As much as I love CSS, I'll admit that I'm struggling to find the
styles appropriate for my purpose :-)
I don't know much about "multi" forms, and they sound promising - can
someone provide a pointer to some useful docs or examples. Maybe I've
missed it, but I haven't been able to find anything approaching a
reference manual (although Si's cookbook is great for some useful
techniques).
Cheers, Iain
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.17/505 - Release Date: 27/10/2006