I would like to build a website with Wix, but inside the Wix website I would like a page with classifieds, where people can add / search for an advertisement.
What are my options ? I would like to make this classifieds page for free in the beginning.
Hey
I would create a Data Collection called Classifieds with meta data about each classified ad. Then I would create a Data Collection called Categories and connect them so categories for your classifieds is in another Data Collection connected with a reference field. This is all easy to setup in the Database folder in your site.
Then you just create a Dynamic Page by right clicking the Classifieds Data Collection and first you select Index to show all ads on one page and then you create another Dynamic Page from the same collection for Item Page and here you design how you want them displayed per item.
If you want create a page with a repeater connected to Categories and when clicking on each category you open the index page for that category to show all ads within that category.
Then create a New Ad page and drag out a dataset, connect it to Classifieds Dataset using Mode = Write Only and then design the form. Add a Dropdown for Category and select the reference field as the value and it will populate with all the possible categories you have in the Categories Data Collection.
Then create a search box and a button and when clicked use the setFilter method on the dataset to just show the ads where title or what field you want is equal to the .value property of the search box.
Then you you want to get paid, add a payment processor to your site and look at the Wix Pay API and there you can initiate payments and charge people when they submit ads to your system.
@andreas-kviby You’re probably the only person in the entire wix community that provides some actual advice! Thank you, I’ll follow your steps and see if i manage to do it, I now what you’re describing, for some reasons I had some problems about creating dynamic pages