Links within KnowledgeTree
From KnowledgeTree Document Management Made Simple
KnowledgeTree supports four permutations of URLs for documents, depending on whether you have PATH_INFO support and whether you have mod_rewrite rules or similar available.
For a given URL, such as /action/ktcore.actions.folder.addFolder/, this can be represented as:
- /action.php/ktcore.actions.folder.addFolder/ (no mod_rewrite, PATH_INFO support)
- /action.php?kt_path_info=/ktcore.actions.folder/addFolder/ (no mod_rewrite, no PATH_INFO support)
- /action?kt_path_info=/ktcore.actions.folder/addFolder/ (pretty URL support but no PATH_INFO)
- /action/ktcore.actions.folder.addFolder/ (mod_rewrite, or pretty URL support with PATH_INFO support)
To generate these URLs properly, there are a few helpers:
- KTUtil::addQueryString($url, $qs) adds a given query string to a URL
- # url = "/foo" and qs = "baz=2" leads to /foo?baz=2
- # url = "/foo?bar=1" and qs = "baz=2" leads to /foo?bar=1
del.icio.us
reddit

