Keyword

scroll through k2 page module

More
10 years 6 months ago #133772 by chris
scroll through k2 page module was created by chris
Hello all, so we have a little website selling kitchen doors what we would like is the ability to click through them:
www.kwkitchens.co.uk/index.php/component/k2/item/41-tiepolo-light-walnut-pisa if you see this one the k2 item is a door image, i would love it to be posible to scroll them by this page (with a little thumbnail!) is this possible?
thank you, k2 is a great addition to Joomla :)

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 6 months ago #133773 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: scroll through k2 page module
You need to add the Gallery functionality to K2 with this extension: www.joomlaworks.net/support/docs/simple-image-gallery-pro

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

More
10 years 6 months ago #133855 by chris
Replied by chris on topic scroll through k2 page module
its not very clear how i sign up for a subscription - or more precisely where!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 6 months ago #133860 by Krikor Boghossian
Replied by Krikor Boghossian on topic scroll through k2 page module
Follow this link: www.joomlaworks.net/extensions/commercial/simple-image-gallery-pro and scroll down to :
Select a subscription.

There you have two options. The annual subscription and the 6-month one. Choose one and the site will guide you through.

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

More
10 years 6 months ago #133877 by chris
Replied by chris on topic scroll through k2 page module
Hi Krikor, ok this shows a image gallery module on the image of my choosing - thats fine but i want 2 images one to go to the previous kitchen door in the list and the next one to go display and link to the next one - you know how the previous/next pagination works? I want it like that!

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

More
10 years 6 months ago #133878 by chris
Replied by chris on topic scroll through k2 page module
so where it says "more in this category" i want a thumbnail with each of those links!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 6 months ago #133916 by Krikor Boghossian
Replied by Krikor Boghossian on topic scroll through k2 page module
By default only the titles are present.
You need to override your K2 template to add previous/next item images

an example code would be:
<span class="imgNavWrap"><img src="<?php echo $this->item->nextImageSmall; ?>"  alt="<?php echo K2HelperUtilities::cleanHtml($this->item->nextTitle); ?>"/></span>
<span class="imgNavWrap"><img src="<?php echo $this->item->previousImageSmall; ?>" alt="<?php echo K2HelperUtilities::cleanHtml($this->item->previousTitle); ?>" /></span>

More on overrides can be found here:
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

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

More
10 years 6 months ago #133923 by chris
Replied by chris on topic scroll through k2 page module
would i have to do EVERY single one manually or will this code work across the entire system?

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

More
10 years 6 months ago #133924 by chris
Replied by chris on topic scroll through k2 page module
also where do i implement this code?

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

More
10 years 6 months ago #133938 by chris
Replied by chris on topic scroll through k2 page module
Ive added the code to the file in this path:

com_k2/templates/default/item.php

next to the existing previous/next links

but doesnt seem to work....

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

More
10 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
10 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

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

More
10 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
10 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.

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

More
10 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
10 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.

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

More
10 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
10 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.

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

More
10 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
10 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.

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


Powered by Kunena Forum