hughbris Veteran
Regular
Grav Forum Moderators
@hughbris · Joined 9 years ago · 579 posts · 13 topics · 127 reputation
Badges
Recent posts
-
Create new folder when submitting form
· 3 years ago
@pamtbaau: As far as I know, Twig is only interpreted in the ‘process’ section of the form and not in the ‘field’ section You're right. I finally tested it. I got ahead of myself, wrote that, went to
-
Create new folder when submitting form
· 3 years ago
First, I would use user-data://report-problem/.. as the first part of the destination's value. It's more portable that way. How do you want to derive the name of the subfolder? Should it be based on a
-
Access to collection elements using a numerical index
· 3 years ago
@Karmalakas: I believe it’s not. It’s just a count I assume. I know you have numerical slugs (confusing!) but I think you're right anyway, the formatting is misleading.
-
Access to collection elements using a numerical index
· 3 years ago
Wouldn't Twig's slice filter work on the original page collection? Like collection1|slice(n,1)?
-
Access to collection elements using a numerical index
· 3 years ago
@q3d: array:23 [ This looks like a numerically indexed array to me that you could use [n] on.
-
Keep getting an error when trying to save a file
· 3 years ago
@pamtbaau: @hughbris, I wonder if this has ever worked… I just assumed it must have worked. The plugins:// stream did seem slightly surprising though. (Sorry I don't always have time to set up tests.
-
Keep getting an error when trying to save a file
· 3 years ago
It looks like you are following the example in the docs closely. The first clue I notice is in the error message: "ReadOnlyStream". What are the file permissions on the folder where the plugin sits? A
-
Hide navigation from Form template
· 3 years ago
Assuming you are using the form plugin's default template, I would copy that into your inherited theme's templates directory. This inherits from partials/base.html.twig. Then simply override the heade
-
How to add a table that a client can easily edit
· 3 years ago
@pamtbaau's suggestion is best if you know your page type (template) only needs to render one specific table. Sounds like this is the case. I've done this for a simple pricing table. If you want your
-
Event scheduling system
· 3 years ago
@pamtbaau: What is the calendar? Sounds like a language difficulty, meaning "a calendar"(??). But this interpretation also begs for more clarification.