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

Enhancement: Add a "resource" parameter to allow retrieving a crop from a child resource. #10

Open
muzzwood opened this issue Oct 5, 2020 · 0 comments

Comments

@muzzwood
Copy link

muzzwood commented Oct 5, 2020

This would be useful for a listing page to display an image from the child resource it links to.

For example in a pdoResources tpl, you could do something like:

<a href="[[~[[+id]]]]">
    <img src="[[!ImageCropper? &resource=`[[+id]]` &image=`[[*crop_img_tpl]]` &field=`preview`]]">
</a>
@muzzwood muzzwood changed the title Enhancement: Add a &resource parameter to allow retrieving a crop from a child resource. Enhancement: Add a "resource" parameter to allow retrieving a crop from a child resource. Oct 5, 2020
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