Page 1 of 1

Content not showing in Template

Posted: Mon Sep 20, 2021 2:27 pm
by Cliquer
Hi,
I´m a CMS noob and had to upgrade a website from 1.12.2 to 2.2.15. Upgrade worked pretty well, only problem I´m having is that I the content is not showing up on the specific sites.

Code: Select all

{strip}
  {content assign="main_content"} //this is how it is assigned at top of template
{/strip}

<div class="col-sm-12"> // this is how it is later called
   {$main_content}
</div>
Content-Type of the sites is set to content.

I noticed that the template engine changed to a newer version but I don´t know if that is the problem. Am I missing something?

Thanks in advance

Re: Content not showing in Template

Posted: Mon Sep 20, 2021 3:25 pm
by velden
Probably this will help:

Code: Select all

{content assign="main_content"}{$main_content=$main_content scope=global}
More to read: https://cmscanbesimple.org/blog/smarty-scope-examples