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

Expose a function that can be used in templates #8

Open
mrksbnch opened this issue Oct 20, 2016 · 0 comments
Open

Expose a function that can be used in templates #8

mrksbnch opened this issue Oct 20, 2016 · 0 comments

Comments

@mrksbnch
Copy link

mrksbnch commented Oct 20, 2016

As far as I can tell, this plugin currently only adds the srcset and sizes attributes to images that are used in kirbytext. What about the other images in a page, e.g. those that are included in a template?

headerimg:
    label: Image Label
    type: image
    required: true
<img src="<?php echo $page->image($page->headerimg())->url() ?>" alt="...">
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

1 participant