Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Pei Ling Lin
  • Pei Ling Lin's Avatar
01 Oct 2010 05:07
K2 Categories and Tags was created by Pei Ling Lin

K2 Categories and Tags

Category: English K2 Community

Hi, I'm a content manager trying to figure the structure out.
What are the relationships between menu, categories and tags?
I need to take meta descriptions into considerations, but there's no meta description options in "Category" I could only choose tag for a certain menu option?
If I choose "tag" for a menu option, can i keep one article always on top and the rest in order of latest posts?

Thanks so much! I am so lost!
  • Robin Nonnweiler
  • Robin Nonnweiler's Avatar
01 Oct 2010 01:33
Replied by Robin Nonnweiler on topic What in Gods Name are Tags Used for in K2?

What in Gods Name are Tags Used for in K2?

Category: English K2 Community

Hi,

i have a problem with my tags on my items and I hope someone can help me.
If i click on the tag, which is listed under my item, an error 500 (in german: "500 - Seitenansicht nicht gefunden [Name, Typ, Präfix]: itemlist,html,tagView" ) occures. Has anyone an idea to fix it?

Thanks!
Robin
  • naftilos
  • naftilos's Avatar
30 Sep 2010 16:53
Replied by naftilos on topic mod_k2_tools search works poorly.

mod_k2_tools search works poorly.

Category: English K2 Community

I have the same problem. How do we search for all words or exact phrase in k2 tools module?


Linda Cronsten said:Well, I updated k2 to 2.41 and still no change. Someone must be looking in to this? Am I doing something wrong? I can't even get the tags to show when I search. :-(
  • stavroch
  • stavroch's Avatar
30 Sep 2010 12:09
Upgrade from v2.2 to v2.4.1 error (?) was created by stavroch

Upgrade from v2.2 to v2.4.1 error (?)

Category: English K2 Community

I had the v2.2 and I upgrade it to v.2.4.1 without follow the instructions that you describe on the community.getk2.org/notes/index/show?noteKey=Upgrading_from_K2_v2.0_%22prerelease%22_to_v2.0_build_20090806_%22stable%22I just install the new version as a new component installation.After this I found many errors on the plugins/k2/k2jomcomments.php on line 66One bug that I found is that the link of tags has this error page"
Fatal error: Call to undefined function jcCountComment() in /home/XXX/public_html/plugins/k2/k2jomcomments.php
on line 66"
  • Justin White
  • Justin White's Avatar
29 Sep 2010 19:01
Replied by Justin White on topic Leading space in tags

Leading space in tags

Category: English K2 Community

We were having issues with duplicate tags, one having an inadvertant space. To fix this we edited /administrator/components/com_k2/models/item.php

We changed line 579 to:

$tag = str_replace('-','',$tag);

// MMJ hack removes leading and trailing and double spaces before checking to see if tag already exists
$pat[0] = "/^\s+/";
$pat[1] = "/\s{2,}/";
$pat[2] = "/\s+\$/";
$rep[0] = "";
$rep[1] = " ";
$rep[2] = "";
$tag = preg_replace($pat,$rep,$tag);
$tag = strtolower ($tag);

Suit your self if you want the last line, which forces tags to be lowercase. We are using k2 2.4.1
  • carl j
  • carl j's Avatar
29 Sep 2010 16:51
Replied by carl j on topic K2 Tag display module in grid view [solved]

K2 Tag display module in grid view [solved]

Category: English K2 Community

Hi Jone, please do let me know if you have found a solution, it is precisely what I'm trying to do myself…
Thanks!
Mathias
  • george kelly
  • george kelly's Avatar
28 Sep 2010 22:24
Replied by george kelly on topic Text before read more button is large...

Text before read more button is large...

Category: English K2 Community

Troponin said:Change the div Tag in your k2.css Filediv.itemIntroText {color:#444444;font-size:18px;font-weight:bold;line-height:24px;padding:4px 0 12px;}


Thanks so much...you really helped.
  • troponin
  • troponin's Avatar
28 Sep 2010 22:13
Replied by troponin on topic Text before read more button is large...

Text before read more button is large...

Category: English K2 Community

Change the div Tag in your k2.css File

div.itemIntroText {
color:#444444;
font-size:18px;
font-weight:bold;
line-height:24px;
padding:4px 0 12px;
}
  • Linda Cronsten
  • Linda Cronsten's Avatar
28 Sep 2010 16:17
Replied by Linda Cronsten on topic mod_k2_tools search works poorly.

mod_k2_tools search works poorly.

Category: English K2 Community

Well, I updated k2 to 2.41 and still no change. Someone must be looking in to this? Am I doing something wrong? I can't even get the tags to show when I search. :-(
  • Kevin Smith
  • Kevin Smith's Avatar
28 Sep 2010 02:33
K2 Module was created by Kevin Smith

K2 Module

Category: English K2 Community

Is there a module that we can use to list just featured articles? I would like to be able to show all featured articles in a list on my side bar, if there is not where can I request it? Next question is there a way to make k2 content module show the featured stamp/tag?Thanks in advanced.
  • Kevin Smith
  • Kevin Smith's Avatar
28 Sep 2010 02:20
Replied by Kevin Smith on topic K2 Content module Pagination and Featured

K2 Content module Pagination and Featured

Category: English K2 Community

I know this post is a bit old, and it may have been implemented but I cant seem to see it however I agree on the featured tag showing up on the k2 content mod.
  • George Vouliakis
  • George Vouliakis's Avatar
26 Sep 2010 09:15
Auto-append of the first 150 words - K2 v.2.3 was created by George Vouliakis

Auto-append of the first 150 words - K2 v.2.3

Category: English K2 Community

Dear Simon,

 

I've already upgraded my K2 to v.2.3 (www.travelfree.gr) but the auto-append of the first 150 words in meta description tag of my new items does not work. (I'm adding items only from back-end). I checked the global parapameters of K2 and they seem to be Ok (SEO Setting: 150 words as limit for auto generated meta description tag).

 

Any ideas? 

 

Thanks in advance!

 

George

 

 
  • jmarvin
  • jmarvin's Avatar
25 Sep 2010 09:51
Replied by jmarvin on topic K2 Item Title Spaces, BUG?

K2 Item Title Spaces, BUG?

Category: English K2 Community

I had this problem and fixed it by removing the spaces & carriage returns between the h1 tag and the anchor in the override template.

/templates/templatename/html/com_k2/templates/default/category_item.php (forinstance)

item->link; ?>">
  • krmr
  • krmr's Avatar
23 Sep 2010 19:24
Replied by krmr on topic K2 item in Multiple Categories

K2 item in Multiple Categories

Category: English K2 Community

@Svein Wisnaes
Using tags to organise content is for sure lot more flexible, but there comes the tags view in k2, that is so much more limited than the catview. No author is displayed in tags view (the generic.php template) for example? And that is simply not acceptable in certain site formats. like a publication
  • Samuel Carbo III
  • Samuel Carbo III's Avatar
23 Sep 2010 17:46
Replied by Samuel Carbo III on topic How to export K2 contents back to Joomla contents

How to export K2 contents back to Joomla contents

Category: English K2 Community

How do you do this? I've got 300 articles to move back to the joomla core. I'm not php savey at all so how would I go about doing something like this, all I care about right now is the article title, the article, the meta data, and the number of hits the article has had if possible.

David R. said:An export to Joomla articles from K2 items would be a lossy proposition. What would you do about attached images, videos and tags, not to mention the fact that you can have a tree of categories, where Joomla doesn't support that idea at all. What would you do with the data from any custom fields you added?K2 was designed to address a lot of the things that are missing from Joomla articles. If I needed to do this myself, I'd go into phpMyAdmin and write a simple query to select out the needed fields and insert them into the joomla article table.
  • Linda Cronsten
  • Linda Cronsten's Avatar
23 Sep 2010 15:39
mod_k2_tools search works poorly. was created by Linda Cronsten

mod_k2_tools search works poorly.

Category: English K2 Community

Hi.I've finished setting up a subpage on one of my sites using K2. It's a subpage where students can search for programs and courses and other educational ways to get into food science. I've only used k2 on this particular subpage, just because I wanted to have a closed system that could be searched exclusively on educations. The problem is that the search tool works so poorly. I get different results when searching for tags and words in the content. Right now, it looks like it doesn't even search the tags at all. I use the  2.2 version.I've rummaged through the forum looking for a solution. I've tried using the 2.1 plugin version, with no luck. So now I just don't know what to do. It's imperative that the search engine works, and since I don't want to include the rest of my site in this search I have to use the mod_k2_tool. The site is in Swedish but heres a link:  www.livsmedelssverige.se/hem/utbildningar.html?layout=itemFor example: I have a tag called Biologi (biology) and if I search the term Biologi I get 7 hits, but if I turn on the tag cloud and click on the tag "Biologi" I get 30 hits. If I search for Göteborg (Gothenburg) I get 5 hits, but I have 53 articles tagged with the name, and so on. If I search the words Livsmedel (food) and Uppsala, the first result I get is a course about foodbiology in Kristianstad, and its not until search post number 5 that I get a result containing the words Livsmedel and Uppsala. I've tried using + &  AND but I just get the same result. I try searching for the term SLU and I get not a single hit, and yet the programs and courses are set up like this International Food System Analysis - SLU and then tagged under the word SLU, and still no hits. Very odd...I'm pulling my hair on this one. I Love K2 and I've ended up using it solely on two of my site so I really want this to work. :-) Please help me.
  • karsh
  • karsh's Avatar
23 Sep 2010 07:51

Tag "<?php" removed from content area with v2.4

Category: English K2 Community

Hi,I use the plugin Sourcerer to add php code do thousands of items in K2. I just updated do v2.4 and suddently the initial tag &lt;?php gets removed. So if I enter:{source}&lt;?phpecho "Hello world!";?&gt;{/source}and press Apply, it shows:{source}echo "Hello world!";?&gt;{/source}Regards.
  • Marcos Ortega Miranda
  • Marcos Ortega Miranda's Avatar
22 Sep 2010 23:15
Some minor DB optimizations... was created by Marcos Ortega Miranda

Some minor DB optimizations...

Category: English K2 Community

I've had a look at K2's DB performance and found that there are some optimizations that could be made:Some indexes for better/faster access:ALTER TABLE `jos_k2_comments` ADD INDEX
`pub_id` (`published`, `itemID`);
ALTER TABLE `jos_k2_tags` ADD INDEX
`pub_id` (`published`, `id`);
ALTER TABLE `jos_k2_items` ADD INDEX
`state_access` ( `published` , `trash` , `access` , `publish_up` , `publish_down`
, `catid`, `featured`, `created` DESC);        
In the file /components/com_k2/models/item.php line 779, change$query="SELECT * FROM #__k2_tags as tags WHERE tags.published=1 AND tags.id IN (SELECT tagID FROM #__k2_tags_xref WHERE itemID=".(int)$itemID.")";for $query="SELECT * FROM #__k2_tags as tags JOIN #__k2_tags_xref ON tags.id = tagID AND tags.published=1 AND itemID=".(int)$itemID;
  • Andrew Holden
  • Andrew Holden's Avatar
22 Sep 2010 23:03

Google Detects Duplicate Titles and Description Meta Tags with K2

Category: English K2 Community

Hi Badrun,

I'd say your best bet is to submit a site map to Google web master tools. It didn't *fully* fix the issue, but it did help a lot with our site.

Alternatively, you could specify a wildcard noindex, nofollow in your site's Robot.txt file, for tag-generated links. Or you could try to modify K2's PHP to describe canonical links for your articles, although I explored that and it seems to be a bit tricky - possibly more trouble than it is worth.

badrun badranaya said:Hi Lefteris, thanks for the alternative way you offered. I just can't do that because too many tags on my site. And increased each day...

Duplication not only on the tag view, it also happened on user view.
  • Ivo Apostolov
  • Ivo Apostolov's Avatar
22 Sep 2010 21:12

Few suggestions to improve K2 (probably in 2.5)

Category: English K2 Community

This suggestions relate on "on page" site optimization and are proposed after certain tests from one of the local SEO experts here in Bulgaria.
1. Change the behavior of tags in URL.
Currently the tags in URL "as is" meaning that these include spaces, if such exist in the tag. The following proposal concern changing the tag spaces in dashes in the URL, as such addresses generate more content visits (because are more readable) in Google Search results.
So a tag "my nice tag" will have an URL: "my%20nice%20tag" instead of "my-nice-tag"

In order to make it working, we need to hack components/com_k2/helpers/route.php after line 105 and add the following:
// change all spaces to dashes in URL$tag=str_replace(' ','-',$tag);// end hack

2. Add description to tags.
This hack will allow the administrator to add description to the tags (and to tag pages in frontend). This is important because tag pages include content from articles, which basically is considered duplicated content. By adding a description to each tag, this will create unique content.
Now the hack:
First let's add the field to the database. Go to phpMyAdmin and execute:
ALTER TABLE `jos_k2_tags` ADD `description` text

In models/itemlist.php in the function GetData() after line 39 add:

// add description to tagsif ($task == 'tag'){$query .=' ,tags.description as description ';}// end hack

At row 140 of the same file under 

case 'tag':

$tag = JRequest::getString('tag');
we are adding:
// myhack$tag=str_replace(':',' ',$tag);  $tag=str_replace('-',' ',$tag);  // end my hacк
In /views/itemlist/view.html.php after:
//Get items$items = $model-&gt;getData($ordering);
We are adding:
// my hackswitch ($task) {case 'tag':if ($items){echo $items[0]-&gt;description;}break;}// end my hack
In the same file after $document-&gt;setTitle($params-&gt;get('page_title')); on row 299 we are adding:
// my hackswitch ($task) {case 'tag':if ($items){$document = &amp;JFactory::getDocument();$document-&gt;setDescription(strip_tags($items[0]-&gt;description));}break;}// end my hack

After that we go to touch the admin panel and hack administrator/components/com_k2/tables/k2tag.php after $name = null; we add:
// my hackvar $description = null;// end my hack

Then we go to views/tag/tmpl/default.php
After: 
&lt;tr&gt;&lt;td&gt;&lt;?php echo JText::_('Name'); ?&gt;&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="name" id="name" value="" size="50" maxlength="250" /&gt;&lt;/td&gt;&lt;/tr&gt;
We add:
&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;textarea name="description" id="description" rows="10" cols="70" maxlength="8192" /&gt;&lt;?phpecho $editor-&gt;display( 'description', $this-&gt;row-&gt;description, '550', '300', '60', '20', 'true') ;?&gt;&lt;/textarea&gt;&lt;/td&gt;&lt;/tr&gt;

We also add after the defined('_JEXEC') or die('Restricted access'); to add:
$editor =&amp; JFactory::getEditor();

Then we go in  views/tags/tmpl/default.php
we search for &lt;th&gt; &lt;?php echo JHTML::_('grid.sort', JText::_('Name'), 'name', @$this-&gt;lists, @$this-&gt;lists ); ?&gt; &lt;/th&gt;
After it we add:
&lt;th&gt; &lt;?php echo JHTML::_('grid.sort', JText::_('Description'), 'description', @$this-&gt;lists, @$this-&gt;lists ); ?&gt; &lt;/th&gt;
After: &lt;td&gt;&lt;a href='&lt;?php echo $link; ?&gt;'&gt;&lt;?php echo $row-&gt;name;?&gt;&lt;/a&gt;&lt;/td&gt;
We add:
&lt;td&gt;&lt;a href='&lt;?php echo $link; ?&gt;'&gt;&lt;?php echo $row-&gt;description;?&gt;&lt;/a&gt;&lt;/td&gt;
Displaying 5621 - 5640 out of 6582 results.

Powered by Kunena Forum