CGSimpleSmarty get_page_content doesnt render Modules

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Sagamir
New Member
New Member
Posts: 4
Joined: Tue Feb 07, 2017 2:33 pm

CGSimpleSmarty get_page_content doesnt render Modules

Post 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?
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

Re: CGSimpleSmarty get_page_content doesnt render Modules

Post 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}
Sagamir
New Member
New Member
Posts: 4
Joined: Tue Feb 07, 2017 2:33 pm

Re: CGSimpleSmarty get_page_content doesnt render Modules

Post by Sagamir »

yes, thanks.

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

Return to “Modules/Add-Ons”