Keyword

K2 Power Tip: Using PHP in Extra Fields

  • Joe Campbell
  • Joe Campbell's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 10 months ago - 8 years 10 months ago #144472 by Joe Campbell
K2 Power Tip: Using PHP in Extra Fields was created by Joe Campbell
If you're anything like me, you're using to leverage its Extra Fields. But the are you using K2's Extra Fields to the fullest (using it to render all images, meta data, etc.) If so, or if you intent to, then you need to know this trick...

Thank's to NoNumber Sourcerer, you can utilize PHP in your extra fields. It's simple, just wrap your PHP code with it's tag, like this...

{source 0}<?php echo '<p>Joomla, K2 & NoNumber Rocks!!!</p>'; ?>{/source}

The uses are limitless, for me, I am using it to generate random content bases on extra fields.

Here's the link to NoNumber Sourcerer
bit.ly/1FPPRf8

Here's my post on how to randomize extra field content
bit.ly/1FPPQYA
Last edit: 8 years 10 months ago by Joe Campbell.

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


Powered by Kunena Forum