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

"Image Compare" does nothing #33

Open
lecee opened this issue Nov 7, 2019 · 2 comments
Open

"Image Compare" does nothing #33

lecee opened this issue Nov 7, 2019 · 2 comments
Labels

Comments

@lecee
Copy link

lecee commented Nov 7, 2019

Hello all,

am trying to use the Image Compare feature. But even with the sample code it won't render on the page. Meaning , it does not show up at all in the source code of the page.

Plugin is enabled, the images have the same size, ...
What am I missing? Any dependencies? Tried to understand the js and php part of the plugin... but I don't. :)

Thanks for any hints,
g

Btw, what is the ?cache part for?

[ui-image-compare]
![Original](original.jpg?cache)
![Modified](modified.jpg?cache)
[/ui-image-compare]
@rhukster
Copy link
Member

rhukster commented Nov 7, 2019

the ?cache just means to cache the image instead of serving it directly.

It works on my test site.. just need to make sure you put this in the .md file in your content.

@lecee
Copy link
Author

lecee commented Nov 12, 2019

thanks @rhukster for testing!
sorry, should have done that before more carefully. turns out, that it works on most parent pages and all of the quark base theme, but not on my customized "item" page type.
now i just have to find out what prevents it. unfortunately with no luck so far. thought grav would at least process the shortcode and show up as html, but it doesnt.

(but overall i guess it's safe to say, that the error is most likely sitting in front of the computer.)

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

No branches or pull requests

2 participants