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

export_code not working #25

Open
dswd opened this issue Jul 1, 2013 · 2 comments
Open

export_code not working #25

dswd opened this issue Jul 1, 2013 · 2 comments

Comments

@dswd
Copy link

dswd commented Jul 1, 2013

When using {{blog>}} on a page, the download links for <file> blocks do not work.
The problem seems to be that the download link is generated based on the blog main page instead of the specific page of the blog post. On the main blog page, the action export_code with parameter codeblock=1 fails because that code block is dynamically pulled in.

My main page is DOMAIN/start and it includes: {{blog>}}
My blog post is located at DOMAIN/blog/post and it includes:

<file php test.php>
some php code
</file>

The download URL that is being create on the blog post page is DOMAIN/_export/code/blog/post?codeblock=1, which works.
But the download URL on the main blog page is DOMAIN/_export/code/start?codeblock=1 which returns 404 - Not found.

Is there any way to fix this in the plugin or in the dokuwiki code?

@michitux
Copy link
Member

michitux commented Jul 1, 2013

This needs to be fixed in the include plugin, in fact this convinces me that I should finally implement dokufreaks/plugin-include#110. Thank you for noticing and reporting this problem, I hope I'll find time to fix this during the next weeks or at the hackfest.

@michitux michitux reopened this Jun 19, 2016
@michitux
Copy link
Member

Actually this (probably) only works on the first page, as soon as you click on the pagination links it will break.

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

No branches or pull requests

2 participants