2013-03-16, 06:24:56
Yeah as a hacky kludgy way, which is my point.
We do not need users moving files around and stuff, like I said, xml files should be considered as a datastore. If someone wants a file based system hierarchy, then why use a cms.
Wrong solution, and would introduce more limitations at some point.
Also recursing in to folders to scan files is more expensive.
The proper solution would be to use pageindex for slugs and storage.
Slugs become an alias for pageindex.
And files are stored as unique pageids.
Then slugs can become multileveled.
We do not need users moving files around and stuff, like I said, xml files should be considered as a datastore. If someone wants a file based system hierarchy, then why use a cms.
Wrong solution, and would introduce more limitations at some point.
Also recursing in to folders to scan files is more expensive.
The proper solution would be to use pageindex for slugs and storage.
Slugs become an alias for pageindex.
And files are stored as unique pageids.
Then slugs can become multileveled.
Code:
slug = 1.xml [slug:'slug']
path/slug = 2.xml [slug:'path/slug']
path/path/slug = 3.xml [slug:'path/path/slug']