Page 1 of 1

CGSimpleSmarty get_page_content doesnt render Modules

Posted: Fri Mar 31, 2017 11:45 am
by Sagamir
Hey,
I'm doing a OnePager right now with CMSms 2.1.6 and want to have the different sections as separate content pages.

Fortunately with CGSimpleSmarty I can get the content with:

Code: Select all

{foreach from=$children item='child'}
      {if $child.show_in_menu}
            <section id="{$child.alias}">
                  <div class="container">
                        {cgsimple::get_page_content($child.alias,'','foo')}{eval var=$foo}
                  </div>
            </section>
      {/if}
   {/foreach}
But when I want to have a form from Formbuilder for example it shows me the smarty code on the page:

Code: Select all

Sektion 1
{FormBuilder form='kontakt'}

Is there a way to render that?
If not, is there a different way to show multiple page contents on one page + the modules / smarty code?

Re: CGSimpleSmarty get_page_content doesnt render Modules

Posted: Fri Mar 31, 2017 7:48 pm
by rotezecke
i think the third argument (for assign) has been discontinued.

Code: Select all

{$foo=cgsimple::get_page_content($child.alias,'')}{eval var=$foo}

Re: CGSimpleSmarty get_page_content doesnt render Modules

Posted: Mon Apr 03, 2017 6:20 am
by Sagamir
yes, thanks.

If I had looked at the help page more closely I could've saved a couple of hours of frustration. ::)