Joomla Stack Exchange is a question and answer site for Joomla! administrators, users, developers and designers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can someone please explain the process behind tp=1 for the mod positions preview , I found the module output which is called from templates/system/html/module.php function modChrome_outline(...)

and I know that the style is being forced if site is accessed via tp=1 var

what I assume is happening is that when accessed via tp=1 the site is forced to use system template but I am looking for actual process and cant find it.

If here

I change

$attribs['style'] .= ' outline';


$attribs['style'] .= ' customoutline';

and have my customoutline chrome in modules.php I still get only the mods published on that page , not all module positions.

So can anyone please explain or show me where( what file ) the process is located.

Thank you!

share|improve this question

Found it , was missing one more override which was bellow

So to sum down ,

if u wish to make own mods preview

create your preview chrome in templates/your_template/html/modules.php

override module helper class (see this ) by adding

    // my preview
    if ($app->input->getBool('myoutline'))
        $attribs['style'] .= ' myoutline';


and extend this if statement


 || $input->getBool('myoutline')

now you can control the modules positions preview from your template/html/module.php and make it look better than what we have in j default since 1.0

access the preview via


I will extend this one bit more and show you why I did this.

In order for us to show users all available module positions for our template framework

we must publish over 50 module positions which are just plain HTML. In my eyes this is an overload.

With the override in place , I can now remove all those 50+ modules and control the preview

and the content via the chrome function

so I still have same preview like on our old demos

with much less modules.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.