What's New
Viewing 13 posts - 1 through 13 (of 13 total)
Viewing 13 posts - 1 through 13 (of 13 total)
You must be logged in to reply to this topic.
Hi,
Please modify the \modules\stblog\views\templates\admin\st_blog\helpers\form\form.tpl file, add the following code in it, see attached screenshot.
{block name="defaultForm" prepend}
{if class_exists('JsComposer') && Module::isInstalled('jscomposer') && Module::isEnabled('jscomposer') && JsComposer::condition()}
{$jscomposer = Module::getInstanceByName('jscomposer')}
{if $jscomposer instanceof JsComposer}
{$jscomposer->renderEditor()}
{/if}
{/if}
{/block}
Best regards.
Hi, I was required to integrate Visual Composer with STBLOG.
I’ve managed to do it by adding the code of the second post of this thread and adding a simple piece of code in modules/stblog/controllers/front/article.php with the following:
if (Module::isInstalled(‘jscomposer’) && (bool) Module::isEnabled(‘jscomposer’))
{
$this->blog->content = JsComposer::do_shortcode( $this->blog->content );
}
in the source code shown in the screenshot attached.
Hope it helps to someone
You must be logged in to reply to this topic.