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

decoding of image url #5

Open
arnie05 opened this issue Mar 8, 2017 · 3 comments
Open

decoding of image url #5

arnie05 opened this issue Mar 8, 2017 · 3 comments

Comments

@arnie05
Copy link

arnie05 commented Mar 8, 2017

Hi,

I'm using the API to get the content for a middleman static site but I don't understand how you decode the dragonfly image url from format /system/images/XXXXXX/filename.jpg?sha=XXXXX in the text area of a page.

Could someone explain me how to do ?

@bricesanchez
Copy link
Member

bricesanchez commented Mar 10, 2017

Hi!

Glad you use this API!
Do you use the middleman extension too: https://github.com/refinerycms-contrib/middleman-refinery ?

I'm currently writing a blog which could partially answer your question.

Basically, i don't decode the image in the text area, i just add the dragonfly config config.dragonfly_url_host = "http://myrefinerysaas.domain.com" to be sure to have an absolute URL in the text area and so be able to display it in a middleman website.

Contentful does a similar way to be able to display a contentful image in a middleman website.

But i'm sure we could do something to does not rely on the CMS.

@arnie05
Copy link
Author

arnie05 commented Mar 10, 2017 via email

@bricesanchez
Copy link
Member

Did you find a solution? If yes, could you copy/paste it here? Thanks!

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