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.

Paul Massendari Regular

Grav Forum Moderators

@paul · Joined 9 years ago · 143 posts · 0 topics · 53 reputation

Badges

ModSquad Team Member ✏️ First Post ❤️ Well Liked

Recent posts

  • Random page from collection · 9 years ago

    as your collection is an array, you could adapt this example to your need: https://learn.getgrav.org/cookbook/twig-recipes#picking-a-random-item-from-a-translated-array

  • Escaping html in twig · 9 years ago

    try this: {{ page.header.imports.ex_config|json_encode(constant('JSON_PRETTY_PRINT') b-or constant('JSON_UNESCAPED_SLASHES'))|raw }}

  • Insert data to blueprint yaml · 9 years ago

    This part of the doc might help you: https://learn.getgrav.org/forms/blueprints/advanced-features#using-function-calls-data See also: https://learn.getgrav.org/cookbook/admin-recipes#add-a-custom-sele

  • Star Ratings Plugin - Summary Page · 9 years ago

    Never used the stars rating plugin but it looks like it only requires an id, so you just have to loop through all the pages and display their ratings. Exemple: {% for item in pages %} {{ item.title }

  • Blueprints issue? · 9 years ago

    take a look at the multilevel field. You could also indent by writing header.content.items.taxonomy@: type: array label: choose taxonomy and then you write category and notes

  • Get screen/browser width with twig · 9 years ago

    Hello Florian, You can get some information about the browser from twig using this: https://learn.getgrav.org/themes/theme-vars#browser-object You can't get the browser width exactly, but it might be

  • Blueprints issue? · 9 years ago

    It's because you have to store a colon in your yaml file, and it's a special character for yaml. If your value is stored like that: '''@page'': ''/blog''' It will be displayed like that in your templ

  • Blueprints issue? · 9 years ago

    with and without yaml: true?

  • Blueprints issue? · 9 years ago

    can you try: default: '''[email protected]'': ''notes'''

  • Conditional field depending on another radio field selection · 9 years ago

    Conditional field will display a field or not base on a twig condition. This condition is only evaluated on the page load, so if it is a multi-page form (like a poll), it could work, otherwise, you mi