CMS: Linking to a Dynamic Page
5 min read
When you create a dynamic page, you create a single page layout that can be used multiple times to display different items from your collection.
The only way for your visitors to access the dynamic pages on your site, is by clicking an element, such as a button, text box, or menu item, that redirects to the dynamic page. The content that is displayed is based on the URL of the page.
New datasets experience:
In Wix Studio, we've moved datasets to the Inspector panel on the right to make them easier for you to use. Learn more about the new datasets experience in Wix Studio.
In this article, learn how to:
Linking to a dynamic item page from a text box
When you create a static link to a dynamic item page, you create a link that always redirects to the page for that specific item.
To link from a text box:
- Click the text box element in the Editor.
- Click Edit Text.
- Click the Link icon
.
- Select Page.
- Select the dynamic page you want to link to under Which page?.
- Select the item in your collection under Which Item?.
- Select how the dynamic item page opens: New window or Current window.
- Click Done.

Linking to a dynamic item page from a menu item:
Use the Manage Menu panel to add an item to your menu that links to the dynamic page for a specific item in your collection.
To link from a menu item:
- Click the menu in the Editor.
- Click Manage Menu.
- Click + Add Menu Item.
- Click Dynamic Pages.
- Select the dynamic page you want to link to under Which page?.
- Select the item in your collection under Which Item?.
- Select how the dynamic item page opens: New window or Current window.
- Click Done.

Linking to an anchor on a dynamic page
Link directly to an anchor on a dynamic page to guide site visitors to a specific point on your site. In the example below, the link is in the main menu and goes to an anchor called Full of Falafel on a dynamic list page of food products.
To link to an anchor:
- Click the menu in the Editor.
- Click Manage Menu.
- Click + Add Menu Item.
- Click Anchor.
- Select the required dynamic page from the Which page? drop-down.
- Select the item under Which item?.
- Select the anchor from the Which anchor on this page? drop-down.
- Click Done.
- Enter a name for the menu item.
- Click Done.

Linking to dynamic item pages from multi-item elements
Set up a multi-item element, such as a repeater, so clicking an item redirects to the dynamic page displaying that item's content.
For example, on your recipes site, you could use a repeater to show previews of your recipes. In your repeater, you include an image to display the picture of the dish from your collection, and then link from the image item to the dynamic item page for your recipe items.
To link from a repeater multi-item element:
- Click the repeater element on your page.
- Click the Connect to Data icon
.
- Click the Connect a dataset drop-down, and select the required dataset.
- Click Image under Components.
- Click the Image source connects to drop-down and select the image field.

- Click the Link connects to drop-down.
- Select the required page under Dynamic Pages.

Linking to the "next" or "previous" dynamic page
Let your visitors navigate between your dynamic pages. Add 2 buttons on your page and link them to the "Next Dynamic Page" and "Previous Dynamic Page" options in the Connect to Data panel.
On a dynamic item page, navigation buttons display the next or previous item page in your collection. On a dynamic list page, the buttons display the next or previous category page in your collection.
For example, on a site featuring food products, you can set up a dynamic list page with a repeater to show products of specific types. Each dynamic page will feature food from each category, such as Breakfast, Dessert, or Healthy.
Adding buttons to go to the "Next dynamic page" and "Previous dynamic page" allows the site visitor to navigate between dynamic pages displaying products from each category.
To set up navigation buttons:
- Click the button on your dynamic item page.
- Click Change Text & Icon.
For a "< Previous" navigation button
For a "Next >" navigation button

Tip:
Dynamic pages are displayed in alphabetical order by their URL. Note that numbers come before letters, and uppercase letters come before lowercase letters. In other words, "Ziti" comes before "apple pie."
Did this help?
|