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

Publish function does nothing? #187

Open
OyvindLGjesdal opened this issue Jun 11, 2019 · 3 comments
Open

Publish function does nothing? #187

OyvindLGjesdal opened this issue Jun 11, 2019 · 3 comments

Comments

@OyvindLGjesdal
Copy link

Hello!

I've installed mermeid 2018.2 and I think the installation is successful, however nothing happens when I try out the publish function.
I have created the public folder.

I've tested the publish.xq script by commenting out let $res := response:redirect-to($return_to cast as xs:anyURI) and adding an additional for loop on $parameters to view its contents, after checking boxes, and it only returns one param as output , 'publishing_action'.

I've also logged on to the demo installation at http://labs.kb.dk/editor/ to verify that it is not only on my local install, authenticated using the test-credentials, and tried to check if the publish works there, but the same issue seems to happen there. Is this a known issue?

@axgeertinger
Copy link
Contributor

Hi!
It's actually kind of a feature, not a bug. See the FAQ: http://labs.kb.dk/editor/manual/faq.html#publishing. Publishing a file correctly copies it to the public folder (I've tested it on the demo right now). That's where MerMEId ends and your custom application is supposed to take over.

@OyvindLGjesdal
Copy link
Author

I was a bit surprised because I also tested in the demo. However I now managed to publish with Internet explorer and Firefox in both the demo and the test-install, but not with Chrome.

@axgeertinger
Copy link
Contributor

OK, I see the problem now. It seems that something in /editor/js/publishing.js doesn't work in Chrome (the relevant input element is not inserted into <div id="publish">). Peculiar, because selecting "Select all files" and then "Publish selected files" actually does work. Only single file selections don't.

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