Weekly Freebie #3: Grab 3 Premium Joomla Templates For FREE
0
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum

We are here to serve :)

Our support team is currently online to solve your issues.

Our support team is currently offline

Our support heroes might not be around this hour. Please expect some delays.

Our support is available from

Monday - Friday 8am - 5:30pm GMT+7

Your time: 00:00:00
Our time: 00:00:00

Welcome, Guest
  • Page:
  • 1

TOPIC: Extra Fields

Extra Fields 4 years ago #29091

Hello friends I am working with the Grid template and want to show the extra fields in articles and even though I already reviewed everywhere settings and are active the Casila to show it, do not appear.
If anyone knows thank you.
www.sectorofertas.com
The topic has been locked.

Re: Extra Fields 4 years ago #29112

  • thuyltt
  • OFFLINE
  • Administrator
  • Posts: 1096
  • Karma: 10
Dear barone,
We customized K2 item layout and remove extra field, if you want to use it, please add this code in file:
templates\sj_grid\html\com_k2\templates\grid\item.php
templates\sj_grid\html\com_k2\templates\list\item.php
templates\sj_grid\html\com_k2\templates\default\item.php


<?php if($this->item->params->get('itemExtraFields') && count($this->item->extra_fields)): ?>
	  <!-- Item extra fields -->
	  <div class="itemExtraFields">
	  	<h3><?php echo JText::_('K2_ADDITIONAL_INFO'); ?></h3>
	  	<ul>
			<?php foreach ($this->item->extra_fields as $key=>$extraField): ?>
			<?php if($extraField->value != ''): ?>
			<li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">
				<?php if($extraField->type == 'header'): ?>
				<h4 class="itemExtraFieldsHeader"><?php echo $extraField->name; ?></h4>
				<?php else: ?>
				<span class="itemExtraFieldsLabel"><?php echo $extraField->name; ?>:</span>
				<span class="itemExtraFieldsValue"><?php echo $extraField->value; ?></span>
				<?php endif; ?>
			</li>
			<?php endif; ?>
			<?php endforeach; ?>
			</ul>
	    <div class="clr"></div>
	  </div>
	  <?php endif; ?>


Thanks.
The topic has been locked.

Re: Extra Fields 4 years ago #29134

Thank you very much, it worked great, great.
See you soon!
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.38 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.
Weekly Freebie #3: Grab 3 Premium Joomla Templates For FREE

Suggested Posts

(/)
Result not found!

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes