Hi Iraqtech,
Some issues when i posting before, here's the rest
Create an extra field group tender and associate with the category
Create an extra field Deadline: and choose date as the type ( if you want to display the date as 15-06-2012 then choose textbox)
In the item view configurations for both the category and module, hide all and just show the title,link and extra field.
Hide the Additional Info text
Category:
Go to the templates/html/com_k2/templates/tender folder and edit the category_view.php
[code type=php-brief]
<!-- Item extra fields -->
<div class="catItemExtraFields">
<h4><?php echo JText::_('K2_ADDITIONAL_INFO'); ?></h4>
<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; ?>">
<span class="catItemExtraFieldsLabel"><?php echo $extraField->name; ?></span>
<span class="catItemExtraFieldsValue"><?php echo $extraField->value; ?></span>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<div class="clr"></div>
</div>
[/code]
Remove the
[code type=php-brief]<h4><?php echo JText::_('K2_ADDITIONAL_INFO'); ?></h4> line[/code]
Module:
Go to the templates/html/mod_k2_content/tender folder and edit the default.php
[code type=php-brief]
<div class="moduleItemExtraFields">
<b><?php echo JText::_('K2_ADDITIONAL_INFO'); ?></b>
<ul>
<?php foreach ($item->extra_fields as $extraField): ?>
<?php if($extraField->value): ?>
<li class="type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">
<span class="moduleItemExtraFieldsLabel"><?php echo $extraField->name; ?></span>
<span class="moduleItemExtraFieldsValue"><?php echo $extraField->value; ?></span>
<div class="clr"></div>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
</div>
[/code]
Remove the
[code type=php-brief]<b><?php echo JText::_('K2_ADDITIONAL_INFO'); ?></b> line[/code]
The rest just change the css positioning values and you'll have the display as my screenshot.
K2 Rocks \m/