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!