Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Василий Городецкий
  • Василий Городецкий's Avatar
04 Sep 2017 11:59
Replied by Василий Городецкий on topic k2 tags filter in backend item lists

k2 tags filter in backend item lists

Category: English K2 Community

yeap) Thread is closed) "Filter by tags" in options...
Thx 4 k2)
  • Василий Городецкий
  • Василий Городецкий's Avatar
04 Sep 2017 11:24
k2 tags filter in backend item lists was created by Василий Городецкий

k2 tags filter in backend item lists

Category: English K2 Community

Hello.
Wanted to make organizing articles on tags. In general, this is not a problem in terms of functionality. But it is not very convenient to manage these articles from the admin area. There is no filter or tag search in the component.

How to implement an additional tab, not by category, exactly by tags?
4 example:
  • oshyne
  • oshyne's Avatar
04 Sep 2017 03:39 - 04 Sep 2017 04:20

Display social sharing buttons in category items

Category: English K2 Community

With a little looking around here and there, the code below works for category items:
<?php echo (JRoute::_($link,true, -1)) ;?>

But with a little modification to the $link variable below - removing $this-> before item:
<?php $link = K2HelperRoute::getItemRoute($item->id.':'.($item->alias)); ?>

I get the following incomplete url in tag view:

Round cottage pink birthday cake http://localhost/liliesbeyond2017/index.php/more-cakes/cakes-for-girls/item/-(incomplete without id and alias)

Please, i will need your help getting the item ID and item alias to complete the url above.

Thanks in advance!
  • esedic
  • esedic's Avatar
03 Sep 2017 13:38 - 03 Sep 2017 13:39
Replied by esedic on topic How to show ratings in k2 related items?

How to show ratings in k2 related items?

Category: English K2 Community

I took a quick look and it seems that item rating information is not there for related items in item view.
You could query that information directly in item.php template file, something like this:
After this line
<?php foreach($this->relatedItems as $key=>$item): ?>
add this:
<?php $db = JFactory::getDbo(); $query = "SELECT * FROM #__k2_rating WHERE itemID = ".$item->id; $db->setQuery($query); try { $db->execute(); $vote = $db->loadObject(); if (!is_null($vote) && $vote->rating_count != 0) { $votingPercentage = number_format(intval($vote->rating_sum) / intval($vote->rating_count), 2) * 20; } else { $votingPercentage = 0; } } catch (RuntimeException $e) { JFactory::getApplication()->enqueueMessage($e->getMessage()); } ?>

Then you have to change this line
<li class="itemCurrentRating" id="itemCurrentRating<?php echo $item->id; ?>" style="width:<?php echo $item->votingPercentage; ?>%;"></li>
to this
<li class="itemCurrentRating" id="itemCurrentRating<?php echo $item->id; ?>" style="width:<?php echo $votingPercentage; ?>%;"></li>

Use template override and test it.
This is a quick solution and it's not in line with MVC pattern (database queries do not belong in views).
  • oshyne
  • oshyne's Avatar
02 Sep 2017 20:12

How to show ratings in k2 related items?

Category: English K2 Community

So far, with the code below i am able to rate an item under the related items in the item view but my challenge is that, the
yellow rating stars and the number of times an item has been rated doesn't show.

Please, i need your assistance and thanks in advance.
<div class="itemRatingBlock"> <div class="itemRatingForm"> <ul class="itemRatingList"> <li class="itemCurrentRating" id="itemCurrentRating<?php echo $item->id; ?>" style="width:<?php echo $item->votingPercentage; ?>%;"></li> <li><a href="#" data-id="<?php echo $item->id; ?>" title="<?php echo JText::_('K2_1_STAR_OUT_OF_5'); ?>" class="one-star">1</a></li> <li><a href="#" data-id="<?php echo $item->id; ?>" title="<?php echo JText::_('K2_2_STARS_OUT_OF_5'); ?>" class="two-stars">2</a></li> <li><a href="#" data-id="<?php echo $item->id; ?>" title="<?php echo JText::_('K2_3_STARS_OUT_OF_5'); ?>" class="three-stars">3</a></li> <li><a href="#" data-id="<?php echo $item->id; ?>" title="<?php echo JText::_('K2_4_STARS_OUT_OF_5'); ?>" class="four-stars">4</a></li> <li><a href="#" data-id="<?php echo $item->id; ?>" title="<?php echo JText::_('K2_5_STARS_OUT_OF_5'); ?>" class="five-stars">5</a></li> </ul> <div id="itemRatingLog<?php echo $item->id; ?>" class="itemRatingLog"><?php echo $item->numOfvotes; ?></div> <div class="clr"></div> </div> <div class="clr"></div> </div>
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
30 Aug 2017 19:59
Replied by Krikor Boghossian on topic Items Custom Meta Title

Items Custom Meta Title

Category: English K2 Community

You can use an extrafield in your overrides (item.php) as a custom meta tag.
A starting point can be found here:
github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L176-L191

More on overrides can be found here:
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
29 Aug 2017 19:03
Replied by Krikor Boghossian on topic Problem with K2 item images in tag listings

Problem with K2 item images in tag listings

Category: English K2 Community

Yeap! I'm starring it so I won't lose it.
thanks
  • Digimouse Ltd
  • Digimouse Ltd's Avatar
  • Digimouse Ltd
  • Digimouse Ltd's Avatar
29 Aug 2017 18:56
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
29 Aug 2017 18:54
Replied by Krikor Boghossian on topic Problem with K2 item images in tag listings

Problem with K2 item images in tag listings

Category: English K2 Community

There was a plugin in github but I cannot recollect its name.
  • Digimouse Ltd
  • Digimouse Ltd's Avatar
29 Aug 2017 18:22
Replied by Digimouse Ltd on topic Problem with K2 item images in tag listings

Problem with K2 item images in tag listings

Category: English K2 Community

Reuploading the image works. That being said, it's going to be hell to reupload all these images. Is there a shortcut?
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
29 Aug 2017 18:18
Replied by Krikor Boghossian on topic Problem with K2 item images in tag listings

Problem with K2 item images in tag listings

Category: English K2 Community

Check your override to see if there is an image hardcoded in the tag.php file.

If not, try reuploading the image.
  • Digimouse Ltd
  • Digimouse Ltd's Avatar
29 Aug 2017 18:07
Replied by Digimouse Ltd on topic Problem with K2 item images in tag listings

Problem with K2 item images in tag listings

Category: English K2 Community

Ah, I see... I set the value after I added the images. I will upload again and see how it goes.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
29 Aug 2017 17:50
Replied by Krikor Boghossian on topic Some k2 tags giving 500 error

Some k2 tags giving 500 error

Category: English K2 Community

Enable error reporting from Joomla!'s global configuration to find the issue.
  • Ronny Van Der Borght
  • Ronny Van Der Borght's Avatar
29 Aug 2017 17:44
Replied by Ronny Van Der Borght on topic Problem with K2 item images in tag listings

Problem with K2 item images in tag listings

Category: English K2 Community

Did you set that value before you added the images or after you added them?

Be aware that images are resized using the image-size parameter that is set on the moment you upload them. If you change that parameter afterwards the images are not re-resized, they stay as they were set before.
  • Digimouse Ltd
  • Digimouse Ltd's Avatar
29 Aug 2017 17:37
Problem with K2 item images in tag listings was created by Digimouse Ltd

Problem with K2 item images in tag listings

Category: English K2 Community

Hello,
when I see the K2 items in their category, the images show OK. When I click on one of the tags in the tag cloud (K2 tools module) the same articles are showing again but their images are blurry.

I have made sure that the "Item generic image width (in px). Used in user pages as well as tag, search & date listings." setting is set to 900px
  • Suzie H
  • Suzie H's Avatar
28 Aug 2017 23:47
Replied by Suzie H on topic Some k2 tags giving 500 error

Some k2 tags giving 500 error

Category: English K2 Community

Both I and the host tried this but could not get anything.. Here is the reply from the host

"I did try everything to shed some light on it. Tried to read error apache logs- there was nothing. Tried changing PHP version on your hosting and clearing Joomla! cache.
Please reach K2 developers directly, maybe they will have another suggestion, so we will be able to check it further.

Janis Miciopulos | Support & System Administrator"
  • Third Sun Productions
  • Third Sun Productions's Avatar
28 Aug 2017 20:26
Replied by Third Sun Productions on topic 2.8 meta tags

2.8 meta tags

Category: English K2 Community

Not sure where you can download old versions, but you can fix it a few different ways: manually insert Meta data in the K2 Item under the Publishing and Metadata tab or disable automatic metadata by putting 0 in the field in K2 Parameters.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
28 Aug 2017 20:05
Replied by Krikor Boghossian on topic 2.8 meta tags

2.8 meta tags

Category: English K2 Community

It is most likely related to plugin event triggering.
K2 properly strips all HTML tags, so the issue might be related to when these plugins are being executed.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
28 Aug 2017 18:51
Replied by Krikor Boghossian on topic Some k2 tags giving 500 error

Some k2 tags giving 500 error

Category: English K2 Community

Try adding the link without the http:// part.
A 500 error is a generic error, please enable error reporting or look at your error_log to see the actual issue.
Displaying 841 - 860 out of 6582 results.

Powered by Kunena Forum