Keyword

Extra Field Drop-down Isset

  • Joe Campbell
  • Joe Campbell's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 8 months ago - 8 years 8 months ago #150679 by Joe Campbell
Extra Field Drop-down Isset was created by Joe Campbell
The following standard isset condition does not work on K2 drop-down selection type extra fields:

<?php if(isset($item->extraFields->xFIELDname->value)): ?>

Is there another standard way to use a conditional statement?


Even though I am not a coder, I figured out the following workaround...

I set the "Show null option" Parameter to "Yes" and use the following condition:

<?php if($this->item->extraFields->xFIELDname->value != ''): //If this extra field has no value ?>
Last edit: 8 years 8 months ago by Joe Campbell.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 8 months ago #150700 by Krikor Boghossian
Replied by Krikor Boghossian on topic Extra Field Drop-down Isset
So it is working if you select "Show null option" Parameter to "Yes" ?

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

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

  • Joe Campbell
  • Joe Campbell's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 8 months ago #150728 by Joe Campbell
Replied by Joe Campbell on topic Extra Field Drop-down Isset
Yes, but I am still having an issue with NoNumber Content Templater - www.nonumber.nl/extensions/contenttemplater

I was hoping to use it instead of copying a "template item" when creating new content, as I have a number of extra fields that need to be configure for each content type.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 8 months ago #150737 by Krikor Boghossian
Replied by Krikor Boghossian on topic Extra Field Drop-down Isset
I would love to help you but I would I am not familiar with that extension.

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