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

Cannot load images - Maybe cause craft 3 #1

Open
devonik opened this issue Dec 16, 2019 · 3 comments
Open

Cannot load images - Maybe cause craft 3 #1

devonik opened this issue Dec 16, 2019 · 3 comments

Comments

@devonik
Copy link

devonik commented Dec 16, 2019

Hey,

I wanted to try the plugin with the templates. However, the images are not loaded. My research has shown that the following command does not work. Maybe it was in version 2 of craft.

{{ craft.guide.component('image', { asset: craft.assets.filename('index-dashboard.png').one() }) }}

I load the pictures as follows:

<img src="{{ craft.assets().filename('users-permissions.png').one().getUrl() }}">

Another info:

Remember to set the base URL in the asset volume:

Bildschirmfoto 2019-12-16 um 11 44 00

May it helps anyone 👍

@wbrowar
Copy link
Owner

wbrowar commented Dec 16, 2019

Hi @dragoono, the code above for the image component looks a little different than intended. Here's what it should look like for that particular image:

{{ craft.guide.component('image', { asset: craft.assets.filename('index-dashboard.png').one() }) }}

Did you get that code by dragging it into the editor from the editor’s sidebar?

@devonik
Copy link
Author

devonik commented Dec 16, 2019

Hi, @wbrowar

Yes the code were
{{ craft.guide.component('image', { asset: craft.assets.filename('index-dashboard.png').one() }) }}

Seems it fails by copy paste.

@darylknight
Copy link

This is probably related to wbrowar/craft-guide#26 - components aren't available to Lite licenses

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

3 participants