pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3131 posts · 12 topics · 1012 reputation
Badges
Recent posts
-
[SOLVED] Modular Carousel code is not defined in site
· 3 years ago
@wmcig, Instead of adding "SOLVED" to the title, please use the 'Solution' icon in the lower right corner of the reply that shows the solution, or leads to the solution.
-
Default Frontmatter for Modular Pages
· 3 years ago
@chraebsli, You haven't mentioned it, but may I presume pages are being edited using Admin? If so, add the frontmatter fields to blueprint user/themes/quark/blueprints/modular/hero.yaml and give the f
-
Add flex-object to existing flex-dir if not exists (from plugin php)
· 3 years ago
@assbach, This post seems to be drifting away from the initial question, which will lead to buried questions/answers, which: are hard to find for other users. cannot be marked as being 'solved'. I t
-
Disable cache on mobile phones
· 3 years ago
@sdesergi, When I make changes to a page with cache disabled, the changes are not displayed on mobile devices . From a desktop sometimes it also fails. I cannot reproduce this. On a fresh install o
-
Add flex-object to existing flex-dir if not exists (from plugin php)
· 3 years ago
@assbach, By the way, you're not the first doing this. Have a look at the Comments plugin to get some inspiration. It may give you some suggestions for performance and passing data to Twig. The only
-
Add flex-object to existing flex-dir if not exists (from plugin php)
· 3 years ago
@assbach, When using a yaml/json file, you'll need to load the file, parse it into an array, insert/append/remove item convert array to yaml/json save and override file. Grav has a File class wit
-
Add flex-object to existing flex-dir if not exists (from plugin php)
· 3 years ago
@assbach, I've been trying a few things and I give up... I expected the $key value in FlexDirectory::createObject($data, $key, ...) to be used as the key of the object entry. It doesn't seems to be li
-
Add flex-object to existing flex-dir if not exists (from plugin php)
· 3 years ago
@assbach, I didn't have a look at the implementation of a FlexDirectory::getObject(key) and FlexCollection::filterBy(), but my gut feel says that FlexDirectory::getObject(key) is an index lookup while
-
Add flex-object to existing flex-dir if not exists (from plugin php)
· 3 years ago
@assbach, When creating an object using the FlexDirectory::createObject(data, key, ...), you can pass in a key as second param. This could be a hash of an IP address. Using FlexDirectory::getObject(ke
-
Add flex-object to existing flex-dir if not exists (from plugin php)
· 3 years ago
@assbach, The flex-object plugin provides example 'Contacts' which uses contacts.json See Install Sample Data (Optional). Sample using above contacts.json file: Custom plugin catching form and savin