Keyword

scroll through k2 page module

More
9 years 5 months ago #133982 by chris
Replied by chris on topic scroll through k2 page module
sorry to bump but any help on this?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 5 months ago #134007 by Krikor Boghossian
Replied by Krikor Boghossian on topic scroll through k2 page module
You need to enable item navigation from your category's settings if you haven't already.

Then you need to check the post I sent you to see if you followed the correct path and edited the correct files.

Further info on templates and overrides can be found here:
nuevvo.com/blog/item/84-k2-inheritance-sub-templating

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

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

More
9 years 5 months ago #134058 by chris
Replied by chris on topic scroll through k2 page module

Krikor wrote:
Then you need to check the post I sent you to see if you followed the correct path and edited the correct files.


Hi Krikor, you gave me the code but i dont know while file to place it in??

i believe the pagination is on "show" in category options.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 5 months ago #134085 by Krikor Boghossian
Replied by Krikor Boghossian on topic scroll through k2 page module
It's the item.php file.
The where I cannot tell you exactly, since I do not know your template.

This is the default item navigation which you need to extend.
<?php if($this->item->params->get('itemNavigation') && !JRequest::getCmd('print') && (isset($this->item->nextLink) || isset($this->item->previousLink))): ?>
  <!-- Item navigation -->
  <div class="itemNavigation">
  	<span class="itemNavigationTitle"><?php echo JText::_('K2_MORE_IN_THIS_CATEGORY'); ?></span>

		<?php if(isset($this->item->previousLink)): ?>
		<a class="itemPrevious" href="<?php echo $this->item->previousLink; ?>">
			&laquo; <?php echo $this->item->previousTitle; ?>
		</a>
		<?php endif; ?>

		<?php if(isset($this->item->nextLink)): ?>
		<a class="itemNext" href="<?php echo $this->item->nextLink; ?>">
			<?php echo $this->item->nextTitle; ?> &raquo;
		</a>
		<?php endif; ?>

  </div>
  <?php endif; ?>

You need to change the previous/next links to have them include images as well.
The snippet I sent you does exactly that.

PS. You must use K2's latest version.

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

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

More
9 years 5 months ago #134091 by chris
Replied by chris on topic scroll through k2 page module
Hi Krikor, ive updated to latest k2 and ive input your code - d/l here - www.kwkitchens.co.uk/item.php.zip
But nothing is happening!
www.kwkitchens.co.uk/index.php/component/k2/item/56-steinberg-beech-tuscany

Chris

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 5 months ago #134100 by Krikor Boghossian
Replied by Krikor Boghossian on topic scroll through k2 page module
This is not inherited template.
In the file you edited the navigation is on the bottom while on the link is on the top.

Make sure you followed the directions in the posts I sent you and you have edited the correct template.

If you did it and nothing changed then consult your template developer in case they have changed the default workflow of overrides.

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

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

More
9 years 5 months ago #134120 by chris
Replied by chris on topic scroll through k2 page module
inherited template? do you mean my jooma template?
The file im using is from the default folder:

/components/com_k2/templates/default/item.php

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 5 months ago #134133 by Krikor Boghossian
Replied by Krikor Boghossian on topic scroll through k2 page module
I have sent you multiple links that explain the overriding process. Please read them.

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

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

More
9 years 5 months ago #134165 by chris
Replied by chris on topic scroll through k2 page module
Hi Krikor, i followed your instructions i now have 2 template groups setup in /templates/kwkitchens/html/com_k2 "default" and "item"
however when i open my K2 category in the backend it only gives me the choice to -use default- on the template.

C

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 5 months ago #134177 by Krikor Boghossian
Replied by Krikor Boghossian on topic scroll through k2 page module
This is not what the tutorials say.
You need to override the K2 template in your Joomla! template.
Please take a minute and follow the tutorials.

nuevvo.com/blog/item/84-k2-inheritance-sub-templating

If you only want to change all the items, you only need to edit the default template.

Please read the tutorial and follow the example.

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

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


Powered by Kunena Forum