Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Sidebars on content view

  • emperor
  • emperor's Avatar Topic Author
  • Offline
  • Premium Member
More
10 years 11 months ago #137321 by emperor
Sidebars on content view was created by emperor
Hi there,

The template sidebars are hidden if you are viewing any content item. I found out that you have an option for that on index.php which i deleted, but still there are no sidebars.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #137322 by Krikor Boghossian
Replied by Krikor Boghossian on topic Sidebars on content view
Hello John,

You should change this block
<?php if(!($option=='com_k2' && $view=='item') && !($option=='com_content' && $view=='article')): // Do not load the sidebars into item views ?>
						<?php if($this->countModules('newsworth_Right')): ?>
						<aside class="column small-12 medium-4 large-3 sidebar sidebarRight right">
							<jdoc:include type="modules" name="newsworth_Right" style="nu" />
						</aside>
						<?php endif; ?>
						<?php endif; ?>

						<?php if(!($option=='com_k2' && $view=='item') && !($option=='com_content' && $view=='article')): // Do not load the sidebars into item views ?>
						<?php if($this->countModules('newsworth_Left')): ?>
						<aside class="column small-12 medium-12 large-3 sidebar sidebarLeft left">
							<jdoc:include type="modules" name="newsworth_Left" style="nu" />
						</aside>
						<?php endif; ?>
						<?php endif; ?>
to
						<?php if($this->countModules('newsworth_Right')): ?>
						<aside class="column small-12 medium-4 large-3 sidebar sidebarRight right">
							<jdoc:include type="modules" name="newsworth_Right" style="nu" />
						</aside>
						<?php endif; ?>

						<?php if($this->countModules('newsworth_Left')): ?>
						<aside class="column small-12 medium-12 large-3 sidebar sidebarLeft left">
							<jdoc:include type="modules" name="newsworth_Left" style="nu" />
						</aside>
						<?php endif; ?>

Finally in helper.php delete or comment out the following block of code
// Seperate layout check for items
if (($option=='com_k2' && $view=='item') || ($option=='com_content' && $view=='article')){
	$layoutClass = ' large-12';
}

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • emperor
  • emperor's Avatar Topic Author
  • Offline
  • Premium Member
More
10 years 11 months ago #137323 by emperor
Replied by emperor on topic Sidebars on content view
Hi Krikor,

The lines that you are mentioning does not exist on helper.php . Which helper are you referring too?

Thanks,
John

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #137324 by Yiota
Replied by Yiota on topic Sidebars on content view
The first two blocks of code refer to index.php. That is where you need to make the modifications. Only the last one is in helper.php file.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • emperor
  • emperor's Avatar Topic Author
  • Offline
  • Premium Member
More
10 years 11 months ago #137325 by emperor
Replied by emperor on topic Sidebars on content view
Hi Yiota,

I know that, i had already removed by myself the lines on index.php

My problem is that on helper.php there are no lines like the ones kristian mentioned.

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #137326 by Yiota
Replied by Yiota on topic Sidebars on content view
Sorry, remove the code mentioned for helper.php from variations.php instead.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • emperor
  • emperor's Avatar Topic Author
  • Offline
  • Premium Member
More
10 years 11 months ago #137327 by emperor
Replied by emperor on topic Sidebars on content view
Thank you!

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #137328 by Chanelle Lum Min
Replied by Chanelle Lum Min on topic Sidebars on content view
I have been trying to find these files to change - index.php and helper.php that you are referring to in this thread and not having any luck. Could you please provide the exact location. It would be greatly appreciated as I am on a tight deadline to get this site completed.

Please Log in or Create an account to join the conversation.

  • emperor
  • emperor's Avatar Topic Author
  • Offline
  • Premium Member
More
10 years 8 months ago #137329 by emperor
Replied by emperor on topic Sidebars on content view
Read carefully the posts.
Yiota is mentioning that instead of changing helper.php you should change variations.php

They are located under
templates/newsworth/index.php &
templates/newsworth/includes/variations.php

Keep a copy to both before you change them.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum