This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Banditman74
Banditman74

Hello! Created my plugin through Builder. The plugin has a Code editor (twig). Through this field I enter html markup and through partial I try to insert the form. I display this component in the for loop on the cms page. html renders correctly, but the form is just {% partial "form"%}. Please tell me how to get it right!

ims_pulse
ims_pulse

Please share your code

Banditman74
Banditman74

faraichaka59873 said:

Please share your code

Excuse me, can you show me the code for what exactly? Calling an add-on on a partial or code input of content in an editor, or on a shared component created with a builder?

Sam Georges
Sam Georges

Hello,

Rendering Twig inside Twig is not possible at the moment. We've actually decided not to allow this for security reasons (it may be tempting to pass user input through the Twig engine). However, you can do this in PHP using the Twig::parse($contents, $vars = []) function.

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.