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

Allow custom queries for pagelink, image and file buttons #52

Closed
sylvainjule opened this issue Jan 12, 2019 · 1 comment
Closed

Allow custom queries for pagelink, image and file buttons #52

sylvainjule opened this issue Jan 12, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@sylvainjule
Copy link
Collaborator

sylvainjule commented Jan 12, 2019

markdown:
  type: markdown
  query:
    pagelink: site.children
    image: page.images
    file: page.files.filterBy("type", "!=", "image")
@sylvainjule sylvainjule added the enhancement New feature or request label Jan 12, 2019
@sylvainjule sylvainjule self-assigned this Jan 12, 2019
@sylvainjule sylvainjule changed the title Allow custom queries for image and file buttons Allow custom queries for pagelink, image and file buttons Jan 12, 2019
@sylvainjule
Copy link
Collaborator Author

Hmm, would get very messy to insert images / files from other pages inside kirbytags, then we'd have to deal with always keeping the correct path, etc. That was a bad idea.

I added the option to limit the page selector, though.
e1e1f42

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

No branches or pull requests

1 participant