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.

[Solved] Breadcrumbs

More
10 years 5 months ago - 10 years 5 months ago #137357 by Dotty
[Solved] Breadcrumbs was created by Dotty
Despite the excellent documentation, I'm struggling with the breadcrumbs. How for example do I get them to appear on an item page (K2)?

Focussing on this area further, I notice also that sometimes the category image appears behind the page title (in a nice overlayed way) while others it just sits beneath the title. Where is this effect controlled?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 5 months ago - 10 years 5 months ago #137358 by Krikor Boghossian
Replied by Krikor Boghossian on topic Breadcrumbs
Alongside with the two sidebars the breadcrumbs are also omitted from the item page

To enable them locate this snippet in your template's index.php
<?php if(!($option=='com_k2' && $view=='item')): ?>
	<?php if($this->countModules('newsworth_Breadcrumbs')): ?>
	<div class="column small-12 breadcrumbArea<?php if($heading) echo ' hasPageHeading';?>">
		<jdoc:include type="modules" name="newsworth_Breadcrumbs" style="nu" />
	</div>
	<?php endif; ?>
<?php endif; ?>

and change it to:
<?php if($this->countModules('newsworth_Breadcrumbs')): ?>
<div class="column small-12 breadcrumbArea<?php if($heading) echo ' hasPageHeading';?>">
	<jdoc:include type="modules" name="newsworth_Breadcrumbs" style="nu" />
</div>
<?php endif; ?>

Remember you can modify the index.php anyway you want because it is not included in the update packages.

Finally if you want to change the position of the breadcrumbs for items only use this snippet
<?php if($option=='com_k2' && $view=='item'): ?>
<?php if($this->countModules('newsworth_Breadcrumbs')): ?>
	<div class="column small-12 breadcrumbArea<?php if($heading) echo ' hasPageHeading';?>">
		<jdoc:include type="modules" name="newsworth_Breadcrumbs" style="nu" />
	</div>
<?php endif; ?>
<?php endif; ?>

This position renders only inside items. (It must be placed inside index.php however.)

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

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

More
10 years 5 months ago #137359 by Dotty
Replied by Dotty on topic [Solved] Breadcrumbs
Great Krikor - that's fixed that. I'm slowly getting the hang of this!

Many thanks

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


Powered by Kunena Forum