Contact Us template html and extra sidebar

September 2015 Joomla Template
GK User
Mon Jan 18, 2016 1:59 am
I am looking at using the Technews template so been experimenting.
I find that if I have a sidebar published with the single contact page, I get a second sidebar inside the contact details main content.
I looked in /templates/gk_technews/html/com_contact/contact/default.php and sure enough at the bottom of the file is some code to display the sidebar if published, removing this gets rid of my problem, but why is it there? Am I missing some trick with this template?
This is the code I took out:
<?php
$document = JFactory::getDocument();
$renderer = $document->loadRenderer('modules');

if($document->countModules('sidebar')) {
echo '<aside id="gkSidebar">';
echo '<div>';
echo $renderer->render('sidebar', array('style' => 'gk_style'), null);
echo '</div>';
echo '</aside>';
}
?>
User avatar
Junior Boarder

teitbite
Thu Jan 21, 2016 5:55 pm
Hi

You're not missing anything. Sidebar was moved from inside of contact layout to above layout and programmers must have left this unwanted one still in code. Thank You for reporting that.
User avatar
Moderator


cron