Repository navigation
Are Folders Still Virtual Paths or First-Class Objects? #8256
|
I'm trying to better understand how page hierarchy works in Wiki.js v3. From the Wiki.js documentation, my understanding has historically been that folders are inferred from page paths rather than existing as actual folder objects. For example, a page could exist at /en/example/directory/page without requiring explicit creation of /en, /en/example, or /en/example/directory. I also found an older discussion where @NGPixel stated: "folders don't technically exist" However, in v3 I see references to folder trees, destination folders when saving pages, and page tree entries with properties such as isFolder, which makes me wonder whether the underlying model has changed or whether these are still abstractions over path-based content. #8237 && #8241 Could someone clarify:
|
Replies: 2 comments 3 replies
|
The old v2 explanation should not be carried over unchanged to v3. In the published 3.3.0 The tree model has A page and a folder can occupy the same logical path. The browse response deliberately merges them
Consequently, a folder can exist without a page at its path. A page placed at that path can provide The tree API exposes these folder This is based on the tagged 3.3.0 source, not a test against your instance. |
|
v3 has real folders and are no longer inferred from page paths. They behave like a real file system in that sense. The only thing that is still true in v3 is that a page with the same path name as a folder is the landing page for that path. |
v3 has real folders and are no longer inferred from page paths. They behave like a real file system in that sense.
The only thing that is still true in v3 is that a page with the same path name as a folder is the landing page for that path.