Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Move Gallery to top of K2 article

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi,

I know, this is not about a potential bug. But I am just not sure how to do this kind of overwrite(?). I am using Newstream2 together with K2 and sigpro. When I am working with the K2 galleries, they are now shown on the bottom of the page.

I would like to show it either underneath the title or, even better, between the intro text and the main text. I know it is probably some php file. But which is it really and would I do this change directly or would I move a copy of it to some overwrite folder?

Thanks for some hints. - Steffen
  • slosch's Avatar
  • slosch
  • 12 Month basic
  • 81 posts
  • Karma: 0
The administrator has disabled public write access.
Hi

Is loadposition an option?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul,

thanks, but no ;-) I want to change it for all existing articles as well and use the K2 gallery functionality at the same time. So I would like to permanently change the order. I guess this would have to happen in some php file? But where is it??? I am a bit clueless right now :unsure:
  • slosch's Avatar
  • slosch
  • 12 Month basic
  • 81 posts
  • Karma: 0
The administrator has disabled public write access.
HI Stefan,

It depends on the k2 template you are using - you would go to components/com_k2/template/[template name]/item.php

Look for this:
<a name="imageGalleryAnchor" id="itemImageGalleryAnchor"></a>
  <div class="imageGallery zenblock">
	  <h3><$this->item->gallery;>
  </div>

And move it to where you want it to be on the page.
I would recommend creating a custom template for this as any updates will overwrite your change.

Thanks
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Hi Anthony,

tx, this helped me a lot. I took me a while though to understand, which of the styles I would have to alter.

I moved all K2 style under the html folder of the template. I understood this is the right place for overrides? It works at least.

Take care, Steffen
  • slosch's Avatar
  • slosch
  • 12 Month basic
  • 81 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Steffen,

Sounds correct

If in doubt create a backup before updating :)

Good luck with the site

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers