00:00:00
Sponsor
CMS

Webflow nest

Nest any Webflow element inside another Webflow element

Demo

Instructions

Make sure you have the VisualDX script in your <head>. Checkout the Quick Start for how to do this.

Prerequisite: Set up 2 CMS Collections and bind them with a Reference field or a Multi-refrence field

1

In the CMS Collection List I want to nest another CMS Collection List:

Add a link or a link block to the CMS Collection Item and give it an attribute of  vdx-nest-link

** This link will be replaced with the nested content**

2

Give the attribute any value. i.e. vdx-nest-link="card"

3

In the Link Settings choose the purple Collection page link option and choose Current Item

4

The CMS Collection List I want to nest:

Go to the CMS Collection Page of the CMS Collection List I want to nest.

Add the attribute vdx-nest-this to the CMS Collection List or  CMS Collection Items you want to nest.

5

Give the vdx-nest-this attribute the same value as the vdx-nest-link attribute.

if vdx-nest-link="card"  then vdx-nest-this="card"

6

Publish and test.

CMS Nest Example

Blog Category A

Blog Category B