Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

parsing plugin in an K2 extra field

  • mindsmonk
  • mindsmonk's Avatar Topic Author
  • Offline
  • New Member
More
13 years 1 month ago #44661 by mindsmonk
parsing plugin in an K2 extra field was created by mindsmonk
Hi guys,

Ive added the flickr URL in an extra field. In my template the {gallery} and {/gallery} surround the extra fields.

However it doesnt show the image gallery PRO?

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

More
13 years 1 month ago #44662 by Katia
Replied by Katia on topic Re: parsing plugin in an K2 extra field
Did you use an API key for your Flickr gallery?

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

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

  • mindsmonk
  • mindsmonk's Avatar Topic Author
  • Offline
  • New Member
More
13 years 1 month ago #44663 by mindsmonk
Replied by mindsmonk on topic Re: parsing plugin in an K2 extra field
Yes, tried to load your documentations Flick URL though. Works normal if I put it in the K2 item. Just not when I try parsing it via HTML + Extra fields

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

More
13 years 1 month ago #44664 by Katia
Replied by Katia on topic Re: parsing plugin in an K2 extra field
Could you be more specific on "HTML + Extra fields"?

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

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

  • mindsmonk
  • mindsmonk's Avatar Topic Author
  • Offline
  • New Member
More
13 years 1 month ago #44665 by mindsmonk
Replied by mindsmonk on topic Re: parsing plugin in an K2 extra field
Sure. backend ive added an extra field called gallery in k2


Ive added custom files in my template. Now it says in item.php


  <div class="itemExtraFields">
  <h3><?php echo JText::_('K2_ADDITIONAL_INFO'); ?></h3>
 
<?php foreach ($this->item->extra_fields as $key=>$extraField): ?>
<?php if($extraField->value): ?>

{gallery}<?php echo $extraField->value; ?>{/gallery}

<?php endif; ?>
<?php endforeach; ?>

    <div class="clr"></div>
  </div>

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

More
12 years 10 months ago #44666 by Katia
Replied by Katia on topic Re: parsing plugin in an K2 extra field
This is not going to work like this.
You can do it only if you add the gallery tags in a text or text area type extra field in a K2 item backend.

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