Keyword

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

  • Gorast
  • Gorast's Avatar Topic Author
  • Offline
  • Senior Member
More
1 week 1 day ago #169075 by Gorast
Gorast created the topic: How to set size for Popup lightbox in Link Extra fields?
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.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 week 1 day ago #169076 by Fotis
Fotis replied the topic: How to set size for Popup lightbox in Link Extra fields?
The dimensions of the modal are automatic, you don't need to set anything specifically.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Gorast
  • Gorast's Avatar Topic Author
  • Offline
  • Senior Member
More
1 week 1 day ago #169078 by Gorast
Gorast replied the topic: How to set size for Popup lightbox in Link Extra fields?
But I want :D
Possible?

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 week 1 day ago #169079 by Fotis
Fotis replied the topic: How to set size for Popup lightbox in Link Extra fields?
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.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

Moderators: william white