Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If the "general_information" flag is turned on, CONTENIDO will output some informations about the viewed webpage as HTML comments at the beginning of the page. They look similar to this:

Code Block
languagexml
linenumberstrue
<!-- 

Layout: start_page (2)
Template: start_page (3)
Language: 1 (deutsch)
Category: 1 (Hauptnavigation)
Article: Start (catart = 84, artlang = 117, art = 77)

--> 

...

The "container_display" flag enables the output of markers at the beginning and at the end of containers.

Code Block
languagexml
firstlinelinenumbers57true
<!-- START CONTAINER navigation_top (212) -->
<ul>
	<li>
    	<a class="" href="front_content.php?idcat=40&lang=1" title="Kontakt">Kontakt</a>
    </li>
    <li>
    	<a class="" href="front_content.php?idcat=47&lang=1" title="Sitemap">Sitemap</a>
    </li>
    <li>
    	<a class="" href="front_content.php?idcat=41&lang=1" title="Login">Login</a>
    </li>
</ul>
<!-- END CONTAINER navigation_top (212) -->

...

This flag enables markers at the beginning and at the end of module output:

Code Block
languagexml
linenumberstrue
<!-- START MODULE layout_logo (33) -->
<a href="http://localhost/contenido/cms/" title="CONTENIDO">
    <img src="images/misc/logo.png" width="279" height="41" alt="CONTENIDO" id="logo" />
</a>
<!-- END MODULE layout_logo (33) -->

...

This flag can only be enabled if "module_display" is enabled, too. If enabled, CONTENIDO will time how long one module takes to generate its output. This is extremely helpful to find modules that slow down the website:

Code Block
languagexml
linenumberstrue
<!-- START MODULE layout_logo (33) -->
<a href="http://localhost/contenido/cms/" title="CONTENIDO">
    <img src="images/misc/logo.png" width="279" height="41" alt="CONTENIDO" id="logo" />
</a>
<!-- END MODULE layout_logo (33) AFTER 0.0012640953063965 -->

...

Code Block
languagexml
titleFor Smarty templates
linenumberstrue
<!-- SMARTY TEMPLATE get.tpl -->
Code Block
languagexml
titleFor cTemplates
linenumberstrue
<!-- CTEMPLATE get.html --> 

...

The last variable in the config.php is used to make CONTENIDO ignore its code cache. This is useful if you want to edit your modules outside of CONTENIDO and want to get immediate results without having to go into the backend and clear the cache yourself.