Filepath Overview
The Filepath Hierarchy uses the UWC Hierarchy Builder Framework to automatically create parent child relationships using the directory tree structure on your file system.
Using the filepath of the file representing the page to the UWC, it will determine the parent-child relationships of the page.
| Use if your file system maintains parent child relationships If the pages you are going to be converting are already kept on the filesystem with the parent-child relationships intact, then this is an easy way to import those relationships. |
Usage
To use the Filepath Hierarchy,
add the following two properties to your converter.xxx.properties file:
MyWiki.0001.switch.hierarchy-builder=UseBuilder
MyWiki.0002.classname.hierarchy-builder=com.atlassian.uwc.hierarchies.FilepathHierarchy
How does it work?
See UWC Hierarchy Framework - UseBuilder Example.
What about the filename extension?
The FilepathHierarchy will use the first valid filename's extension to make assumptions about filenames, filepaths, and directories. What this means for you is:
- All pages have to have the same extension. Doesn't matter what it is; they just have to be the same.
- What if you don't want the extension to be part of the page? It's totally fine to change the extension via a converter, so long as all extensions are the same, even if that means there is no extension.
See also:
UWC Hierarchy Builder Framework
| version 42 This feature became available with version 42 of the UWC. |
