This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi! This is my first experience with October CMS and I have to say - finally (almost :D) a CMS that suits my needs <3
I'm trying to achieve the following. Since when editing a page in the "Page" section the tabs with the placeholder titles are shown, I want my customer to be able to edit all three columns of the page in one editor - using the tabs.
What I tried doing was creating a partial with some HTML-Code and then tried to render it using {% put "xxx" %} then my {% partial "name"%} and {% endput %}.
Everything worked except going to the Pages Tab/Plug-In and trying to access the page with the above script in it.
Error: "Attribute "data" does not exist for Node "Twig_Node"." on line 146 of /var/www/html/october/vendor/twig/twig/lib/Twig/Node.php
So am I getting this all wrong?
tl;dr The goal is to have 3 tabs in the Pages tab of Static Pages where my customer can enter text via the RTE. Rendering a partial via {% put %} and {% endput %} gives an error when trying to edit the page in the Page tab of Static Pages. Is it possible to put a placeholder to a partial and create a tab in the RTE so my customer can just edit the text/values?
Hope someone can help
Cheers, Paul
Last updated
We just had a similar problem and found a solution in changing the getAttribute function in Vendor/twig/lib/twig/node.php. If data is empty at this point it needs to return an empty string
if (!array_key_exists($name, $this->attributes)) { // start: patch switch ($name) { case 'data': return ''; } // end: patch throw new LogicException( sprintf('Attribute "%s" does not exist for Node "%s". Given attributes: ' . var_export($this->attributes, true) , $name, get_class($this)) ); }
best, jan
1-2 of 2