Hello, i have a problem.. i`m using & gantry 4 & Virtuemart 3.0.17.4 & !joomla 3.6.0
Joomla or gantry at First page loads NOT CLEAN STYLE, but i try load clean style....
very unusual that at first when the page first loads generated Layout 'NOT CLEAN STYLE', and the fact that when the page is Reloaded again, the code works,
## i try overwrite modify gantry at /html/layouts/body_mainbody.php
if($menuid !==151 && JFactory::getApplication()->input->get('option') !=='com_customfilters' && JFactory::getApplication()->input->get('option') !=='com_virtuemart')
{ // ####### CLEAN STYLE
<jdoc:include type="component" />
} else { // ###### NOT CLEAN STYLE //
<div class="rt-component-block rt-block"> // - I cant remove it on FIRST PAGE LOAD.
<div id="rt-mainbody"><div class="component-content"><jdoc:include type="component" /></div></div>
</div>
}
At stackoverflow i read : You might want to add a few more checks to make sure that the current component and view (JFactory::getApplication()->input->get('view')) is also not the same as the menu's view ($menu->getActive()->view)
But any solutions not help me, Please help Solve this problem, thanks!!
You can try put his code in /html/com_virtuemart/category/default.php
and to /html/layouts/body_mainbody.php
<? echo $_SERVER['REQUEST_URI']. ' :: <br>'; ?><code><b>########### GRIDLIST --- ##</b><?
$itemId = JFactory::getApplication()->input->getInt('Itemid');
echo "<br>itemId ".$itemId."<br> opt";
if(JRequest::getVar('view') !=='') { echo "1JRequest::getVar('view') - ".JRequest::getVar('view'); }
if(JRequest::getVar('option') !=='') { echo "<br>2JRequest::getVar('option') - ".JRequest::getVar('option'); }
if(JRequest::getCmd('option')!=='') { echo "<br>3JRequest::getCmd('option') - ".JRequest::getCmd('option'); }
if(JRequest::getCmd('view') !==''){ echo "<br>4JRequest::getCmd('view') - ".JRequest::getCmd('view'); }
if(JFactory::getApplication()->input->get('option') !==''){ echo "<br>5JFactory::getApplication()->input->get('option') - ".JFactory::getApplication()->input->get('option'); }
if(JFactory::getApplication()->input->get('view') !=='') { echo "<br>6JFactory::getApplication()->input->get('view') - ".JFactory::getApplication()->input->get('view'); }
?></code>
and can set .htaccess