Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.
Access media in plugin
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
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.
I think you are looking for
Is it not rather
for media files ?
I puzzled over what he meant by "media", but his example ":text.txt" suggests that he simply wants document pages and not media.
Yes. I too was surprised by the example. Well, now OP can choose ;-)
Global DokuWiki Links