Keyword

How to set size for Popup lightbox in Link Extra fields?

  • Gorast
  • Gorast's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 2 months ago #169075 by Gorast
How can I define the size of a light box popup engine for Extra fields (link)?
There is also no close button for it.

Tnx,
Gorast

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

More
6 years 2 months ago #169076 by JoomlaWorks
The dimensions of the modal are automatic, you don't need to set anything specifically.

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

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

  • Gorast
  • Gorast's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 2 months ago #169078 by Gorast
But I want :D
Possible?

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

More
6 years 2 months ago #169079 by JoomlaWorks
You can use the trick of pulling the modal extra field separately. How would you directly output individual extra fields in your K2 overrides? Simple. Just do something like this (e.g. in item.php) to get the extra field name:

$this->item->extraFields->EXTRAFIELD_ALIAS_HERE->name

To get the extra field value you would simply do this:

$this->item->extraFields->EXTRAFIELD_ALIAS_HERE->value
OR
$this->item->extraFields->EXTRAFIELD_ALIAS_HERE->rawValue (for date type only)

Simply replace EXTRAFIELD_ALIAS_HERE with the actual alias of the extra field you wish to output.

If you get the value, it means you get the image path which you can then insert in a new <a> tag and apply your own modal popup.

Fotis / 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