Your article heading
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sodales urna non odio egestas tempor. Nunc vel vehicula ante. Etiam bibendum iaculis libero, eget molestie nisl pharetra in. In semper consequat est, eu porta velit mollis nec. Curabitur posuere enim eget turpis feugiat tempor. Etiam ullamcorper lorem dapibus velit suscipit ultrices. Proin in est sed erat facilisis pharetra. Pellentesque auctor neque quis nisl lacinia id rutrum lacus venenatis.
A smaller heading
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sodales urna non odio egestas tempor. Nunc vel vehicula ante. Etiam bibendum iaculis libero, eget molestie nisl pharetra in. In semper consequat est, eu porta velit mollis nec. Curabitur posuere enim eget turpis feugiat tempor. Etiam ullamcorper lorem dapibus velit suscipit ultrices. Proin in est sed erat facilisis pharetra. Pellentesque auctor neque quis nisl lacinia id rutrum lacus venenatis.
A smaller heading
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sodales urna non odio egestas tempor. Nunc vel vehicula ante. Etiam bibendum iaculis libero, eget molestie nisl pharetra in. In semper consequat est, eu porta velit mollis nec. Curabitur posuere enim eget turpis feugiat tempor. Etiam ullamcorper lorem dapibus velit suscipit ultrices. Proin in est sed erat facilisis pharetra. Pellentesque auctor neque quis nisl lacinia id rutrum lacus venenatis.
Comments
When you import a static page, it tries to translate the PHP code into Dwoo templating syntax. However, if you have a lot of PHP in your template, then it can cause some problems. In your case, it looks like some comments were translated to Dwoo comments and possibly some other stuff. I would recommend either wrapping your areas of the page you don't javascript with a {literal}.... {/literal} templating tags or putting your javascript into separate files to avoid Dwoo parsing errors.
Lastly, to avoid having to use complicated Dwoo templating syntax instead of raw php, I'd recommend moving any php logic you can into your layouts or a static block file. If it's a block, then you can import it by calling {fuel_block('myblock')}
Can you explain the code tag syntax for this forum?
http://wiki.dwoo.org/index.php/Main_Page
http://www.getfuelcms.com/user_guide/parsing
http://www.getfuelcms.com/user_guide/parsing/parsing_examples
Eg:
<script> var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']]; (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js'; s.parentNode.insertBefore(g,s)}(document,'script')); </script>
Wrapping in {literal} works as mentioned or just a space between ' { var' gets it done too.
.... (function(d,t){ var g ....
I'm really happy I found this post.