Modular Theme with PAGE BUILDER - Clear

Octobercms Multipurpose Theme with Powerful Settings and an easy CRUD Generator - Page Builder system

Back to Modular Theme with PAGE BUILDER - Clear Support

lientruong71436111
lientruong71436111

I have custom html code within the custom block and they are mostly static, however, is it possible to reference a snippet from the code inside there?

Charis
Charis

lientruong71436111 said:

I have custom html code within the custom block and they are mostly static, however, is it possible to reference a snippet from the code inside there?

Hello!
Can you please be more specific on what exactly you want to achieve? You can add Components on every block partials, or you can add them on static layout for better support. You also can add and edit Component variables on custom block.

Francesco
Francesco

I'm able to insert the snippet code of RJ Gallery in one of the textarea of the blocks (for example about) with this plugin https://octobercms.com/plugin/inetis-richeditorsnippets Nothing is rendered in the page but if you inspect the code, you can find this code:

Single gallery <figure data-component="Raviraj\Rjgallery\Components\Gallery" data-inspector-id="inspectorid-161679636767" data-property-auto="false" data-property-caption="true" data-property-controls="true" data-property-counter="true" data-property-desc="true" data-property-esckey="true" data-property-height="70" data-property-idgallery="1" data-property-jqueryinject="yes" data-property-lang="Gallery" data-property-loop="true" data-property-mode="lg-slide" data-property-pause="2000" data-property-preload="1" data-property-resizer="auto" data-property-speed="600" data-property-thumbnail="true" data-property-width="100" data-snippet="galleryId">&nbsp;</figure>

There is a block wit only a text area? Or, is it possible to use snippets in custom code block?

Thanks

freeyland10761
freeyland10761

Hi, @Francesco Did you manage to make it work?

cesy54134
cesy54134

Hello, I need to bump this topic because I have a similar issue. I bought this plugin : https://octobercms.com/plugin/amjadkhan-jobs I have dragged the component of this plugin to the static layout. Then, if I go to CMS - Pages - Add and create a Jobs page, I can paste in {% component 'listjobs' %}, save the page and the listing witll be there. But that's not what I want, because on that octobercms page I cannot add blocks. I want to add this component from the CLEAR theme itself, Pages -> Add ... then firts ad a Pageheader block, then when I choose Custom, I paste {% component 'listjobs' %}, save and it's not getting parsed. What am I doing wrong ? Sorry, novice here, learning ... Thanks

Tenatious
Tenatious

cesy54134 said:

Hello, I need to bump this topic because I have a similar issue. I bought this plugin : https://octobercms.com/plugin/amjadkhan-jobs I have dragged the component of this plugin to the static layout. Then, if I go to CMS - Pages - Add and create a Jobs page, I can paste in {% component 'listjobs' %}, save the page and the listing witll be there. But that's not what I want, because on that octobercms page I cannot add blocks. I want to add this component from the CLEAR theme itself, Pages -> Add ... then firts ad a Pageheader block, then when I choose Custom, I paste {% component 'listjobs' %}, save and it's not getting parsed. What am I doing wrong ? Sorry, novice here, learning ... Thanks

Did you ever figure this out?

1-6 of 6