Page 1 of 1

Re: Viewing template or module source

Posted: Thu Oct 17, 2013 3:40 pm
by paulbaker
Sounds like the system you are using was upgraded - as you suspected.
Also, due to the upgrading of the Smarty Template Engine, the requirements of Global Content Block (GCB) names have been changed.
Only letters, numbers and an underscore are allowed now:
{global_content name='SomeName'}
{global_content name='some_name'}
{global_content name='somename1'}
If you have other characters in your GCB names, no warning will be given while upgrading. You will notice it when you change and save the GCB. To avoid problems later, check the names after the upgrade process is complete.
from http://docs.cmsmadesimple.org/upgrading/old-versions

Look in Layout -> Templates, view each template to see where your GCBs are called. Rename them without disallowed characters.

Re: Viewing template or module source

Posted: Thu Oct 17, 2013 3:59 pm
by Jo Morg
GShoib wrote:Is there a way of identifying templates/modules that call a particular global content block? And if so, where is the code of templates/modules located for viewing?
paulbaker wrote:Look in Layout -> Templates, view each template to see where your GCBs are called. Rename them without disallowed characters.
Additionally, to have a quick glance at what templates are being used, take a look at the Content->Pages where you can find a list of the pages and the templates currently linked to them. You may have to expand the list to be able to see all content. According to your description, you shouldn't need to look into the modules templates, and most likely pages are only using one or two templates.