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

Plugin: minicode not working

Started by Muut Archive 10 years ago · 4 replies · 408 views
10 years ago

Noticed a new plugin named minicode and was anxious to try it out. I'm looking for a method for adding chunks of html into content and sidebars on various pages.

Installed via gpm and followed instructions on repo page.

Output of a simple html file in page content is merely: {{ 'hello.html' | minicode }}

Looks like the plugin is not being recognized. Suggestions?

10 years ago

Thanks. Have opened an issue with the developer. Will report back if there is a satisfactory response.

10 years ago

Did you enable the plugin? Edit user/plugins/minicode/minicode.yaml and make sure that "enabled" is set to true.

YAML
enabled: true
twig_filter: true
enabled_in_admin: true
data_directory: minicodes/
check_html_dom: false
10 years ago

@chellige, thanks for your suggestion. Yes, I had verified that the plugin was enabled. In fact, enabled: true is the default property... but I had checked anyway when the plugin did not function.

In any case, I've since uninstalled the plugin.

I think that to implement little bits and pieces of html (and css?), a much more productive path would be to explore shortcodes.

Shortcodes will most likely be a stretching my (limited) coding chops, but will ultimately be more useful.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1357 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2954 9 years ago
Archive · by Muut Archive, 9 years ago
3 1120 9 years ago