In order to have a layout according to our choice we create a layout file in the template folder which form the basis for placing different module. Now I have requirement in which the home page or front page as it is referred in Joomla Template there will be a left and right placeholder of equal width i.e 50%, but the left and right for other pages will be 70%, 30%.
The coding in the present template supports 70%, 30% for all the pages including frontpage.
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$this->_basewidth = 30;
$positions = array (
$this->customwidth('inset2', 25); //<== override right1 column width to 25%. Must call before call definePosition. Can call many time to override many columns.
How do i makes changes in the code so that the frontpage will be 50% for left and right position, but will be 70% for left and 30% for right in other pages. if i make changes in the following codes I am able to makes the width 50% for all the pages,not sure what changes to be done in order to accomplish the requirement.
$this->_basewidth = 30; //if i change here from 30 to 50, the width changes to 50 for all pages
I want that frontpage will have 50% width left and right respectively whereas the other pages will have the width of 70%, 30% for left and right respectively.