Ok Julius, let's develop together a bit as we understand more.
Now, its normal to have some snippets, chunks and so on, that's the second tab in the manager, but its probably the templates (top of second tab) and resource tree in the first tab that you want to focus on. And the number of files on the server is definitely not small, there are so many parts.
The
resources are where your page contents go, and each of those resources has both an ID number (15) and an
alias, which is a word or words connected by dashes, and those words are usually taken directly from the resource title. You will see the alias on the right side, under template. You cannot dictate the ID number, it starts with 1 and keeps going up automatically each time you make a new resource.
It is this alias that is now south-america...in resource 15, not in the page contents.
The reason for the aliases is it helps google give our websites love. One great thing about Modx is it has all the nooks and crannies for us to put in data that helps google help us. That's what the friendly-urls comes in, it uses links to our pages according to alias (with ID used in backend) so google will know what those pages are about.
It looks like you are on your way! Usually html is in the template (and chunks which are pieces of html to make updates or switches easy) and the resources are just contents, perhaps with some tools. [[*contents]] in the template pulls in whatever data is in that resource. (my code might be wrong depending on your system, check some templates to confirm).
[[!something]] gives you the uncached value of (something), without the ! is cached, it matters sometimes whether you need the *updated* value or just the value. Chunks and Snippets might have slightly different calls, please confirm for your version.
If a page is special and there's only one I just put it all in the template and leave the resource empty. If the template doesn't call the resource contents then it won't be shown.
How many resources do you have now, in your tree? Sounds like at least 15 if you have ID 15! Those are your pages...and remember there's a couple with special roles like login and so on, they are resources too.
Resources can be containers, click into any resource with a plus next to it, a resource (like say south-america-overview) can have both contents and child resources under it, like south-america-weather and south-america-culture.
Also you can drag and drop those resources right into other resources as you organize them into the groups you want, if they haven't been organized yet
Your tables should live comfortably in the resources too, tables will definitely be managable.
[ed. note: nuan88 last edited this post 5 years, 11 months ago.]