Hi everyone,
I am trying to run php function for pagination but I can't achieve to embed php code to dokuwiki page. Is there any one who advice me about issue.
Please note that, plugins like "phpwikify" or "function" don't run (or I can't success)
My function is here:
function PagePagination($PageCount)
{
$PageName= substr(basename ( $_SERVER['PHP_SELF'] ) , 0, (strlen(basename ( $_SERVER['PHP_SELF'] ) )-8));
for ($x = 1; $x <= $PageCount; $x++)
{
if(($x % 26) == 0)
{echo(sprintf('<a href="%s_s%02d.php">%02d<br></a>', $PageName, $x, $x));}
else
{echo(sprintf('<a href="%s_s%02d.php">%02d</a> ', $PageName, $x, $x));}
}
}
The function supply pagination link based on page name... And I have to embed this to my every dokuwiki page.
I am looking your kind reply, thanks in advance