Keyword

Can't get extra fields to show

  • Aleksandar
  • Aleksandar's Avatar Topic Author
  • Offline
  • New Member
More
12 years 10 months ago #98461 by Aleksandar
Can't get extra fields to show was created by Aleksandar
Hello,

 

I am working on a website with K2 and Joomfish installed. I cannot get extra fields to show.

This is the link where extra fields are supposed to show up

184.154.226.14/~hightec7/index.php?option=com_k2&view=item&id=30:uslt-series&lang=us

 

I have extra fields parameters set to show in both

Item view options in category listings
Item view options
Thanking you in advance!

Aleksandar

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

More
12 years 7 months ago #98462 by Odin Mayland
Replied by Odin Mayland on topic Can't get extra fields to show
Did you ever get this working?

 

I am having troubles with extrafields showing up also.

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

More
12 years 7 months ago #98463 by william white
Replied by william white on topic Can't get extra fields to show
Are you both using joomfish?

Are you both using vmart and k2mart?

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

More
12 years 7 months ago #98464 by Odin Mayland
Replied by Odin Mayland on topic Can't get extra fields to show
I am not using any of those.

 

The problem is on www.primocraft.com

 

The categories that are set to use the "Bar Layout Options" extra field appear on:

www.primocraft.com/Home-Bars.html

and

www.primocraft.com/Custom-Bars.html

 

If you browse through the k2items you will notice that not all have the "Bar Layout Options" even though they should. That is my issue.

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

More
12 years 7 months ago #98465 by william white
Replied by william white on topic Can't get extra fields to show
that is not a standard k2 item layout

check your item.php in the override and be sure the foreach loop foe xtra fields is there

 

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

More
12 years 7 months ago #98466 by Odin Mayland
Replied by Odin Mayland on topic Can't get extra fields to show
I am using k2joom k2 template k2rounded as the basis, but I have modified it.

 

I am looking but if you know what to look for here is my k2rounded item.php :

<?php /**
* K2Rounded the k2 template by K2Joom
* Version 2.0 for K2 V2.4
* @version $Id: item.php 558 2010-09-22 11:25:17Z lefteris.kavadas $
* @package K2
* @author JoomlaWorks www.joomlaworks.gr
* @copyright Copyright (c) 2006 - 2010 JoomlaWorks, a business unit of Nuevvo Webware Ltd. All rights reserved.
* @license GNU/GPL license: www.gnu.org/copyleft/gpl.html

*/


// no direct access
defined('_JEXEC') or die('Restricted access');

?>

<!-- Start K2 Item Layout -->
<span id="startOfPageId<?php echo JRequest::getInt('id'); ?>"></span>

<div id="k2Container" class="itemView<?php if($this->item->params->get('pageclass_sfx')) echo ' '.$this->item->params->get('pageclass_sfx'); ?>">

<!-- Plugins: BeforeDisplay -->
<?php echo $this->item->event->BeforeDisplay; ?>

<!-- K2 Plugins: K2BeforeDisplay -->
<?php echo $this->item->event->K2BeforeDisplay; ?>

<?php if(isset($this->item->editLink)): ?>
<!-- Item edit link -->
<span class="itemEditLink">
<a class="modal" rel="{handler:'iframe',size:{x:990,y:650}}" href="<?php echo $this->item->editLink; ?>">
<?php echo JText::_('Edit item'); ?>
</a>
</span>
<?php endif; ?>



<!-- Plugins: AfterDisplayTitle -->
<?php echo $this->item->event->AfterDisplayTitle; ?>



<div class="itemBody">

<!-- Plugins: BeforeDisplayContent -->
<?php echo $this->item->event->BeforeDisplayContent; ?>

<!-- K2 Plugins: K2BeforeDisplayContent -->
<?php echo $this->item->event->K2BeforeDisplayContent; ?>

<?php if($this->item->params->get('itemImage') && !empty($this->item->image)): ?>
<!-- Item Image -->
<div class="itemImageBlock">
<span class="itemImage">
<a class="modal" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('Click to preview image'); ?>">
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo $this->item->image_caption; else echo $this->item->title; ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
</a>
</span>

<?php if($this->item->params->get('itemImageMainCaption') && !empty($this->item->image_caption)): ?>
<!-- Image caption -->
<span class="itemImageCaption"><?php echo $this->item->image_caption; ?></span>
<?php endif; ?>

<?php if($this->item->params->get('itemImageMainCredits') && !empty($this->item->image_credits)): ?>
<!-- Image credits -->
<span class="itemImageCredits"><?php echo $this->item->image_credits; ?></span>
<?php endif; ?>

<div class="clr"></div>
</div>
<?php endif; ?>

<div class="itemHeader">


<?php if($this->item->params->get('itemFeaturedNotice') && $this->item->featured): ?>
<!-- Featured flag -->
<span class="featured">
<?php /*?><sup>
<?php echo JText::_('Featured'); ?>
</sup><?php */?>
</span>
<?php endif; ?>
<?php if($this->item->params->get('itemTitle')): ?>
<!-- Item title -->
<h2 class="itemTitle">
<?php echo $this->item->title; ?>

</h2>
<?php endif; ?>

<?php if($this->item->params->get('itemAuthor')): ?>
<!-- Item Author -->
<span class="itemAuthor">
<?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?> 
<?php if(empty($this->item->created_by_alias)): ?>
<a href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
<?php else: ?>
<?php echo $this->item->author->name; ?>
<?php endif; ?>
</span>
<?php endif; ?>

</div>
<div class="itemToolbar">
<?php if($this->item->params->get('itemFontResizer')): ?>
<!-- Font Resizer -->
<ul>
<li>
<span class="itemTextResizerTitle"><?php echo JText::_('Text size:'); ?></span>
<a href="#" id="fontDecrease">
<span><?php echo JText::_('-'); ?></span>
<img src="components/com_k2/images/system/blank.gif" alt="<?php echo JText::_('decrease font size'); ?>" />
</a>
<a href="#" id="fontIncrease">
<span><?php echo JText::_('+'); ?></span>
<img src="components/com_k2/images/system/blank.gif" alt="<?php echo JText::_('increase font size'); ?>" />
</a>
</li>
<?php if($this->item->params->get('itemPrintButton')): ?>
<!-- Print Button -->
<li>
<?php if(JRequest::getCmd('print')==1): ?>
<a class="itemPrintLink" href="<?php echo $this->item->printLink; ?>" onclick="window.print();return false;">
<span><?php echo JText::_('Print'); ?></span>
</a>
<?php else: ?>
<a class="modal itemPrintLink" title="Print me Out" href="<?php echo $this->item->printLink; ?>" rel="{handler:'iframe',size:{x:900,y:500}}">
<span><?php echo JText::_('Print'); ?></span>
</a>
<?php endif; ?>
</li>
<?php endif; ?>
</ul>
<?php endif; ?>
</div>
<?php if(!empty($this->item->fulltext)): ?>

<?php if($this->item->params->get('itemIntroText')): ?>
<!-- Item introtext -->
<div class="itemIntroText">
<?php echo $this->item->introtext; ?>
</div>
<?php endif; ?>

<?php if($this->item->params->get('itemFullText')): ?>
<!-- Item fulltext -->
<div class="itemFullText">
<?php echo $this->item->fulltext; ?>
</div>
<?php endif; ?>

<?php else: ?>

<!-- Item text -->
<div class="itemFullText">
<?php echo $this->item->introtext; ?>
</div>

<?php endif; ?>



<?php if($this->item->params->get('itemImageGallery') && !empty($this->item->gallery)): ?>
<!-- Item image gallery -->
<a name="itemImageGalleryAnchor" id="itemImageGalleryAnchor"></a>
<div class="itemImageGallery">
<?php echo $this->item->gallery; ?>
</div>
<?php endif; ?>











<?php if($this->item->params->get('itemExtraFields') && count($this->item->extra_fields)): ?>
<!-- Item extra fields /*there was originally a : between the ?>:</ */ -->
<div class="itemExtraFields">
<h3><?php echo JText::_(''); ?></h3>
<ul>
<?php foreach ($this->item->extra_fields as $key=>$extraField):?>
<li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">
<span class="itemExtraFieldsLabel"><?php /*echo $extraField->name; */?></span>
<span class="itemExtraFieldsValue"><?php echo JHTML::_('content.prepare', $extraField->value); ?></span>
<br class="clr" />
</li>
<?php endforeach; ?>
</ul>
<div class="clr"></div>
</div>
<?php endif; ?>

<div class="itemrelatedtag">
<?php if($this->item->params->get('itemRelated') && isset($this->relatedItems)): ?>
<!-- Related items by tag -->
<div class="itemRelated">
<h3><?php echo JText::_("Similar Items"); ?></h3>
<ul>
<?php foreach($this->relatedItems as $key=>$item): ?>
<li class="<?php echo ($key%2) ? "odd" : "even"; ?>">
<a href="<?php echo $item->link ?>"><?php echo $item->title; ?></a>
</li>
<?php endforeach; ?>
</ul>
<div class="clr"></div>
</div>
<?php endif; ?>
</div>

<?php if($this->item->params->get('itemDateCreated')): ?>
<!-- Date created -->
<span class="itemDateCreated">
<?php echo JText::_('Written on'); ?> <?php echo JHTML::_('date', $this->item->created , JText::_('DATE_FORMAT_LC2')); ?>

<?php endif; ?>

<?php if($this->item->params->get('itemDateModified') && intval($this->item->modified)!=0):?>
<!-- Item date modified -->
<?php if($this->item->created != $this->item->modified): ?>

<?php echo JText::_(' and last modified on'); ?> <?php echo JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2')); ?>
</span>
<?php endif; ?>
<?php endif; ?>






<!-- Plugins: AfterDisplayContent -->
<?php echo $this->item->event->AfterDisplayContent; ?>

<!-- K2 Plugins: K2AfterDisplayContent -->
<?php echo $this->item->event->K2AfterDisplayContent; ?>

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

</div>

<?php if(
$this->item->params->get('itemHits') ||
$this->item->params->get('itemTwitterLink') ||
$this->item->params->get('itemCategory') ||
$this->item->params->get('itemTags') ||
$this->item->params->get('itemShareLinks') ||
$this->item->params->get('itemAttachments')
): ?>




<?php if($this->item->params->get('itemAttachments') && count($this->item->attachments)): ?>
<!-- Item attachments -->
<div class="itemAttachmentsBlock">
<span><?php echo JText::_("Download attachments:"); ?></span>
<ul class="itemAttachments">
<?php foreach ($this->item->attachments as $attachment): ?>
<li>
<a title="<?php echo htmlentities($attachment->titleAttribute, ENT_QUOTES, 'UTF-8'); ?>" href="<?php echo JRoute::_('index.php?option=com_k2&view=item&task=download&id='.$attachment->id); ?>">
<?php echo $attachment->title ; ?>
</a>
<?php if($this->item->params->get('itemAttachmentsCounter')): ?>
<span>(<?php echo $attachment->hits; ?> <?php echo (count($attachment->hits)==1) ? JText::_("download") : JText::_("downloads"); ?>)</span>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>


<?php endif; ?>

<?php if($this->item->params->get('itemVideo') && !empty($this->item->video)): ?>
<!-- Item video -->
<a name="itemVideoAnchor" id="itemVideoAnchor"></a>

<div class="itemVideoBlock">
<h3><?php echo JText::_('Related Video'); ?></h3>

<?php if($this->item->videoType=='embedded'): ?>
<div class="itemVideoEmbedded">
<?php echo $this->item->video; ?>
</div>
<?php else: ?>
<span class="itemVideo"><?php echo $this->item->video; ?></span>
<?php endif; ?>

<?php if($this->item->params->get('itemVideoCaption') && !empty($this->item->video_caption)): ?>
<span class="itemVideoCaption"><?php echo $this->item->video_caption; ?></span>
<?php endif; ?>

<?php if($this->item->params->get('itemVideoCredits') && !empty($this->item->video_credits)): ?>
<span class="itemVideoCredits"><?php echo $this->item->video_credits; ?></span>
<?php endif; ?>

<div class="clr"></div>
</div>
<?php endif; ?>

<?php if($this->item->params->get('itemNavigation') && !JRequest::getCmd('print') && (isset($this->item->nextLink) || isset($this->item->previousLink))): ?>
<!-- Item navigation -->
<div class="itemNavigation">
<?php if($this->item->params->get('itemTags') && count($this->item->tags)): ?>
<!-- Item tags -->
<span class="itemTagsBlock">
<span><?php echo JText::_("See all items similar to:"); ?></span>
<ul class="itemTags">
<?php foreach ($this->item->tags as $tag): ?>
<li><a href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a></li>
<?php endforeach; ?>
</ul>
</span>
<?php endif; ?>
<span class="itemNavigationTitle"><?php echo JText::_('More in this category:'); ?></span>

<?php if(isset($this->item->previousLink)): ?>
<a class="itemPrevious" href="<?php echo $this->item->previousLink; ?>">
« <?php echo $this->item->previousTitle; ?>
</a>
<?php endif; ?>

<?php if(isset($this->item->nextLink)): ?>
<a class="itemNext" href="<?php echo $this->item->nextLink; ?>">
<?php echo $this->item->nextTitle; ?> »
</a>
<?php endif; ?>

</div>
<?php endif; ?>


<!-- K2 Plugins: K2AfterDisplayTitle -->
<?php echo $this->item->event->K2AfterDisplayTitle; ?>

<?php if(
$this->item->params->get('itemFontResizer') ||
$this->item->params->get('itemPrintButton') ||
$this->item->params->get('itemEmailButton') ||
$this->item->params->get('itemSocialButton') ||
$this->item->params->get('itemVideoAnchor') ||
$this->item->params->get('itemImageGalleryAnchor') ||
$this->item->params->get('itemCommentsAnchor')
): ?>
<div class="itemToolbar">

<ul>




<?php if($this->item->params->get('itemEmailButton') && (!JRequest::getInt('print')) ): ?>
<!-- Email Button -->
<li>
<a class="itemEmailLink" onclick="window.open(this.href,'win2','width=400,height=350,menubar=yes,resizable=yes'); return false;" title="Email this!!" href="<?php echo $this->item->emailLink; ?>">
<span><?php echo JText::_('E-mail'); ?></span>
</a>
</li>
<?php endif; ?>

<?php if($this->item->params->get('itemSocialButton') && !is_null($this->item->params->get('socialButtonCode', NULL))): ?>
<!-- Item Social Button -->
<li>
<?php echo $this->item->params->get('socialButtonCode'); ?>
</li>
<?php endif; ?>

<?php if($this->item->params->get('itemVideoAnchor') && !empty($this->item->video)): ?>
<!-- Anchor link to item video below - if it exists -->
<li>
<a class="itemVideoLink k2Anchor" href="<?php echo $this->item->link; ?>#itemVideoAnchor"><?php echo JText::_('Video'); ?></a>
</li>
<?php endif; ?>

<?php if($this->item->params->get('itemImageGalleryAnchor') && !empty($this->item->gallery)): ?>
<!-- Anchor link to item image gallery below - if it exists -->
<li>
<a class="itemImageGalleryLink k2Anchor" href="<?php echo $this->item->link; ?>#itemImageGalleryAnchor"><?php echo JText::_('Image Gallery'); ?>

</a>
</li>
<?php endif; ?>

<?php if($this->item->params->get('itemCommentsAnchor') && $this->item->params->get('itemComments') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?>
<!-- Anchor link to comments below - if enabled -->
<li>
<!-- K2 Plugins: K2CommentsCounter -->
<?php echo $this->item->event->K2CommentsCounter; ?>
<?php if(empty($this->item->event->K2CommentsCounter)):?>
<?php if($this->item->numOfComments > 0): ?>
<a class="itemCommentsLink k2Anchor" href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
<span><?php echo $this->item->numOfComments; ?></span> <?php echo ($this->item->numOfComments>1) ? JText::_('comments') : JText::_('comment'); ?>
</a>
<?php else: ?>
<a class="itemCommentsLink k2Anchor" href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
<?php echo JText::_('Be the first to comment!'); ?>
</a>
<?php endif; ?>
<?php endif; ?>
</li>
<?php endif; ?>
</ul>
<div class="clr"></div>

<?php endif; ?>
<?php if($this->item->params->get('itemHits') || $this->item->params->get('itemTwitterLink')): ?>

<?php if($this->item->params->get('itemHits')): ?>
<!-- Item Hits -->
<div class="plusone"><g:plusone size="small" count="false"></g:plusone></div>
<span class="itemHits">
<?php echo JText::_('Read'); ?> <b><?php echo $this->item->hits; ?></b> <?php echo JText::_('times'); ?>
</span>
<?php endif; ?>

<?php if($this->item->params->get('itemHits') && $this->item->params->get('itemTwitterLink')): ?>
<?php endif; ?>

<?php endif; ?>
<div class="itemLinks">

<?php if($this->item->params->get('itemShareLinks')): ?>
<!-- Item social links -->
<span class="itemSocialLinksBlock">
<span></span>
<ul class="itemSocialLinks">
&lt;li&gt;&lt;a class="googlebuzz" title="&lt;?php echo JText::_("Add to Google Buzz"); ?&gt;" href="www.google.com/buzz/post?url=<?php echo $this->item->socialLink; ?>&message=<?php echo urlencode($this->item->title); ?>" target="_blank"> <span><?php echo JText::_("Add to Google Buzz"); ?></span></a></li>
&lt;li&gt;&lt;a class="facebook" title="&lt;?php echo JText::_("Add to Facebook"); ?&gt;" href="www.facebook.com/sharer.php?u=<?php echo $this->item->socialLink; ?>&t=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to Facebook"); ?></span></a></li>
&lt;li&gt;&lt;a class="delicious" title="&lt;?php echo JText::_("Add to Delicious"); ?&gt;" href="del.icio.us/post?url=<?php echo $this->item->socialLink; ?>&title=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to Delicious"); ?></span></a></li>
&lt;li&gt;&lt;a class="digg" title="&lt;?php echo JText::_("Digg this"); ?&gt;" href="digg.com/submit?url=<?php echo $this->item->socialLink; ?>&title=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Digg this"); ?></span></a></li>
&lt;li&gt;&lt;a class="reddit" title="&lt;?php echo JText::_("Add to Reddit"); ?&gt;" href="reddit.com/submit?url=<?php echo $this->item->socialLink; ?>&title=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to Reddit"); ?></span></a></li>
&lt;li&gt;&lt;a class="stumble" title="&lt;?php echo JText::_("Add to StumbleUpon"); ?&gt;" href="www.stumbleupon.com/submit?url=<?php echo $this->item->socialLink; ?>&title=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to StumbleUpon"); ?></span></a></li>
&lt;li class="clr"&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;?php if($this-&gt;item-&gt;params-&gt;get('itemTwitterLink') &amp;&amp; $this-&gt;item-&gt;params-&gt;get('twitterUsername')): ?&gt;
&lt;!-- Twitter Link --&gt;
&lt;span class="itemTwitterLink"&gt;
&lt;a title="&lt;?php echo JText::_(' Tweet it to your followers!'); ?&gt;" href="&lt;?php echo $this-&gt;item-&gt;twitterURL; ?&gt;" target="_blank"&gt;
&lt;?php echo JText::_('&gt;'); ?&gt;
&lt;/a&gt;
&lt;/span&gt;

&lt;/span&gt;

&lt;?php endif; ?&gt;


&lt;?php endif; ?&gt;





&lt;/div&gt;

&lt;?php if($this-&gt;item-&gt;params-&gt;get('itemRating')): ?&gt;
&lt;!-- Item Rating --&gt;
&lt;div class="itemRatingBlock"&gt;



&lt;span&gt;&lt;?php echo JText::_('Rate this item'); ?&gt;&lt;/span&gt;
&lt;div class="itemRatingForm"&gt;
&lt;ul class="itemRatingList"&gt;
&lt;li class="itemCurrentRating" id="itemCurrentRating&lt;?php echo $this-&gt;item-&gt;id; ?&gt;" style="width:&lt;?php echo $this-&gt;item-&gt;votingPercentage; ?&gt;%;"&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#" rel="&lt;?php echo $this-&gt;item-&gt;id; ?&gt;" title="&lt;?php echo JText::_('1 star out of 5'); ?&gt;" class="one-star"&gt;1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#" rel="&lt;?php echo $this-&gt;item-&gt;id; ?&gt;" title="&lt;?php echo JText::_('2 stars out of 5'); ?&gt;" class="two-stars"&gt;2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#" rel="&lt;?php echo $this-&gt;item-&gt;id; ?&gt;" title="&lt;?php echo JText::_('3 stars out of 5'); ?&gt;" class="three-stars"&gt;3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#" rel="&lt;?php echo $this-&gt;item-&gt;id; ?&gt;" title="&lt;?php echo JText::_('4 stars out of 5'); ?&gt;" class="four-stars"&gt;4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#" rel="&lt;?php echo $this-&gt;item-&gt;id; ?&gt;" title="&lt;?php echo JText::_('5 stars out of 5'); ?&gt;" class="five-stars"&gt;5&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div id="itemRatingLog&lt;?php echo $this-&gt;item-&gt;id; ?&gt;" class="itemRatingLog"&gt;&lt;?php echo $this-&gt;item-&gt;numOfvotes; ?&gt;&lt;/div&gt;
&lt;div class="clr"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="clr"&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;?php endif; ?&gt;


&lt;/div&gt;


&lt;div class="itemCommentsandAuthor"&gt;

&lt;!-- Plugins: AfterDisplay --&gt;
&lt;?php echo $this-&gt;item-&gt;event-&gt;AfterDisplay; ?&gt;

&lt;!-- K2 Plugins: K2AfterDisplay --&gt;
&lt;?php echo $this-&gt;item-&gt;event-&gt;K2AfterDisplay; ?&gt;

&lt;?php if($this-&gt;item-&gt;params-&gt;get('itemComments') &amp;&amp; ( ($this-&gt;item-&gt;params-&gt;get('comments') == '2' &amp;&amp; !$this-&gt;user-&gt;guest) || ($this-&gt;item-&gt;params-&gt;get('comments') == '1'))):?&gt;
&lt;!-- K2 Plugins: K2CommentsBlock --&gt;
&lt;?php echo $this-&gt;item-&gt;event-&gt;K2CommentsBlock; ?&gt;
&lt;?php endif;?&gt;

&lt;?php if($this-&gt;item-&gt;params-&gt;get('itemComments') &amp;&amp; !JRequest::getInt('print') &amp;&amp; ($this-&gt;item-&gt;params-&gt;get('comments') == '1' || ($this-&gt;item-&gt;params-&gt;get('comments') == '2')) &amp;&amp; empty($this-&gt;item-&gt;event-&gt;K2CommentsBlock)):?&gt;
&lt;!-- Item comments --&gt;
&lt;a name="itemCommentsAnchor" id="itemCommentsAnchor"&gt;&lt;/a&gt;

&lt;div class="itemComments"&gt;
&lt;?php if($this-&gt;item-&gt;params-&gt;get('commentsFormPosition')=='above' &amp;&amp; $this-&gt;item-&gt;params-&gt;get('itemComments') &amp;&amp; !JRequest::getInt('print') &amp;&amp; ($this-&gt;item-&gt;params-&gt;get('comments') == '1' || ($this-&gt;item-&gt;params-&gt;get('comments') == '2' &amp;&amp; K2HelperPermissions::canAddComment($this-&gt;item-&gt;catid)))): ?&gt;
&lt;!-- Item comments form --&gt;
&lt;div class="itemCommentsForm"&gt;
&lt;?php echo $this-&gt;loadTemplate('comments_form'); ?&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;

&lt;?php if($this-&gt;item-&gt;numOfComments&gt;0 &amp;&amp; $this-&gt;item-&gt;params-&gt;get('itemComments') &amp;&amp; !JRequest::getInt('print') &amp;&amp; ($this-&gt;item-&gt;params-&gt;get('comments') == '1' || ($this-&gt;item-&gt;params-&gt;get('comments') == '2'))): ?&gt;
&lt;!-- Item user comments --&gt;
&lt;h3 class="itemCommentsCounter"&gt;
&lt;span&gt;&lt;?php echo $this-&gt;item-&gt;numOfComments; ?&gt;&lt;/span&gt; &lt;?php echo ($this-&gt;item-&gt;numOfComments&gt;1) ? JText::_('comments') : JText::_('comment'); ?&gt;
&lt;/h3&gt;
&lt;ul class="itemCommentsList"&gt;
&lt;?php foreach ($this-&gt;item-&gt;comments as $key=&gt;$comment): ?&gt;
&lt;li class="&lt;?php echo ($key%2) ? "odd" : "even"; echo (!$this-&gt;item-&gt;created_by_alias &amp;&amp; $comment-&gt;userID==$this-&gt;item-&gt;created_by) ? " authorResponse" : ""; ?&gt;"&gt;
&lt;span class="commentLink"&gt;
&lt;a href="&lt;?php echo $this-&gt;item-&gt;link; ?&gt;#comment&lt;?php echo $comment-&gt;id; ?&gt;" name="comment&lt;?php echo $comment-&gt;id; ?&gt;" id="comment&lt;?php echo $comment-&gt;id; ?&gt;"&gt;
&lt;?php echo JText::_('Comment Link'); ?&gt;
&lt;/a&gt;
&lt;/span&gt;
&lt;?php if($comment-&gt;userImage):?&gt;
&lt;img src="&lt;?php echo $comment-&gt;userImage; ?&gt;" alt="&lt;?php echo $comment-&gt;userName; ?&gt;" width="&lt;?php echo $this-&gt;item-&gt;params-&gt;get('commenterImgWidth'); ?&gt;" /&gt;
&lt;?php endif; ?&gt;

&lt;span class="commentDate"&gt;
&lt;?php echo JHTML::_('date', $comment-&gt;commentDate, JText::_('DATE_FORMAT_LC2')); ?&gt;
&lt;/span&gt;

&lt;span class="commentAuthorName"&gt;
&lt;?php echo JText::_("posted by"); ?&gt;
&lt;?php if(!empty($comment-&gt;userLink)): ?&gt;
&lt;a href="&lt;?php echo $comment-&gt;userLink; ?&gt;" title="&lt;?php echo $comment-&gt;userName; ?&gt;" rel="nofollow"&gt;
&lt;?php echo $comment-&gt;userName; ?&gt;
&lt;/a&gt;
&lt;?php else: ?&gt;
&lt;?php echo $comment-&gt;userName; ?&gt;
&lt;?php endif; ?&gt;
&lt;/span&gt;

&lt;p&gt;&lt;?php echo $comment-&gt;commentText; ?&gt;&lt;/p&gt;
&lt;br class="clr" /&gt;
&lt;/li&gt;
&lt;?php endforeach; ?&gt;
&lt;/ul&gt;

&lt;div class="itemCommentsPagination"&gt;
&lt;?php echo $this-&gt;pagination-&gt;getPagesLinks(); ?&gt;
&lt;div class="clr"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;

&lt;?php if($this-&gt;item-&gt;params-&gt;get('commentsFormPosition')=='below' &amp;&amp; $this-&gt;item-&gt;params-&gt;get('itemComments') &amp;&amp; !JRequest::getInt('print') &amp;&amp; ($this-&gt;item-&gt;params-&gt;get('comments') == '1' || ($this-&gt;item-&gt;params-&gt;get('comments') == '2' &amp;&amp; K2HelperPermissions::canAddComment($this-&gt;item-&gt;catid)))): ?&gt;
&lt;!-- Item comments form --&gt;
&lt;div class="itemCommentsForm"&gt;
&lt;?php echo $this-&gt;loadTemplate('comments_form'); ?&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;

&lt;?php $user = &amp;JFactory::getUser(); if ($this-&gt;item-&gt;params-&gt;get('comments') == '2' &amp;&amp; $user-&gt;guest):?&gt;
&lt;div&gt;&lt;?php echo JText::_('Login to post comments');?&gt;&lt;/div&gt;
&lt;?php endif; ?&gt;

&lt;/div&gt;
&lt;?php endif; ?&gt;



&lt;?php if($this-&gt;item-&gt;params-&gt;get('itemAuthorBlock') &amp;&amp; empty($this-&gt;item-&gt;created_by_alias)):?&gt;
&lt;div class="itemAuthorBlockWrapper"&gt;
&lt;!-- Author Block --&gt;
&lt;h3 class="itemAuthorName"&gt;
&lt;a href="&lt;?php echo $this-&gt;item-&gt;author-&gt;link; ?&gt;"&gt;&lt;?php echo $this-&gt;item-&gt;author-&gt;name; ?&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;div class="itemAuthorBlock"&gt;

&lt;?php if($this-&gt;item-&gt;params-&gt;get('itemAuthorImage') &amp;&amp; !empty($this-&gt;item-&gt;author-&gt;avatar)):?&gt;
&lt;img class="itemAuthorAvatar" src="&lt;?php echo $this-&gt;item-&gt;author-&gt;avatar; ?&gt;" alt="&lt;?php echo $this-&gt;item-&gt;author-&gt;name; ?&gt;" /&gt;
&lt;?php endif; ?&gt;

&lt;div class="itemAuthorDetails"&gt;


&lt;?php if($this-&gt;item-&gt;params-&gt;get('itemAuthorDescription') &amp;&amp; !empty($this-&gt;item-&gt;author-&gt;profile-&gt;description)):?&gt;
&lt;p&gt;&lt;?php echo $this-&gt;item-&gt;author-&gt;profile-&gt;description; ?&gt;&lt;/p&gt;
&lt;?php endif; ?&gt;

&lt;?php if($this-&gt;item-&gt;params-&gt;get('itemAuthorURL') &amp;&amp; !empty($this-&gt;item-&gt;author-&gt;profile-&gt;url)):?&gt;
&lt;span class="itemAuthorUrl"&gt;&lt;?php echo JText::_("Website:"); ?&gt; &lt;a href="&lt;?php echo $this-&gt;item-&gt;author-&gt;profile-&gt;url; ?&gt;" target="_blank"&gt;&lt;?php echo str_replace('http://','',$this-&gt;item-&gt;author-&gt;profile-&gt;url); ?></a></span>
&lt;?php endif; ?&gt;

&lt;?php if($this-&gt;item-&gt;params-&gt;get('itemAuthorEmail')):?&gt;
&lt;span class="itemAuthorEmail"&gt;&lt;?php echo JText::_("E-mail:"); ?&gt; &lt;?php echo JHTML::_('Email.cloak', $this-&gt;item-&gt;author-&gt;email); ?&gt;&lt;/span&gt;
&lt;?php endif; ?&gt;

&lt;div class="clr"&gt;&lt;/div&gt;

&lt;!-- K2 Plugins: K2UserDisplay --&gt;
&lt;?php echo $this-&gt;item-&gt;event-&gt;K2UserDisplay; ?&gt;

&lt;/div&gt;
&lt;div class="clr"&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;?php if($this-&gt;item-&gt;params-&gt;get('itemAuthorLatest') &amp;&amp; empty($this-&gt;item-&gt;created_by_alias) &amp;&amp; isset($this-&gt;authorLatestItems)): ?&gt;
&lt;!-- Latest items from author --&gt;
&lt;div class="itemAuthorLatest"&gt;
&lt;h3&gt;&lt;?php echo JText::_("Latest from"); ?&gt; &lt;?php echo $this-&gt;item-&gt;author-&gt;name; ?&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;?php foreach($this-&gt;authorLatestItems as $key=&gt;$item): ?&gt;
&lt;li class="&lt;?php echo ($key%2) ? "odd" : "even"; ?&gt;"&gt;
&lt;a href="&lt;?php echo $item-&gt;link ?&gt;"&gt;&lt;?php echo $item-&gt;title; ?&gt;&lt;/a&gt;
&lt;/li&gt;
&lt;?php endforeach; ?&gt;
&lt;/ul&gt;
&lt;div class="clr"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;


&lt;div class="clr"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;
&lt;/div&gt;


&lt;div class="itemBackToTop"&gt;
&lt;a class="k2Anchor" href="&lt;?php echo $this-&gt;item-&gt;link; ?&gt;#startOfPageId&lt;?php echo JRequest::getInt('id'); ?&gt;"&gt;&lt;?php echo JText::_("go back to top"); ?&gt;&lt;/a&gt;

&lt;?php if($this-&gt;item-&gt;params-&gt;get('itemCategory')): ?&gt;
&lt;!-- Item category name --&gt;
&lt;span class="itemCategory"&gt;
&lt;span&gt;&lt;?php echo JText::_('or return to:'); ?&gt;&lt;/span&gt;
&lt;a href="&lt;?php echo $this-&gt;item-&gt;category-&gt;link; ?&gt;"&gt;&lt;?php echo $this-&gt;item-&gt;category-&gt;name; ?&gt;&lt;/a&gt;
&lt;/span&gt;
&lt;?php endif; ?&gt;
&lt;/div&gt;

&lt;div class="clr"&gt;&lt;/div&gt;

&lt;/div&gt;



&lt;!-- End K2 Item Layout --&gt;

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

More
12 years 7 months ago #98467 by william white
Replied by william white on topic Can't get extra fields to show
K2rounded shows extra fields as you can see in the examplehere

It must be some other reason the extra fields are not showing.

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

More
12 years 7 months ago #98468 by william white
Replied by william white on topic Can't get extra fields to show
Look at the page source of your item

search for extra" and you will find

&lt;!-- Item extra fields /*there was originally a : between the ?&gt;:&lt;/ */ --&gt;
span class="start-tag"&gt;div class="itemExtraFields"&gt; span class="start-tag"&gt;h3&gt;&lt;/h3&gt; span class="start-tag"&gt;ul&gt; span class="start-tag"&gt;li class="even typeTextarea group1"&gt; span class="start-tag"&gt;span class="itemExtraFieldsLabel"&gt;&lt;/span&gt; span class="start-tag"&gt;span class="itemExtraFieldsValue"&gt;span class="start-tag"&gt;a href="www.primocraft.com/images/primo-craft-custom-bar-layouts.png" class="modalizer_link_image" >span class="start-tag">img alt="primocraft-master-bar-layout-icon" src="/images/primocraft-master-bar-layout-icon.jpg" /></a></span> span class="start-tag">br class="clr" /> </li> </ul>
span class="start-tag"&gt;div class="clr"&gt;&lt;/div&gt; &lt;/div&gt;The image you have showing is your extra field

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

More
12 years 7 months ago #98469 by Odin Mayland
Replied by Odin Mayland on topic Can't get extra fields to show
I understand that.  So now that you see the extrafield on that page.  goto another page in that same category and notice the same extrafield is not showing up:  www.primocraft.com/Home-Bars/Oxford.html

 

The source shows:

&lt;div class="itemExtraFields"&gt;&lt;h3&gt;&lt;/h3&gt;&lt;ul&gt;&lt;li class="even typeTextarea group1"&gt; &lt;span class="itemExtraFieldsLabel"&gt;&lt;/span&gt; &lt;span class="itemExtraFieldsValue"&gt;&lt;/span&gt; &lt;br class="clr" /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="clr"&gt;&lt;/div&gt;&lt;/div&gt;

 

Even though the backend clearly shows all home bars should have the same extrafield:

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

More
12 years 7 months ago #98470 by Odin Mayland
Replied by Odin Mayland on topic Can't get extra fields to show
For example:

The Bridgeport Bar:  www.primocraft.com/Home-Bars/Bridgeport.html  shows the "Master Layouts" extrafield automatically populated with the "default values"of the extra field in the backend:

But the very next bar, the Oxford: www.primocraft.com/Home-Bars/Oxford.html

does not show the "default values" in the backend extra fields tab, although it does show the extra field's "Name" "Master Layouts":



 

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


Powered by Kunena Forum