getgrav / grav-plugin-shortcode-ui

Grav Shortcode UI Plugin
https://getgrav.org
MIT License
47 stars 11 forks source link

Want to use functions in modular pages #37

Open marck-consulting opened 4 years ago

marck-consulting commented 4 years ago

If I enter new content (over the admin panel) stuff from the shortcode-ui won't get rendered at all. Anything I need to focus on?

rhukster commented 4 years ago

Are you using the standard editor? What does the contents of your .md file look like? Do the shortcodes look as they should?

It's sort of hard to know what the issue is unless you give an example of the shortcode you have entered, as it could be anything from a typo, to not loading css/js, to invalid format, etc.

marck-consulting commented 4 years ago

Yes I'm using the standard editor. Shortcode itself is looking fine:

---
title: 'Status'
background_image: ''
button_label: ''
button_url: ''
right_image: ''
right_image_alt: ''
link_label: ''
link_url: ''
content:
    items: '@self.modular'
---

!! [size=20]**Lorem Ipsum**[/size]

### Topic
[ui-accordion independent=true open=none]
[ui-accordion-item title="Title1"]
Content1
[/ui-accordion-item]
[ui-accordion-item title="Title2"]
Content2
[/ui-accordion-item]
[ui-accordion-item title="Title3"]
Content3
[/ui-accordion-item]
[ui-accordion-item title="Title4"]
Content4
[/ui-accordion-item]
[ui-accordion-item title="Title5"]
Content5
[/ui-accordion-item]
[ui-accordion-item title="Title6"]
Content6
[/ui-accordion-item]
[ui-accordion-item title="Title7"]
Content7
[/ui-accordion-item]
[ui-accordion-item title="Title8"]
Content8
[/ui-accordion-item]
[ui-accordion-item title="Title9"]
Content9
[/ui-accordion-item]
[/ui-accordion]

But rendered it looks like this (the plugin and there the css won't get loaded at all I guess):

Bildschirmfoto 2020-10-22 um 12 54 18
rhukster commented 4 years ago

Ok that should work... i'll take a look at this shortly

marck-consulting commented 4 years ago

If you need any information or live testing capabilities, let me know. Would be happy to help out as far as possible.

daniel-mannheimer commented 1 month ago

+1