×

Where tp=1 in Joomla 1.6?

Many young and just starting a web-programmers interested in the question "Where was gone tp = 1 in Joomla 1.6?" or "why tp = 1 does not work in Joomla 1.6?".

joomla ?tp=1

Hello Dear Visitors studio "Web Building"! This material is written for web programmers, in order to acquaint you with the transfer of data (tp = 1) by using GET to Joomla.
Many young and just starting a web-programmers interested in the question "where gone tp = 1 in Joomla 1.6?" or "why tp = 1 does not work in Joomla 1.6?".

For those who do not know what was going on and what is tp = 1, a brief digression - add tp = 1 in the "tail" domain name reveals the location of all modules in a template Joomla.

Example: https://www.joomla.org/?tp=1

You will see the positions of modules on the main page for CMS Joomla. Sometimes not all modules are in use. And so if you do create sites on Joomla you need to know where the lie-ins.
By default, Joomla 1.5, you can add tp = 1 at the end of the URL of the page and see all the positions of the modules. If you wish to disable this feature, you must comment out (using a single-or multi-line comment - / / and / * * /, respectively) piece of code in a file helper.php, which is: [site name]/libraries/joomla/application/module/

if (count ($ result) == 0) {
         if (JRequest:: getBool ('tp')) {
                 $ Result [0] = JModuleHelper:: getModule ('mod_'. $ Position);
               $ Result [0] -> title = $ position;
               $ Result [0] -> content = $ position;
               $ Result [0] -> position = $ position;
         }
}
and
if (JRequest:: getBool ('tp')) {
         $ Attribs ['style'] .= 'outline';
}

In Joomla 1.6, it was decided that? tp = 1 will be turned off by default. Instead, its presence can be configured in the template parameter.

How to enable tp = 1 in Joomla 1.6? It's very simple:

The template parameter (expansion - Template Manager - parameters in the upper right corner) under the Template tab check the box "on" for the module positions preview, and then to use tp = 1 resumes.

Thank you for reading this material!
Studio "Web Building".

Original material

01Office in Kiev
Kiev, 02068
st. Akhmatova 9/18
02Brovary office
Brovary, 07405
st. Chornovola 2-A
03Work
Mon-Fri 9: 00-18: 00
Sat. 11-00 -16: 00