This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
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!
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?
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