Viewing template or module source

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Viewing template or module source

Post 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.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1968
Joined: Mon Jan 29, 2007 4:47 pm

Re: Viewing template or module source

Post 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.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Post Reply

Return to “Layout and Design (CSS & HTML)”