Keyword

Extra Fields Lightbox

  • Carlos
  • Carlos's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 8 months ago #124585 by Carlos
Extra Fields Lightbox was created by Carlos
Hello, I have an issue. I have an extra field where i have it set to a link. If i set it to lightbox popup as the Open in value it will have the text floating on the page and follow as you scroll. I would like to have it stay stationary in spot. How can i fix this. I haven't had this problem in the past with older versions of K2. Thanks for any help you can give.

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 7 months ago #124586 by Yiota
Replied by Yiota on topic Re: Extra Fields Lightbox
A link to your page would be helpful.

Thank you.

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

  • Carlos
  • Carlos's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 7 months ago #124587 by Carlos
Replied by Carlos on topic Re: Extra Fields Lightbox
Ah silly me i forgot to add a link:

test.pressmantoy.com/index.php/family-games/0502

Thanks

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 7 months ago #124588 by Yiota
Replied by Yiota on topic Re: Extra Fields Lightbox
It seems that is caused by the .modal class you have set in your .../rt_graffito/css/rt_graffito-custom.css and file and uses a fixed position for elements that have this class.
Just add something like this

div.itemExtraFields ul li span.itemExtraFieldsValue .modal {
position:relative;
display: inline-block;
background: #fff;
left: auto;
margin: 0;
}

in your template's css file

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

  • Carlos
  • Carlos's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 7 months ago #124589 by Carlos
Replied by Carlos on topic Re: Extra Fields Lightbox
Awesome that did the trick , thanks. Now how can i move move those items, I would like it to be next to the photo.

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 7 months ago #124590 by Yiota
Replied by Yiota on topic Re: Extra Fields Lightbox
You will have to move the whole block of code of itemExtraFields right under the itemFullText in your item.php file.

It is strongly recommended to use template overrides of the K2 template in order to not lose any of your modifications when you perform an update of the K2 package.

Read here how the overrides work getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
If you already use K2 template overrides ignore the above step.

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

  • Carlos
  • Carlos's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 7 months ago #124591 by Carlos
Replied by Carlos on topic Re: Extra Fields Lightbox
Hi I have a template override set already. I'm not sure if I'm doing something wrong however, i moved the 'itemsExtraFields' chuck of copy up but I'm not seeing any changes.

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 7 months ago #124592 by Yiota
Replied by Yiota on topic Re: Extra Fields Lightbox
Make sure that you are modifying the correct file. Do you use more than one sub-templates in your overrides?

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

  • Carlos
  • Carlos's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 7 months ago #124593 by Carlos
Replied by Carlos on topic Re: Extra Fields Lightbox
I thought i was doing the right one, i only have one template that i setup

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 7 months ago #124594 by Yiota
Replied by Yiota on topic Re: Extra Fields Lightbox
So in item.php file you located this code
<?php if($this->item->params->get('itemExtraFields') && count($this->item->extra_fields)): ?>
	  <!-- Item extra fields -->
	  <div class="itemExtraFields">
          .......
	  </div>
<?php endif; ?>

and have moved it in the <div class="itemImageBlock"> right below the <div class="itemFulltext">..... </div> right?

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


Powered by Kunena Forum