I want to show the mainbody position in subpages

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed May 27, 2015 4:35 pm
Reply with quote
Report this post
Hello, I am trying to use the mainbody position for some modules, but there are no way to view it. The modules shows in other positions (header, bottom1, etc) but the mainbody only see in the main page, can you help me please,thx.
User avatar
Fresh Boarder

GK User
Fri May 29, 2015 3:16 pm
Reply with quote
Report this post
Hello,

The mainbody module position is as default available only on the frontpage. If you want to disable this behaviour, please change in the layouts/default.php file the following fragment:

Code: Select all
<?php if(($this->layout->isFrontpage() && !$this->API->modules('mainbody')) || !$this->layout->isFrontpage()) : ?>


to:

Code: Select all
<?php if(!$this->API->modules('mainbody')) : ?>


But please remember - it will override your component output for a specific menu item, so please use this possibility carefully.
User avatar
Administrator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.