ulsdevteam / inlineHtmlGalley

Extend the PKP OJS htmlArticleGalley plugin to support inline display of the HTML Galley
GNU General Public License v2.0
5 stars 5 forks source link

How to use this plugin? #9

Open ranaasif opened 1 year ago

ranaasif commented 1 year ago

Hi, I have installed this plugin and enabled it and in my article, I added a galley item as an attached screenshot, But nothing appears on the article details page, I was expective it will show the HTML galley data on the article details page. Can you please explain with screenshots how to use this plugin? zaratushtra-the-my-Test-Article-European-Journal-of-Medical-and-Health-Sciences

ctgraham commented 1 year ago

The approach you describe sounds correct:

What do you currently see when you view the article?

Are you able to verify the detected mime type of the galley you uploaded? I think you would need SQL / database access to find it. I wonder if your file is being detected as "application/xhtml+xml" instead of "text/html".

ranaasif commented 1 year ago

Update:

It worked now, But I need to know if we add our own CSS as a dependent file with galley, will it work? Right now it is not working.

ctgraham commented 1 year ago

Take special note of the Configuration section:

Once enabled, the default view of an HTML Galley will extract the HTML body from the Galley and will place it inline in the Galley view. You will need to replicate any CSS or Javascript directives used in the head of the Galley in your website configuration. (Hint: see the Custom Headers plugin.)

https://github.com/ulsdevteam/inlineHtmlGalley#configuration