Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

p Member

@pikim · Joined 3 years ago · 33 posts · 8 topics · 4 reputation

Badges

✏️ First Post 💬 Conversation Starter

Recent posts

  • Twig: How to find out if plugin is installed? · 3 years ago

    @pamtbaau: By the way, which problem do you wish to solve? I want to contribute to a theme and added another plugin as dependency. The initial author wanted to make sure that everything also works wi

  • Twig: How to find out if plugin is installed? · 3 years ago

    Is it possible to find out (inside a twig script) if a specific plugin is currently installed? Checking {% if config.plugins.name.enabled is defined %} only works if the plugin has never been installe

  • Paginate flex collection · 3 years ago

    @pamtbaau Maybe it is oldschool, but that's ok when it works. I think I'll go with the current version as It's ok for me for now.

  • Paginate flex collection · 3 years ago

    @pamtbaau Thanks. I'll take a look at the pagination plugin. Do you know how I can add flex layout files to plugins? I tried to copy them to user/plugins/guestbook/templates/flex/guestbook/collection/

  • Paginate flex collection · 3 years ago

    I have updated the guestbook plugin to a recent plugin skeleton using flex-objects, see https://github.com/pikim/grav-plugin-guestbook. Now I'd like to be able to paginate the stored messages in twig

  • Get and use plugin config inside forms/data.txt.twig? · 3 years ago

    @pamtbaau Thanks! That solved the issue. I'm using {% set feature_enabled = context.config.plugins.name.feature %} inside the macro now.

  • Get and use plugin config inside forms/data.txt.twig? · 3 years ago

    @pamtbaau Regardless of whether the boolean config.plugins.name.feature is true or false, feature_enabled is always null.

  • Get and use plugin config inside forms/data.txt.twig? · 3 years ago

    @pamtbaau E.g. {% set feature_enabled = config.plugins.name.feature %} in the first line of the twig and then use feature_enabled inside the script.

  • Get and use plugin config inside forms/data.txt.twig? · 3 years ago

    When I have a process like process: - save: filename: feedback.txt body: "{% include 'forms/data.txt.twig' %}" operation: add in a form: is it possible to retrieve and use

  • Flex Objects and directory · 3 years ago

    Is it possible to use flex objects with variable directories? Usually the directory has to be specified in the flex-blueprint under storage: class: 'Grav\Framework\Flex\Storage\SimpleStorag