Manually loading freeform resources - could we have a function to generate an array of JS and CSS URLs ? #2087
croxton
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is your idea?
Currently there are a couple handy functions we can use to manually output
<script>
s and stylesheet<link>
s used by a particular form. These are great but it would be even better if we could manipulate the lists of URLs these generate as arrays directly in the template.This is my current workaround for a page loaded via ajax where
<script>
parsing is deliberately disabled and we want to pass a list of URLs to a custom JS and CSS loader:It would be great to be able to do something like this:
(optional second param to limit to resource type, if not set it outputs all resources)
Freeform Version
5.x
Craft Version
5.x
Beta Was this translation helpful? Give feedback.
All reactions