(zettel (meta (back "00001007700000 00001007720000") (backward "00001007700000 00001007720000") (box-number "1") (created "20230729102142") (forward "00001000000000 00001007030200 00001012000000") (modified "20230729120755") (published "20230729120755") (role "manual") (syntax "zmk") (tags "#manual #search #zettelstore") (title "Query: Items Directive")) (rights 4) (encoding "") (content "The items directive works on zettel that act as a \"\"table of contents\"\" for other zettel.\nThe [[initial zettel|00001000000000]] of this manual is one example, the [[general API description|00001012000000]] is another.\nEvery zettel with a certain internal structure can act as the \"\"table of contents\"\" for others.\n\nWhat is a \"\"table of contents\"\"?\nBasically, it is just a list of references to other zettel.\n\nTo retrieve the items of a zettel, the software looks at first level [[list items|00001007030200]].\nIf an item contains a valid reference to a zettel, this reference will be interpreted as an item in the items list, in the \"\"table of contents\"\".\n\nThis applies only to first level list items (ordered or unordered list), but not to deeper levels.\nOnly the first reference to a valid zettel is collected for the table of contents.\nFollowing references to zettel within such an list item are ignored.\n\n\n````\n# curl 'http://127.0.0.1:23123/z?q=00001000000000+ITEMS'\n00001001000000 Introduction to the Zettelstore\n00001002000000 Design goals for the Zettelstore\n00001003000000 Installation of the Zettelstore software\n00001004000000 Configuration of Zettelstore\n00001005000000 Structure of Zettelstore\n00001006000000 Layout of a Zettel\n00001007000000 Zettelmarkup\n00001008000000 Other Markup Languages\n00001010000000 Security\n00001012000000 API\n00001014000000 Web user interface\n00001017000000 Tips and Tricks\n00001018000000 Troubleshooting\n````"))