getgrav / getgrav/grav-plugin-shortcode-ui

ui-tabs in grav modular page

Open
#32 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
CSS
Stars
48
Forks
11
PR merge metrics
No merged PRs in 30d

Description

Could you please example how ui-tabs would be implemented in modular page.
```
{% extends 'partials/base.html.twig' %}

{% block content %}
{{"[ui-tabs position='top-left' active='0' theme='lite']"|shortcodes}}
{% for module in page.collection() %}
{{"[ui-tab title='{{module.title}}']"|shortcodes}}
{{module.content}}
{{"[/ui-tab]"|shortcodes}}
{% endfor %}
{{"[/ui-tabs]"|shortcodes}}
{% endblock %}
```

This is what I tried, but I get error which I don't understand.
_Argument 1 passed to Grav\Plugin\ShortcodeManager::getId() must implement interface Thunder\Shortcode\Shortcode\ShortcodeInterface, null given, called in .../user/plugins/shortcode-ui/shortcodes/TabsShortcode.php on line 34_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.