Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
How to process Container ??
KshitiKothari
Hi,
I have to process this container through a tpl file. Please advise in this regrd.
Be noted that combintion is OR. It means that user has to choose one item: either ctrOne,ctrTwo or ctrThree.
<container combination="or" hide-name="t" name="ctrMajorArticleSection">
<item name="ctrOne"><label>Major Heading</label>
<replicant max="1" min="1" default="1">
<item name="majorHeading"><label>Major Heading</label>
<description>Max of 100 characters</description>
<text required="t" size="55" maxlength="100"/>
</item>
</replicant>
</item>
<item name="ctrTwo"><label>Lead-In</label>
<replicant max="1" min="1" default="1">
<item name="leadInText"><label>Lead-In Text</label>
<description>Max of 400 characters</description>
<textarea required="t"/>
</item>
</replicant>
</item>
<item name="ctrThree"><label>Major Heading with Lead-In</label>
<replicant max="1" min="1" default="1">
<item name="majorHeading"><label>Major Heading</label>
<description>Max of 100 characters</description>
<text required="t" size="55" maxlength="100"/>
</item>
<item name="leadInText"><label>Lead-In Text</label>
<description>Max of 400 characters</description>
<textarea required="t"/>
</item>
</replicant>
</item>
</container>
Is there any process so that I could get the first item of container. in the above case the first item is either ctrOne,ctrTwo or ctrThree.
Please answer as soon as possible. Any suggestion is welcome.
Regrds
Vivek jian
Find more posts tagged with
Comments
Adam Stoller
Have you (a) Read the manuals? (b) taken any Interwoven training courses on templating development? and/or (c) tried searching through the forums for similar type requests and responses?
If not - I suggest you do all 3 (although it's quite possible that if you do the first 2, you won't need to do the 3rd at this point).
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
gzevin
well.. Adam.. even I tried not to do a RTFM line... and you, the best good samaritan, IMO, are doing this.....
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
Adam Stoller
It all depends on the question, how it's phrased, and how verbose I'm feeling at the moment.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
Johnny
This question was also posted and answered in the templating forum.
Please choose one appropriate forum only to post (in this case templating), instead of spamming us.
John Cuiuli