Not logged in. · Lost password · Register
Forum: General Help and Support Development RSS
How do I get the pagename of current page in action.php
Avatar
teatall #1
Member since Jun 2018 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: How do I get the pagename of current page in action.php
I need to get the current pagename in actions.php of a plugin. How do I do that?

                array(
                     'type' => 'format',
                     'title' => $this->getLang('citeme'),
                     'icon' => '../../plugins/alertbox/img/ris.svg',
                     'open' => '<file ris citeme_' . getID() . '.ris>\n',
                     'sample' => 'Insert .ris information here',
                     'close' => '\n</file>',
                     'class' => 'btn btn-default',
                ),

In line 5, I would like to get the current pagename as the filename. I tried the above, but it returns 'start' on all pages.

Thank you all for helping!
This post was edited on 2019-11-23, 10:58 by teatall.
Avatar
LarsDW223 #2
Member since Sep 2014 · 448 posts · Location: Paderborn
Group memberships: Members
Show profile · Link to this post
Have a look at https://www.dokuwiki.org/devel:infoarray.
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-12-06, 09:41:22 (UTC +01:00)