agc Hello DokuWiki Developers, in my Wiki many code files are uploaded and I would like to create a plugin that has the same function as the "head" command in Linux, simply displaying the first few lines of each file. I could not find a reference to an inbuild function in the documentation, which resolves the media identifiers (the name with the colons ":") to a path, which I could then read in a PHP-Script. I'm imagining something like $path=resolve_identifier(":test.txt"); $handle=fopen($path,"r"); Does a function like this exists? And if not, would simply replacing the colons with slashes and adding data/media in front be a sufficient solution (or are there additional deviations from the file name in the identifier)? Thanks a lot.
turnermm I puzzled over what he meant by "media", but his example ":text.txt" suggests that he simply wants document pages and not media.