This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
So... here I am fiddling with my own plugin and other plugins, but I can't make them appear on the publicly viewed page.
How do I add them to the page? Do I have to do a snippet code? I've tried {% plugin 'ImgurEmbed' %} but that didn't work.
I find the documentation very spotchy... it highlights one part of the path but doesn't lead you from beginning to end. here you go, this is how you make a plugin...okay, but how do I actually add it to my page so it shows up when I look at it int he template?
If you need anything to display in frontend, Components is the way to go: http://octobercms.com/docs/plugin/components
To render these in a page/partial/layout, you can use the following code: {% component 'alias' %}
Alternatively you can drag and drop them from the left menu into your page. That will also insert the correct twig tags for you.
it called Component, it part of plugin that you build for frontend.
you mat read how to build Component
I already have a component module, thats the entire idea behind it... and I the embed plugin exists out of only components and i'm trying to display an image from imgur.
But when I do {% component 'ImgurEmbed' %} it simply doesn't render.
hence my question...
This is the code I have and what simply wont show on the public page
I found the solution...
My boss didn't want .htm extension but .html extension. So when i altered that it looks for .html everywhere whilst .htm is set as second in the array, but I guess october doesn't graciously degrade.
@michael8985 this thread might be of interest to you. It discusses why htm is used instead of html.
1-6 of 6