Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to enable and display the new page form #186

Closed
blacklord049 opened this issue Apr 6, 2016 · 9 comments
Closed

Ability to enable and display the new page form #186

blacklord049 opened this issue Apr 6, 2016 · 9 comments

Comments

@blacklord049
Copy link

There is a way to add the Addnewpage (https://www.dokuwiki.org/plugin:addnewpage) plugin to a site template.
<?php echo p_render('xhtml',p_get_instructions('{{NEWPAGE}}'),$info) ?>

Would be nice to include this, with a proper code and maybe a setting to chose its position.

@blacklord049
Copy link
Author

In the meantime I added the code on the main.php page...

echo '<div class="dw-content">';
echo $content;

if (!plugin_isdisabled('addnewpage') && $ACT == 'show')
    echo '<p><br />' . p_render('xhtml',p_get_instructions('{{NEWPAGE>'.getNS(getID()).'}}'),$info) . '</p>' ;          

echo '</div>';  

Obviously you know better the structure of your template so I prefer to let you do the integration ;-)

@giterlizzi
Copy link
Owner

Hi! This plugin is very useful but the problem is the position. I have visited different DokuWiki installations with this plugin installed, and the maintainers of Wiki use this plugin via {{NEWPAGE}} syntax. The solution is to use the template hooks (HTML or DokuWiki page) or sidebars.

At your disposal,
Joseph

@blacklord049
Copy link
Author

Thank you :-) I'll do that

@giterlizzi
Copy link
Owner

Hi @blacklord049 , i have reopened this issue/request because i have a new place for this plugin:

image

@polyzen
Copy link
Contributor

polyzen commented Nov 10, 2016

For some reason it appears to be off:

@giterlizzi
Copy link
Owner

Hi @polyzen ,
i have added missing style. Please checkout develop branch and flush DokuWiki cache.

Sorry 😛

@polyzen
Copy link
Contributor

polyzen commented Nov 12, 2016

Looking good 👍, though I seem to have found an upstream bug.. After disabling & re-enabling the plugin, it doesn't offer the root namespace in the dropdown.

@giterlizzi
Copy link
Owner

Hi @polyzen sorry! To enable root namespace you can enable plugin»addnewpage»addpage_showroot option.

@polyzen
Copy link
Contributor

polyzen commented Nov 25, 2016

Ahh, sorry about that. :p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants