Content not showing in Template

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Cliquer
New Member
New Member
Posts: 1
Joined: Mon Sep 20, 2021 2:19 pm

Content not showing in Template

Post 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
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3483
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Content not showing in Template

Post 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
Post Reply

Return to “CMSMS Core”