Dynamic Pages

Anyone have trouble creating Dynamic pages using a newly created Database? I created my New Collection (Database), adding several fields (Rich Text, Image, Document, Date/Time) and several rows. I start the dynamic page creation process and when I get to the “Create your URL” page, and click ‘Add Field’, it shows none of my fields (only Title, the Primary Key and ID).

If I go ahead and try to create the page, nothing is on it except the link ICON.

Anyone?

Hey Tony,

Welcome to WixCode. Glad to have you on board.

Certain types of fields can’t be used in dynamic page URLs, including the fields you tried to use (Rich Text, Image, Document, Date/Time). A dynamic page URL is basically used as a query against the collection. The contents of these fields don’t lend themselves to be used as a query.

Say we have a dynamic page URL that looks like this:
/PictureDisplay/{image}
It just isn’t possible to use an image in the URL.

What you most likely want is to create a URL that contains some sort of query criteria that will result in the image being displayed on the page. Like this for example:
/PictureDisplay/{userID}
On a dynamic page that as an $w.Image element that is connected to the appropriate database collection, this URL will result in the dynamic page looking up the userID and displaying the image in that collection row.

I hope this helps. Have fun with WixCode.

Yisrael

Hey Yisrael,

Thanks for taking the time to look into my issue. Your information was very helpful and allowed me to move forward with my design and complete the Dynamic Pages!

Tony