Blog Sections Open
Using @CHUNK Bindings in DropDown TVs for Country Lists
Long DropDown TVs become hard to maintain when every option is stored directly inside the TV definition. A cleaner legacy pattern is to move the options into a chunk and load them with an @CHUNK binding. Example TV name:
Long DropDown TVs become hard to maintain when every option is stored directly inside the TV definition. A cleaner legacy pattern is to move the options into a chunk and load them with an @CHUNK binding.
Example
TV name: country
TV type: DropDown List Menu
Possible values:
@CHUNK countries
Then the countries chunk contains the actual values:
==0||==6||==66||==150||==159||==160||==162||==161||==67||==48||==126
Why Use This Pattern
- you can edit the option list without reopening the TV definition every time
- the list becomes reusable across multiple TVs or templates
- large datasets stay easier to version and review
When to Go Further
If the list needs labels, grouping, or dynamic sourcing, a dedicated helper or database-backed source may be better. But for stable lists like countries, regions, or shipping zones, @CHUNK is a practical middle ground.
Filtering Ditto Output by TV Values Without Losing Folder Control
How to combine Ditto filters, depth settings, and folder visibility rules when catalog data sits several levels deep.
Showing the First EvoGallery Image on a Listing Card
How to display only the first EvoGallery image for a resource when rendering product or listing cards in Evolution CMS.