- Posts: 19
COMMUNITY FORUM
Items not showing up in generic view
- Jesse Dockett
-
Topic Author
- Offline
- New Member
Less
More
10 years 5 months ago #134268
by Jesse Dockett
Items not showing up in generic view was created by Jesse Dockett
We've put together some links that will pull items from a category based on the month that they were posted. An example of one of the links would be:
"www.newpages.com/blog/itemlist/date/2014/10?catid=63"
It looks like the items are being called and it's attempting to display the information but failing. Any help getting my content to show up again would be greatly appreciated.
Here is the generic.php file that we're using on the site:
"www.newpages.com/blog/itemlist/date/2014/10?catid=63"
It looks like the items are being called and it's attempting to display the information but failing. Any help getting my content to show up again would be greatly appreciated.
Here is the generic.php file that we're using on the site:
<?php
/**
* @version 2.6.x
* @package K2
* @author JoomlaWorks https://www.joomlaworks.net
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
*/
// no direct access
defined('_JEXEC') or die;
?>
<!-- Start K2 Generic (search/date) Layout -->
<div id="k2Container" class="genericView<?php if($this->params->get('pageclass_sfx')) echo ' '.$this->params->get('pageclass_sfx'); ?>">
<?php if($this->params->get('show_page_title') || JRequest::getCmd('task')=='search' || JRequest::getCmd('task')=='date'): ?>
<!-- Page title -->
<div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>">
<?php echo $this->escape($this->params->get('page_title')); ?>
</div>
<?php endif; ?>
<?php if(JRequest::getCmd('task')=='search' && $this->params->get('googleSearch')): ?>
<!-- Google Search container -->
<div id="<?php echo $this->params->get('googleSearchContainer'); ?>"></div>
<?php endif; ?>
<?php if(count($this->items) && $this->params->get('genericFeedIcon',1)): ?>
<!-- RSS feed icon -->
<div class="k2FeedIcon">
<a href="<?php echo $this->feed; ?>" title="<?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?>">
<span><?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?></span>
</a>
<div class="clr"></div>
</div>
<?php endif; ?>
<?php if(count($this->items)): ?>
<div class="genericItemList">
<?php foreach($this->items as $item): ?>
<!-- Start K2 Item Layout -->
<div class="genericItemView <?php if ($item->category->alias == "blog-items"): ?>np-blog-items<?php endif; ?>" >
<div class="genericItemHeader">
<?php if($this->params->get('genericItemTitle')): ?>
<!-- Item title -->
<h2 class="genericItemTitle">
<?php if ($this->params->get('genericItemTitleLinked')): ?>
<a href="<?php echo $item->link; ?>">
<?php echo $item->title; ?>
</a>
<?php else: ?>
<?php echo $item->title; ?>
<?php endif; ?>
</h2>
<?php endif; ?>
<?php if($this->params->get('genericItemDateCreated')): ?>
<!-- Date created -->
<span class="genericItemDateCreated">
<?php echo JHTML::_('date', $item->created , JText::_('K2_DATE_FORMAT_LC2')); ?>
</span>
<?php endif; ?>
</div>
<div class="genericItemBody">
<?php if($this->params->get('genericItemImage') && !empty($item->imageGeneric)): ?>
<!-- Item Image -->
<div class="genericItemImageBlock">
<span class="genericItemImage">
<a href="<?php echo $item->link; ?>" title="<?php if(!empty($item->image_caption)) echo K2HelperUtilities::cleanHtml($item->image_caption); else echo K2HelperUtilities::cleanHtml($item->title); ?>">
<img src="<?php echo $item->imageGeneric; ?>" alt="<?php if(!empty($item->image_caption)) echo K2HelperUtilities::cleanHtml($item->image_caption); else echo K2HelperUtilities::cleanHtml($item->title); ?>" style="width:<?php echo $this->params->get('itemImageGeneric'); ?>px; height:auto;" />
</a>
</span>
<div class="clr"></div>
</div>
<?php endif; ?>
<?php if($this->params->get('genericItemIntroText')): ?>
<!-- Item introtext -->
<div class="genericItemIntroText">
<?php echo $item->introtext; ?>
</div>
<?php endif; ?>
<div class="clr"></div>
</div>
<div class="clr"></div>
<?php if($this->params->get('genericItemExtraFields') && count($item->extra_fields)): ?>
<!-- Item extra fields -->
<div class="genericItemExtraFields">
<h4><?php echo JText::_('K2_ADDITIONAL_INFO'); ?></h4>
<ul>
<?php foreach ($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="genericItemExtraFieldsHeader"><?php echo $extraField->name; ?></h4>
<?php else: ?>
<span class="genericItemExtraFieldsLabel"><?php echo $extraField->name; ?></span>
<span class="genericItemExtraFieldsValue"><?php echo $extraField->value; ?></span>
<?php endif; ?>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<div class="clr"></div>
</div>
<?php endif; ?>
<?php if($this->params->get('genericItemCategory')): ?>
<!-- Item category name -->
<?php if ($item->category->alias != "blog-items"): ?>
<div class="genericItemCategory">
<span><?php echo JText::_('K2_PUBLISHED_IN'); ?></span>
<a href="<?php echo $item->category->link; ?>"><?php echo $item->category->name; ?></a>
</div>
<?php endif; ?>
<?php endif; ?>
<?php if ($this->params->get('genericItemReadMore')): ?>
<!-- Item "read more..." link -->
<?php if ($item->category->alias != "blog-items"): ?>
<div class="genericItemReadMore">
<a class="k2ReadMore" href="<?php echo $item->link; ?>">
<?php echo JText::_('K2_READ_MORE'); ?>
</a>
</div>
<?php endif; ?>
<?php endif; ?>
<div class="clr"></div>
</div>
<!-- End K2 Item Layout -->
<?php endforeach; ?>
</div>
<!-- Pagination -->
<?php if($this->pagination->getPagesLinks()): ?>
<div class="k2Pagination">
<?php echo $this->pagination->getPagesLinks(); ?>
<div class="clr"></div>
<?php echo $this->pagination->getPagesCounter(); ?>
</div>
<?php endif; ?>
<?php else: ?>
<?php if(!$this->params->get('googleSearch')): ?>
<!-- No results found -->
<div id="genericItemListNothingFound">
<p><?php echo JText::_('K2_NO_RESULTS_FOUND'); ?></p>
</div>
<?php endif; ?>
<?php endif; ?>
</div>
<!-- End K2 Generic (search/date) Layout -->
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 5 months ago #134321
by Krikor Boghossian
Replied by Krikor Boghossian on topic Items not showing up in generic view
This is not a template issue.
www.newpages.com/blog/itemlist/date/2014/10?catid=63&template=system will still not produce any results.
Is it possible to enable error reporting?
www.newpages.com/blog/itemlist/date/2014/10?catid=63&template=system will still not produce any results.
Is it possible to enable error reporting?
Please Log in or Create an account to join the conversation.
- Jesse Dockett
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 19
10 years 5 months ago - 10 years 5 months ago #134361
by Jesse Dockett
Replied by Jesse Dockett on topic Items not showing up in generic view
I have turned error reporting on. I can also provide login information if you would like?
it looks like I'm getting a 500 error for part of the filter:
it looks like I'm getting a 500 error for part of the filter:
GET http://www.newpages.com/index.php?option=com_jak2filter&view=cron 500 (Internal Server Error)
Last edit: 10 years 5 months ago by Jesse Dockett.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
10 years 5 months ago #134363
by Lefteris
Replied by Lefteris on topic Items not showing up in generic view
@Jesse Dockett
The items are there but it looks that you have setup K2 to hide all their data in the generic view. You can change this in K2 parameters.
The items are there but it looks that you have setup K2 to hide all their data in the generic view. You can change this in K2 parameters.
Please Log in or Create an account to join the conversation.