Hello Wix team,
For some reason I am still getting this error, can anyone guide me as to what I may be doing wrong here? I have read the documentation a couple times but I still get confused on getting it right when it comes to my scenario:
Here is how I would like my data structure to be in relation to my various dynamic pages:
mydomain.com/practice (this one should show my practice areas page on alex-the-defender, but I cannot figure out how to connect that STATIC page as a display category page to my data set and thus this URL) this page shows everything via various interactions both on top level category and 2nd level category inside the static elements of the page that are then linked to these dynamic pages one by one after they are working correctly)
I would then like to have it drill down like this but strongly doubt this is possible considering the 1-level nesting pages on Wix are limited to at this time:
mydomain.com/practice/criminal-defense/ as a 2nd level category URL, this page will show all the subcategories as listed on my hidden pages for Dyn subcategory
And then the item collection or sub sub category pages will be the crime family topically with URL going like mydomain.com/practice/criminal-defense/sex-crimes
And on the final level, I will have the crimes themselves within each family and the page will look like
mydomain.com/practice/criminal-defense/sex-crimes/sexual-assault-defense-attorney
Is this even possible currently speaking?
I have so far only been able to get the following mode of URL structure to work
mydomain.com/practice/ sex-crimes/sexual-assault-defense-attorney
Skipping 2 /folder/subfolder/ bit if you will. Which I would rather not do and have in my URL, but not a big deal. However, I would totally need my /folder and /folder/subfolder addresses to work and not throw 404, so what all am I doing and thinking wrong here. Sorry a little in rush and convoluted, tried my darned best to explain the pickle I am in per site structure request and given what i am running into so far.
I am aware of CMS (Formerly Content Manager): Troubleshooting Dynamic Pages Issues | Help Center | Wix.com but it does not seem to answer my question or idiocy here lol
Hey!
You can for sure achive this. But it’s not possible without coding a lot.
First of all, look at this reference wix-router - Velo API Reference - Wix.com
And here: Velo: Creating a Router | Help Center | Wix.com
Custom Router give you possiblility to MANUALLY control redirecting options everywhere.
So you can define reaction on request like “mydomain.com/practice” in your own way
As i can understand you want to build structure of this:
Crimes → Crime areas (some number) → Crime subareas (some number per each area) → family names and specific details
Am i right? If yes, you can store it all in one big collection:
| Crime area | Crime Subarea |Family|Spec details+columns...
| 1 ar | 1 subar |John |
| 1 ar | 1 subare |Jerry |
| 1 ar | 2 subar |Tom |
And then use wixData.query with .contains and .equals methods to get all relevant items from the collection (and then show it on apprpriate custom router page with specific design)
This can be developed. But this will be tough, i promise you)
So eventually, main flow is this:
- Create + fill in collection
- Create custom router, which will react on requests like mydomain.com/practice/sex-crimes/sexual-assault-defense-attorney
- Parse rewuset, get category and subcategory
- Get data from collection with wixData.query (with equals(category).equals(subcatergory)
- Display it with table (for example)
- Define pages for redirect, when user goes to paths like mydomain.com/practice/sex-crimes or mydomain.com/practice/sex-crimes /sexusal…
Hay Omid,
It can be done using dynamic pages.
The page URLs you are looking for are below
mydomain.com/practice
mydomain.com/practice/criminal-defense/
mydomain.com/practice/criminal-defense/sex-crimes
mydomain.com/practice/ sex-crimes/sexual-assault-defense-attorney
or even
mydomain.com/practice/ criminal-defense/sex-crimes / sex-crimes/sexual-assault-defense-attorney
As all the URLs start with practice, all of those pages will have to be dynamic pages.
Note that when you create a dynamic page, you have the URL entry.
You can create complex patterns based on your fields, so that in your case, I’d build the URLs to be
mydomain.com/practice - practice
mydomain.com/practice/criminal-defense/ - practice/
{area}
mydomain.com/practice/criminal-defense/sex-crimes - practice/
{area}/{category}
mydomain.com/practice/ sex-crimes/sexual-assault-defense-attorney - practice/
{category}/{title}
or even
mydomain.com/practice/ criminal-defense/sex-crimes /
sex-crimes/sexual-assault-defense-attorney - practice/
{area}/{category}/{title}
Note also that different dynamic pages with the same prefix (practice) can be sourced from different collections.
This is lovely, I had to rush with manual placeholder pages for now to get this thing launched since Im noobing hard here on getting this to work, however, I will come back around and fully utilize all your great assistance here guys! Thanks!