Hello,
I am working on a project which requires me to use the blog plugin, but I noticed there isn't a way for me to add a shortcode (change the editor to add codes) in the blog content area.
Is there a way I could work around this?
i am also using the custom fields plugin to insert the shortcode.
https://octobercms.com/plugin/pkurg-customfields
@nycparking October doesn't have "shortcodes", so I have no idea what you're talking about.
I'm actually working on a shortcode plugin right now. I'll ping this issue when it's available 馃憤
Blog Shortcodes demo |
--- |
|
@drmzio is that going to be matching shortcodes to components?
@LukeTowers Not sure I quite understand, but it will pull from your theme's partials
@drmzio I mean will it allow you to pull in a component? Say you have a forms component, would you be able to do [forms form=contact]?
@LukeTowers Haven't really thought about using components yet. All it does is pull a custom partial from your theme and renders it on the blog post, then saves the rendered partial into the blog content_html column.
It's still a very early work in progress, but here are the steps:
[youtube-embed])partials/shortcodes theme directory (e.g. partials/shortcodes/youtube-embed.htm)[youtube-embed] would render the youtube embed code from the partial)content_htmlYou can pass arguments like video="xxx" or name="John" to reuse a shortcode in many ways. See https://github.com/thunderer/Shortcode for more on what can be done with shortcodes.
@drmzio This is great, this is what I actually needed a few days ago, but I went ahead and found a developer to get it done for me.
But I think a lot of people would find this useful.
Most helpful comment
I'm actually working on a shortcode plugin right now. I'll ping this issue when it's available 馃憤
Blog Shortcodes demo |
|
--- |