Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Umask and images folder
· 10 years ago
I'm using a shared hosting provider and am having trouble with the images folder. When I go to clear the cache from the terminal, I can't because the image cache is wholly owned by the web user. I tri
-
Dynamic Select field in Frontend Form
· 10 years ago
I finally solved this by writing a simple Plugin, so build the form "by-hand" and so populate the select boxes direct in the twig template.
-
Dynamic Select field in Frontend Form
· 10 years ago
I have the same problem as timbo in a front-end form, can't populate even from data-options@: '\Grav\Common\Utils::timezones' Also tried from my own plugin, doesn't populate either data-options@: '\
-
Dynamic Select field in Frontend Form
· 10 years ago
The frontend theme class is probably not loaded in the admin (it is in the frontend). Can you put this in a plugin instead?
-
Dynamic Select field in Frontend Form
· 10 years ago
I have Grav 1.1.3 and can't get a select field to dynamically populate from my theme. ---yaml data-options@: '\Grav\Theme\MyGravTheme::getElementSizeOptions' ---php public static function getElementS
-
Dynamic Select field in Frontend Form
· 10 years ago
That's exactly what I have tried, but it does not seem to work in the frontend with the form plugin. I even tried to use that example and added the following to my form frontmatter in the form.md file
-
Dynamic Select field in Frontend Form
· 10 years ago
You can call a static method from the YAML definition of a form even in Grav 1.0. See this example to get the available Timezones in the system/blueprints/system.yaml - https://github.com/getgrav/gr
-
Dynamic Select field in Frontend Form
· 10 years ago
Ok, sounds good! But I'm using version 1.0.10 and a Beta is not an option for this project. Think I'm going to write a for this if there is no other way.
-
Dynamic Select field in Frontend Form
· 10 years ago
What version of Grav are you using? If I recall correctly, Twig variables will be available in FrontMatter in 1.1 (which is in Beta currently).
-
Dynamic Select field in Frontend Form
· 10 years ago
Hey there, I'm trying to fill a select field with dynamic options, like pages from a certain subfolder, but it does not seem to work in frontend forms. form: name: contact fields: - name: N