-
Notifications
You must be signed in to change notification settings - Fork 26
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
~~ODT~~ markup in a Bootstrap3 template hook #260
Comments
Don't you see the export icon if you just enable the ODT config option |
Sure: in the logged-in-user bar on the right. I'm not sure what relevance that has for wanting an ODT export icon on the page itself? For example, so non-logged-in users can do so, too? Just to make it clear: the And the reason I want that is: I like where it goes on the page, it's WAY more visible than the tiny icon in the far-right logged-in bar, and my entire reason for using this is for people who are not logged in (and therefore don't have the bar in the first place). Hard-coding stuff into an included HTML file works, but I prefer the visibility and maintainability of using the markup hooks we are already using. Plus it would allow me to easily control which namespaces have the icon, which would be greatly preferred to having it on each and every page. |
I had a look at this and unfortunately it cannot be implemented as you want in the ODT plugin. The reason is that the |
Thanks for the update. What you say makes sense: I figured it was something along those lines. I just hoped there was some sort of PHP call that could’ve been made that would give you, maybe, the original URL that was requested or such where the information could be gotten from there. I wonder if there would be any advantage to open a ticket with the bootstrap3 plugin to provide that information somehow? |
Well, it could maybe be implemented in collaboration of the two plugins: The bootstrap3 plugin would need to provide a global variable containing the real page name (the main page or root page - however you want to call it). The current page name is stored in the global PHP variable Just an idea. Maybe you can communicate that to the bootstrap3 author and see what he thinks about it. |
I would prefer a variable mentioned This looks like that the following pull request will be helpful in the future: dokuwiki/dokuwiki#3267, it isn't? |
Could be. Would need testing to see if it solves this issue and if it works fine for export renderers (no XHTML renderers). |
Hello!
With a Bootstrap3 template, the simplest way to add the ODT export icon on each page seemed to be to simply add the "
ODT" markup to the the :pageheader document that Bootstrap3 will display on every page. Unfortunately, when you do, it creates a URL that will only export the :pageheader page -- not the actual page that is being displayed!Is there a way to resolve this (without something like embedding raw HTML or PHP)?
In the interim I've used the pageheader.html hook instead, but I prefer where it goes on the page better when using the embedded markup -- and I'll always choose markup I can modify from my browser than HTML in a configuration file! :)
Thank you very much!
The text was updated successfully, but these errors were encountered: