Not logged in. · Lost password · Register
Forum: General Help and Support Plugins RSS
filelist help
Avatar
nicmic #1
Member for a month · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: filelist help
Hi all, I'd like to know whether it is possible to list files in the current page by using the filelist plugin.

https://www.dokuwiki.org/plugin:filelist

By writing something like this I get a file list with every file in the namespace that contains the page: {{filelist>* &recursive=1 &style=page }}

As I understand, this is expected behaviour. However, there seems to be no general way of refering to the current page as a namespace (i.e. to list all files attached only to the current page, and not to the other pages in the parent namespace of the current page).

I was thinking of using the imgpaste plugin to attach pasted images to the current page. I managed to do this with the following "filename" configuration of that plugin: @ID@:%Y%m%d-%H%M%S
https://www.dokuwiki.org/plugin:imgpaste

I dont't mind specifying the page manually to get what I want: {{filelist>myPageName:* &recursive=1 &style=page }}
But if there is a way to avoid it I'd like to know.

¿Is it possible to refer to the current page with a symbol within the filelist command?
Something that works as "." in linux for the current directory (in contrast to ".." for the parent directory).
Avatar
FosseWay #2
Member since May 2016 · 118 posts · Location: Canada
Group memberships: Members
Show profile · Link to this post
Let's say you have a namespace:
fruit
which contains three pages:
fruit:apple
fruit:banana
fruit:cherry

Maybe I'm not understanding you correctly, but I think you want to list only those files which are attached to the page
fruit:apple

The problem I see with that is that media objects exist within a namespace, rather than being attached to a single page.

Perhaps I should ask: how are you defining "attached to a single page"? Do you mean media items which are displayed on a particular page?
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-06-25, 22:10:47 (UTC +02:00)