[MAGNOLIA-1969] Function to iterate over a node Data that has "checkbox" as control type Created: 19/Dec/07  Updated: 23/Jan/13  Resolved: 11/Jul/08

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: 3.6, 3.5.9

Type: Improvement Priority: Minor
Reporter: Maria Elena Assignee: Jan Haderka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File CmsFunctionsEx.java     File cmsfnex.tld    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

Developeing some project I needed to use the "checkbox" control type in a dialog.
I was looking for some tag to iteratarate over the checkbox value but I couldn't find it.
So I'm suggesting some utility code that is doing this.



 Comments   
Comment by Magnolia International [ 20/Dec/07 ]

Thanks Maria !

Comment by Jan Haderka [ 21/Dec/07 ]

Could you please provide also usage example? I understand thatyou use the function to set the value for the checkbox, but can't imagine how it is better in comparison to use of the contentIterator tag. Thanks.

Comment by Maria Elena [ 02/Jan/08 ]

First of all, this is the structure of my content node with a controlType checkbox:

content node immagini (controlTye checkbox)
it contain:
content node options
it contain:
content node rete1
content node rete2

I need to loop over immagini to retrieve the values of the content node rete1 e rete2:

<c:forEach items="${cmsfnex:nodeDataIterator(cmsfn:currentParagraph(), 'immagini')}" var="option">
....Other code.....
</c:forEach>

I couldn't make it width the contentNodeIteratore tag...but I'm open to any suggestion.
Thanks
Mary

Comment by Magnolia International [ 11/Jul/08 ]

Added to trunk (3.6) and 3.5 branch, thanks !

Generated at Mon Feb 12 03:32:06 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.