Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8434063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:33:22+00:00 2026-06-10T06:33:22+00:00

I have a component in tridion where its metadata design has a field called

  • 0

I have a component in tridion where its metadata design has a field called ‘list’ which is populated using Categories and Keywords

I used a DWT code to populate items present in the list using the following code using My DWT TBB

<!-- TemplateBeginRepeat name="Metadata.list" -->

    <!-- TemplateBeginIf cond="list" --> 
        @@RenderComponentField('list',TemplateRepeatIndex)@@ ,
    <!-- TemplateEndIf -->

<!-- TemplateEndRepeat -->

but Im getting preview as

one,two,three,four,five,

desired output should be like:
one,two,three,four,five

so for this i need to get the maximum count of “TemplateRepeatIndex”
Is there any inbuilt function to check the same.

using Tridion-sp1,2011.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T06:33:24+00:00Added an answer on June 10, 2026 at 6:33 am

    You can solve this with the built in function: CollectionLength.

    When you have a multi-valued text field “multiValuedField” you can find the item count using the following expression:

    @@CollectionLength("Component.Fields.multiValuedField")@@

    Collection Length receives an expression that is the fully qualified name of an item and a value selector of a package item.

    The value returned is a string. When you need to perform an integer comparison or calculation you need to parse the value to an integer:

    @@parseInt(${CollectionLength("multivalued")})@@

    This works because the string between @@ and ${} is parsed as JScript.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Tridion I have a page to which a component is attached that has
Please consider such scenerio: I have component called TMenuItemSelector which has two published properties:
I have a component which has a List<T> property. The class in the list
i have one component OutputText , i want to change its value using jquery,
I have a component I created in C# which had previously been using the
I have a component registered with Castle Windsor which depends on a list of
I have some component items in tridion which are set up for a particular
I have a component extending a Spark List, and when I scroll using the
I have component which needs to update the database for the customer and customer
I have a component to which I assign a tooltip upon first mouseenter (sort

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.