Keyword

K2 EXTRA FIELDS

  • Andrea
  • Andrea's Avatar Topic Author
  • Offline
  • New Member
More
13 years 2 months ago #98733 by Andrea
K2 EXTRA FIELDS was created by Andrea
Hi everybody,

this is my first post :). My name is Andrea and im a young web designer.

 

I write here because i need resolve a problem.

I would show in the k2_content module only the extra fields that i need and not all.. in the source of file "default.php" file,  there is a for cicle see below:

 

<?php if($params->get('itemExtraFields') && count($item->extra_fields)): ?>      <div class="moduleItemExtraFields">                   <ul>            <?php foreach ($item->extra_fields as $extraField): ?>                    <!-- <li class="type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">                         <?php echo $extraField->name; ?>-->                        <span class="moduleItemExtraFieldsValue"><?php echo $extraField->value; ?></span>                        <div class="clr"></div>                    </li>            <?php endforeach; ?>          </ul>      </div>      <?php endif; ?>


 

how i can show only the extra field (so without for cicle) that i need and assign a different class style?

 

Hope your help

Andrea

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


Powered by Kunena Forum