grav-plugin-shortcode-ui icon indicating copy to clipboard operation
grav-plugin-shortcode-ui copied to clipboard

Want to use functions in modular pages

Open marck-consulting opened this issue 4 years ago • 5 comments

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?

marck-consulting avatar Oct 21 '20 11:10 marck-consulting

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.

rhukster avatar Oct 21 '20 17:10 rhukster

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

marck-consulting avatar Oct 22 '20 10:10 marck-consulting

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

rhukster avatar Oct 23 '20 20:10 rhukster

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

marck-consulting avatar Oct 23 '20 21:10 marck-consulting

+1

daniel-mannheimer avatar Sep 24 '24 06:09 daniel-mannheimer