Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Vadym Member
@b.da · Joined 4 years ago · 90 posts · 0 topics · 26 reputation
Badges
Recent posts
-
Books collection : Flex object front-end : no books found
· 11 months ago
Hi @odewaele, here's a basic example for you, along with a link to the docs. {% set directory = grav.get('flex').directory('books') %} {% set books = directory.collection() %} {% if books.isEmpty() %
-
Modifying the Learn4 Theme
· 12 months ago
@phil, regarding the solution (minimal steps): copy the learn4/templates/macros/macros.html.twig to yourtheme/templates/macros/macros.html.twig remove or comment out line 13 do the same for <b>
-
Modifying the Learn4 Theme
· 12 months ago
Hi @phil, sure it's possible. Have you already managed to install the theme and create an inherited theme?
-
Accesing a variable in a default language
· 1 year ago
@Johanan, do you want to implement a global configuration setting? If so, you can use a theme variable + take a look at theme_var twig function.
-
Theme PinPress: No 'about' on Dutch pages
· 1 year ago
Hi, @TonHaarmans, here is setting you are looking for, check 'pages/sidebar/about/about.md'
-
Validation required for hidden element field not showing on save configuration
· 1 year ago
@pmoreno, well, elements is a conditional field, and its behavior is as intended
-
How to create a custom form field in Admin?
· 1 year ago
@Karmalakas, might be useful, but first you add templates directory only outside admin (line 69), try public static function getSubscribedEvents() { return [ 'onPluginsInit
-
How to create a custom form field in Admin?
· 1 year ago
Not sure what's missing, could you share your plugin's blueprints.yaml, yourplugin.php, and yourfield.html.twig files?
-
🗳️ Vote for for Grav in "2024 CMS Critic Awards"
· 1 year ago
+1 caught the last train 😀
-
How to create a custom form field in Admin?
· 1 year ago
Hi, @Karmalakas did you add templates directory to twig lookup paths? public function onTwigTemplatePaths(): void { $this->grav['twig']->twig_paths[] = __DIR__ . '/templates'; } There are ac