Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • fabio
  • fabio's Avatar
25 Apr 2018 00:20
Replied by fabio on topic Meta Tag Title k2 2.8.0

Meta Tag Title k2 2.8.0

Category: English K2 Community

Ok thanks. I need to choose the meta tag title in a custom way and should not be the same of item's name..
So for example if i want to setup a custom meta tag title in this page?
biasi.fabiotoscano.it/it/component/k2/caldaie/basica-e

Now it's "BASICA E cal" which is the item name but i need a custom different one..

Thank you!
  • Vlad
  • Vlad's Avatar
24 Apr 2018 23:00
Replied by Vlad on topic K2 duplicate URL

K2 duplicate URL

Category: English K2 Community

It is very simple. In the robots.txt write tihs:

Disallow: /component/

And if you want to properly configure robots.txt for Joomla and K2 write this:

User-agent: *
Allow: *Your sitemap URL*
Disallow: /administrator/
Disallow: /bin/
Disallow: /cache/
Disallow: /cli/
Disallow: /component/k2/itemlist/tag/
Disallow: /component/
Disallow: /images/
Disallow: /component/tags*
Disallow: /components/
Disallow: /includes/
Disallow: /installation/
Disallow: /language/
Disallow: /layouts/
Disallow: /libraries/
Disallow: /logs/
Disallow: /tmp/
Disallow: /*%
Disallow: /?start
Disallow: /?
Disallow: /index.php?
Disallow: /*?
Disallow: /index.php*?
Disallow: /item
Disallow: /item/


So there will be no duplicates at all.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
24 Apr 2018 13:57
Replied by Krikor Boghossian on topic Meta Tag Title k2 2.8.0

Meta Tag Title k2 2.8.0

Category: English K2 Community

Hello,
The title is based on the item's title.
You can add the site's title in the title through your site's global settings.
  • fabio
  • fabio's Avatar
24 Apr 2018 01:36
Meta Tag Title k2 2.8.0 was created by fabio

Meta Tag Title k2 2.8.0

Category: English K2 Community

Hello, i need to manage meta tag product title for all products:
biasi.fabiotoscano.it/it/component/k2/caldaie/basica-e

<meta property="og:title" content="BASICA E cal - Biasi Caldaie" />

How can i change it?

I can see only the textarea for the meta description.

Thank you
  • Daily Deals UK
  • Daily Deals UK's Avatar
23 Apr 2018 01:01
Replied by Daily Deals UK on topic Errors in rating stars since updating K2

Errors in rating stars since updating K2

Category: English K2 Community

Sorry ignore this, I forgot to add || $task == 'tag' to modals/item.php

All working now.
  • Daily Deals UK
  • Daily Deals UK's Avatar
22 Apr 2018 13:38 - 22 Apr 2018 23:06
Errors in rating stars since updating K2 was created by Daily Deals UK

Errors in rating stars since updating K2

Category: English K2 Community

Hi

The rating stars show fine in category view but in tag view they are blank. If you click to rate it then loads and looks normal.

Example Cat view (working) >> www.dailydealsblog.co.uk/voucher-codes

Example tag view >> www.dailydealsblog.co.uk/wowcher - once you rate it appears correctly.

I have a load of errors in the log such as....


[22-Apr-2018 21:00:55 Europe/London] PHP Notice: Undefined property: stdClass::$votingPercentage in /home/dailydealsblogco/public_html/components/com_k2/templates/default/tag.php on line 75

[22-Apr-2018 21:00:55 Europe/London] PHP Notice: Undefined property: stdClass::$numOfvotes in /home/dailydealsblogco/public_html/components/com_k2/templates/default/tag.php on line 82

These just repeat in the log for miles

I added the rating stars in ages ago and was all working fine until the update. here's the code:

<div class="catItemRatingBlock">
<span><?php echo JText::_('K2_RATE_THIS_ITEM'); ?></span>
<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="#" rel="<?php echo $item->id; ?>" title="<?php echo JText::_('K2_1_STAR_OUT_OF_5'); ?>" class="one-star">1</a></li>
<li><a href="#" rel="<?php echo $item->id; ?>" title="<?php echo JText::_('K2_2_STARS_OUT_OF_5'); ?>" class="two-stars">2</a></li>
<li><a href="#" rel="<?php echo $item->id; ?>" title="<?php echo JText::_('K2_3_STARS_OUT_OF_5'); ?>" class="three-stars">3</a></li>
<li><a href="#" rel="<?php echo $item->id; ?>" title="<?php echo JText::_('K2_4_STARS_OUT_OF_5'); ?>" class="four-stars">4</a></li>
<li><a href="#" rel="<?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>
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
18 Apr 2018 16:27
Replied by Krikor Boghossian on topic Display tag pages same as category pages

Display tag pages same as category pages

Category: English K2 Community

Hello Villy,

By default the tags are not available in this view github.com/getk2/k2/blob/master/components/com_k2/models/item.php#L96

You can add them to the tags by adding the appropriate view check || ($view == 'itemlist' && $task == 'tag')
and the tags will be available.

PS, You are missing a <li> tag.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
16 Apr 2018 17:04
Replied by Krikor Boghossian on topic Default image for Items what don't have image

Default image for Items what don't have image

Category: English K2 Community

Hello,
You would need to override the item.php, category_item.php tag.php, user.php and generic.php files getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

A starting point for your code would be
github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L90-L99
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
13 Apr 2018 13:01
Replied by Krikor Boghossian on topic Specific module

Specific module

Category: English K2 Community

Hello Charly,

The K2 content module can pull items from certain tags.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
11 Apr 2018 17:43
Replied by Krikor Boghossian on topic Meta Description & Meta Keys

Meta Description & Meta Keys

Category: English K2 Community

Are you using meta tags in your category's description?
Both the K2 category and the menu item?
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
10 Apr 2018 12:59
Replied by Krikor Boghossian on topic how to use schema in my website

how to use schema in my website

Category: English K2 Community

Hello James,
You will need to override the item.php file
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

The available tags can be found here: schema.org/

You can use this solution as a guide (DO NOT USE any PHP code since this is related to another version of K2)
github.com/kricore/Advanced-templating-with-K2/blob/master/default/item.php
  • George Nasis
  • George Nasis's Avatar
04 Apr 2018 09:45
Replied by George Nasis on topic Change K2 Item view for Extra Fields

Change K2 Item view for Extra Fields

Category: English K2 Community

Hi Krikor,

many thanks for your interest.

It was so easy finally..I had just to add the li tags of every ingredient and to add rows at the extra field properties (I used textarea) :D :D :D

I give this info if someone else wants to achieve this

Thanks again!
  • Syed Raza Naqvi
  • Syed Raza Naqvi's Avatar
03 Apr 2018 21:24
k2 to com_content Issue was created by Syed Raza Naqvi

k2 to com_content Issue

Category: English K2 Community

hi

I have more than 32,000 items , problem is when I started web site I have changed k2 core how image was renamed with watermark.

I used below code to save images without md5:
$handle->file_new_name_body = $row->alias.$row->id; .md5("Image".$row->id). change to .$row->alias.$row->id. md5("Image".$current->id) change to .$row->alias.$row->id. .md5("Image".$item->id). change to .$row->alias.$row->id. .md5("Image".$news_id). change to .$row->alias.$row->id.

Now I am migrating to WordPress and when converting items to content....Images can not be transferred to content even FG joomla is unable to import k2 images, and JA plugin k2 to content migration plugin also failed. in plugin I am using following code;
/** * Get the featured image * * @param int $item_id Item ID * @return string Image name */ private function get_featured_image($item_id) { $found_image_name = ''; [b]$image_md5 = ("p.alias" . $item_id);[/b] // Try to get the original image in the src folder $image_name = 'media/k2/items/src/' . $image_md5 . '.jpg'; $image_url = trailingslashit($this->plugin->plugin_options['url']) . $image_name; if ( $this->plugin->url_exists($image_url) ) { $found_image_name = $image_name; } else { // if the featured image doesn't exist in the src folder, try to get the XL image in the cache folder $image_name = 'media/k2/items/cache/' . $image_md5 . '_XL.jpg'; $image_url = trailingslashit($this->plugin->plugin_options['url']) . $image_name; if ( $this->plugin->url_exists($image_url) ) { $found_image_name = $image_name; } } return $found_image_name; }

or
private function _convertK2Items($batch = 50) { $k2items = $this->fetchItems($batch); // select items with cat and extra fields condition. $numItems = count($k2items); if (!$numItems) { return 0; } $qi_q = 'INSERT INTO #__content_meta (id, content_id, meta_key, meta_value , encoded) VALUES '; $qi_v = array(); $count=0; foreach ($k2items AS $k => $v) { $tags = array(); $assoc = $this->checkAssociation($v->id, 'item'); if (!$assoc) { // Copy Image from K2. if (JFile::exists(JPATH_ROOT . '/media/k2/items/src/' . 'alias' . $v->id . '.jpg')) { JFolder::create(JPATH_ROOT . '/images/joomlart/article/'); // create recusive folder. copy('../media/k2/items/src/' . 'alias' . $v->id . '.jpg', '../images/joomlart/article/' . 'alias' . $v->id . '.jpg'); $images = array( 'image_intro' => 'images/joomlart/article/' . 'alias' . $v->id . '.jpg', 'float_intro' => '', 'image_intro_alt' => $v->image_caption, 'image_intro_caption' => $v->image_credits, 'image_fulltext' => 'images/joomlart/article/' . 'alias' . $v->id . '.jpg', 'float_fulltext' => '', 'image_fulltext_alt' => $v->image_caption, 'image_fulltext_caption' => $v->image_credits ); $images = json_encode($images); } else $images = ''; // Convert Tag id from k2 to new id. if ($v->tags_id != NULL) { $tags_id = explode(',', $v->tags_id); foreach ($tags_id AS $tg) { $tag = $this->checkAssociation($tg, 'tag'); if($tag) { $tags[] = $tag->key; } } } 
please tell me how can i force plugin to find images with naming alias.itemid.jpg.....please
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
02 Apr 2018 14:30
Replied by Krikor Boghossian on topic Is it possible to link K2 item title to open another URL

Is it possible to link K2 item title to open another URL

Category: English K2 Community

Hello,

You can use an extrafield in order to replace the default link.
You will need to edit your overrides (category_item.php, tag.php, generic.php etc..)
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

How to render a specific extrafield:
github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L169-L173
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
02 Apr 2018 14:30
Replied by Krikor Boghossian on topic Is it possible to link K2 item title to open another URL

Is it possible to link K2 item title to open another URL

Category: English K2 Community

Hello,

You can use an extrafield in order to replace the default link.
You will need to edit your overrides (category_item.php, tag.php, generic.php etc..)
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

How to render a specific extrafield:
github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L169-L173
  • aarokkiyam
  • aarokkiyam's Avatar
29 Mar 2018 22:56
Replied by aarokkiyam on topic What is K2 unique id for article

What is K2 unique id for article

Category: English K2 Community

Context: ..../catagery/itemid-alias.html

URL:
www.inneram.com/india/16431-flight-accident-in-hyderabad.html

JS integration: docs.vuukle.com/how-to-embed-vuukle-2.0-via-js/
<script> var VUUKLE_CONFIG = { apiKey: "Place Your API Key Here", articleId: "Generate Unique id for your article", img: "Article image URL", tags: "Up to 3 tags separated by comma", }; // ⛔️ DON'T EDIT BELOW THIS LINE (function() { var d = document, s = d.createElement('script'); s.src = 'https://cdn.vuukle.com/platform.js'; (d.head || d.body).appendChild(s); })(); </script>

Thank you in advance.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
29 Mar 2018 17:39
Replied by Krikor Boghossian on topic What is K2 unique id for article

What is K2 unique id for article

Category: English K2 Community

Hello,
I have answered your previous post.
You can use the item's id. You can also look at the item.php's code and get the code for the item's image and the loop that generates the tags.
  • aarokkiyam
  • aarokkiyam's Avatar
29 Mar 2018 13:37
What is K2 unique id for article was created by aarokkiyam

What is K2 unique id for article

Category: English K2 Community

Hi, I am a newbie to K2 implementing Vuuke commenting platform in K2 articles.
I am looking for help to fill the below K2 params for articleId, img, tags.
Appreciate your support.
<script> var VUUKLE_CONFIG = { articleId: "Generate Unique id for your article", img: "Article image URL", tags: "Up to 3 tags separated by comma", }; // ⛔️ DON'T EDIT BELOW THIS LINE (function() { var d = document, s = d.createElement('script'); s.src = 'https://cdn.vuukle.com/platform.js'; (d.head || d.body).appendChild(s); })(); </script>
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
26 Mar 2018 14:31
Replied by Krikor Boghossian on topic why k2 tags are being recorded by joomla redirect component

why k2 tags are being recorded by joomla redirect component

Category: English K2 Community

The redirect component will redirect ALL requests from all components, not just the core ones.
For these errors you need a manual rule in your htaccess file. Alternatively you can use an SEO extension which supports K2 and will handle these redirects.
  • Sori
  • Sori's Avatar
23 Mar 2018 23:37

why k2 tags are being recorded by joomla redirect component

Category: English K2 Community

Oh I found my previous account.

I am still having the same problem and since I can not do anything about caching do you think I can change the 404 not found tags to be redirected to a keyword search for example?
I have lots of these errors as you can see in the following picture and if I can do something about them it would be great.
https://imgur.com/a/jySvZ
Displaying 681 - 700 out of 6582 results.

Powered by Kunena Forum