Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
21 May 2015 13:06
Replied by Krikor Boghossian on topic [SOLVED] Items appears under wrong category

[SOLVED] Items appears under wrong category

Category: English K2 Community

I do not know what created those links.
In order to avoid this issue you need to map all your K2 categories into menu items.

Then create a new empty K2 category menu item (leave the category selection empty) and call it eg: content. This way all orphan tags and users are rendered from that menu item.

Finally you can either set 301 redirects to these links or try to remove them from Google Webmaster tools.
  • Adi Plaut
  • Adi Plaut's Avatar
21 May 2015 12:08
[SOLVED] js error in K2 backend was created by Adi Plaut

[SOLVED] js error in K2 backend

Category: English K2 Community

Hi guys,
I am having a problem in the backend of K2 that seems to be a js conflict.
whenever I access the edit page of an Item I get an alert that says: "Item must have a title", this happens when I try to create a new article, but also when I enter an existing one or clicking the save button (does not happen with save & close). when an closing the alert I can edit everythig without a problem, but it is a bit annoying the have every time. this issue occurs also when editing an extra field or a tag, but does not happen when editing a category.

here is a screenshot of the JS conflict imgur.com/S8J9tgz
that error occurs only in K2 pages.
anyone knows what can cause this?
  • quebecguitare
  • quebecguitare's Avatar
21 May 2015 11:57 - 21 May 2015 12:00
[SOLVED] Tag View or Multicategory Extension was created by quebecguitare

[SOLVED] Tag View or Multicategory Extension

Category: English K2 Community

Hello,

I have a guitar teacher website using K2. Each teacher has a K2 Item with Tags corresponding to what they teach (jazz, classical, acoustic etc.) Each teacher can teach more than one style.

I was using these tags to have the K2 Item (teacher profiles) return in a Tag View when a user click on a link for jazz, classical, acoustic, thus returning the profile of the teacher if the tags match.

However, I would like a view that has just as much options as the Category_View.php. I use a custom template for category view item with K2 Extra Fields. I would like the same view in the tag view.

This seems tedious so I thought of asking:

1. if a Multi category Extension would be a good pick for my scenario?
a. if this is a bad idea for SEO?
b. any possible duplicated links issues?
c. possible problems?

Thank you
Regards
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
19 May 2015 12:15
Replied by Krikor Boghossian on topic facebook share

facebook share

Category: English K2 Community

Yes, this info is generated from your meta tags.
These tags are being generated from Joomla! not from K2.

You need to write your own script if you want to override Joomla!'s behaviour.

Also by accessing Joomla!'s user object you have access to all the (Joomla!) user's info.
  • Joe Campbell
  • Joe Campbell's Avatar
19 May 2015 11:13 - 19 May 2015 11:14
Replied by Joe Campbell on topic [SOLVED] tag same as category item

[SOLVED] tag same as category item

Category: English K2 Community

Hello Amir,

There's two things you need to be mindful of when working with category vs tag override files:

1) Class name: K2 uses a prefix for each view type at the beginning of the class name: tagItemTitle vs. catItemTitle
2) How you render elements (title, extra fields, etc.): tag pages starts with $item-> while category starts with $this->

See highlighted examples below for a comparison...

TAG CODE ::: tag.php

<h2 class="tagItemTitle">
<?php echo $item->extraFields->NAME->value; ?>
<?php echo $item->title; ?>

CATEGORY CODE ::: category_item.php

<h2 class="catItemTitle">
<?php echo $this->item->extraFields->NAME->value; ?>
<?php echo $this->item->title; ?>

I hope this helps,

Joe Campbell
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
18 May 2015 14:40
Replied by Krikor Boghossian on topic facebook share

facebook share

Category: English K2 Community

Hello George,

The author meta tag isn't generated from K2.
This is a core Joomla! feature.
  • ermanno
  • ermanno's Avatar
15 May 2015 12:21 - 15 May 2015 12:22

download degli allegati consentito ai soli utenti registrati

Category: Comunità italiana K2

Salve a tutti,
ho cercato prima di postare se qualcuno avesse avuto in passato come me, questa necessità. Ho trovato un paio di post in questa sezione... ma senza risposta. Mentre nel forum inglese qualcuno spiega come fare ma a me non funziona (sicuramente sbaglio io qualcosa forse perchè la guida è poco dettagliata).
www.joomlaworks.net/forum/k2-en/32630-solved-how-attachment-file-to-give-privilege#144012

Ho poi trovato anche un'altra guida (con spiegazione completamente differente), su altro blog, ma lo stesso autore dice che potrebbe essere una soluzione obsoleta inquanto non testata su joomla 3.0

Qualcuno mi saprebbe aiutare in questo senso?

Ringrazio anticipatamente tutti.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
14 May 2015 19:16
Replied by Krikor Boghossian on topic Linking K2 and Joomla Article Tags

Linking K2 and Joomla Article Tags

Category: English K2 Community

You 're welcome Aaron.
  • Aaron McQueen
  • Aaron McQueen's Avatar
14 May 2015 19:04
Replied by Aaron McQueen on topic Linking K2 and Joomla Article Tags

Linking K2 and Joomla Article Tags

Category: English K2 Community

Ok, thank-you for the information.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
14 May 2015 15:47 - 14 May 2015 15:48
Replied by Krikor Boghossian on topic Forbid links in commens?

Forbid links in commens?

Category: English K2 Community

Sorry I misread the question.
Yes you can strip tags in an extrafield.

Strip_tags will remove (as delete) all your HTML tags (not strings).
If you want to convert it to entities, you need to use another PHP function - htmlentities php.net/htmlentities

Finally this function won't probably help you since what you need is a string replacer.

This is what you should use -> php.net/str_replace
Check the "Example #1 Basic str_replace() examples" section which is exactly what you need.
It will remove every character you do not need.

This method can be used in pretty much all text-related elements of K2.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
14 May 2015 13:07
Replied by Krikor Boghossian on topic Linking K2 and Joomla Article Tags

Linking K2 and Joomla Article Tags

Category: English K2 Community

The only way would be to migrate these articles to K2.
  • Aaron McQueen
  • Aaron McQueen's Avatar
13 May 2015 22:36
Linking K2 and Joomla Article Tags was created by Aaron McQueen

Linking K2 and Joomla Article Tags

Category: English K2 Community

Is there a way to tag a Joomla article and a K2 item and link the two? I'm not finding a way to do this. It looks like my only option will be to import the Joomla articles into K2.

In my case I have a directory of employees built in K2. I'd like to tag Joomla articles with the K2 item to link to that employee item in the directory and for the K2 item to show links to tagged articles.

Thanks in advance for any help with this.
  • Joe Campbell
  • Joe Campbell's Avatar
11 May 2015 16:57
Absolute URL was created by Joe Campbell

Absolute URL

Category: English K2 Community

What is the difference between using K2 absoluteURL vs. JURI current to produce the current page Absolute URL?

<?php echo $this->item->absoluteURL; ?>
<?php echo JURI::current(); ?>

I tried both and realized that the K2 absoluteURL method rendered the URL with a missing slash between .com & category (.comcategory)
Is it because I configured my .htaccess file to remove trailing slashes?

## Remove trailing slash
RedirectMatch 301 ^(.+)/$ $1

Can echo K2 absoluteURL be used for categories, tags, user pages? If so - how?

Will either effect my ability to use urlencode?
  • Joe Campbell
  • Joe Campbell's Avatar
11 May 2015 13:40
Replied by Joe Campbell on topic How to change introtext text area size

How to change introtext text area size

Category: English K2 Community

I ended up hacking the following file:
administrator/components/com_k2/views/items/tmpl/default.php

So now when I go to edit an item, I am presented with only 2 centered tabs (in the following order): Extra Fields & Content.

Best of all, it defaults to the Extra Fields tab which is a time saver. I set my site up where as 85% of the content/data for any given item is stored as an Extra Field (list & item image, title tag, schema, video, gallery, etc.)
  • Red Deer
  • Red Deer's Avatar
08 May 2015 22:35
Replied by Red Deer on topic Hyperlinks in categorie listing

Hyperlinks in categorie listing

Category: English K2 Community

Hi there,

I have the same issue: Links missing from introtext display of category items. Looking at page source, links are indeed stripped that are in the K2 Items.

I thought that setting the Content Cleanup in the K2 parameters as follows was the solution, but no such luck.

Content Cleanup
Introtext HTML cleanup (tag strip) No
Enter wich HTML tags not to strip in intro text Blank
Enter which HTML tag attributes to strip in introtext Blank

I see in Krikor's reply about this same issue from a number of months ago that the advice is to remove the introtext word limit.

However, without limiting the introtext, the entire Item is displayed, defeating the purpose of using Introtext for the Category Item display.

I am not using any special modules. I just want to display only the introtext, including the links that are in the first 100 words.

If stripping the links is the default behavior for Introtext, is there a way to override? I hate to think that I have to buy an extension, but if that's what has to be, please let me know. Using Joomla 3.4 with K2 2.6.9.

Thank you very much!
  • Andreas Heckmann
  • Andreas Heckmann's Avatar
08 May 2015 17:10
Bug? in K2 search Plugin was created by Andreas Heckmann

Bug? in K2 search Plugin

Category: English K2 Community

I tried to activate the "search tags" option. When i did a search on my frontpage a weird sql error appears.

I changed in /plugins/search/k2/k2.php
line 91
to
$quoted = $db->Quote('%'.$escaped.'%', false);


and from line 104 to $querry
if ($phrase == 'exact') { $text = JString::trim($text, '"'); $escaped = K2_JVERSION == '15' ? $db->getEscaped($text, true) : $db->escape($text, true); $quoted = $db->Quote($escaped); $where = " ( LOWER(i.title) = ".$quoted." OR LOWER(i.introtext) = ".$quoted." OR LOWER(i.`fulltext`) = ".$quoted." OR LOWER(i.extra_fields_search) = ".$quoted." OR LOWER(i.image_caption) = ".$quoted." OR LOWER(i.image_credits) = ".$quoted." OR LOWER(i.video_caption) = ".$quoted." OR LOWER(i.video_credits) = ".$quoted." OR LOWER(i.metadesc) = ".$quoted." OR LOWER(i.metakey) = ".$quoted; } else { JArrayHelper::toInteger($itemIDs); $escaped = K2_JVERSION == '15' ? $db->getEscaped($text, true) : $db->escape($text, true); $quoted = $db->Quote('%'.$escaped.'%', false); $where = " ( LOWER(i.title) LIKE ".$quoted." OR LOWER(i.introtext) LIKE ".$quoted." OR LOWER(i.`fulltext`) LIKE ".$quoted." OR LOWER(i.extra_fields_search) LIKE ".$quoted." OR LOWER(i.image_caption) LIKE ".$quoted." OR LOWER(i.image_credits) LIKE ".$quoted." OR LOWER(i.video_caption) LIKE ".$quoted." OR LOWER(i.video_credits) LIKE ".$quoted." OR LOWER(i.metadesc) LIKE ".$quoted." OR LOWER(i.metakey) LIKE ".$quoted; } if ($pluginParams->get('search_tags') && count($itemIDs)) { JArrayHelper::toInteger($itemIDs); $where .= " OR i.id IN(".implode(',', $itemIDs).")"; } $where .= " )";

Mainly the %where lines are altered

Now it works for me!
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
07 May 2015 14:10
Replied by Krikor Boghossian on topic What Happened to K2 3.0?

What Happened to K2 3.0?

Category: English K2 Community

Extrafields, which is a huge asset.
Templating.
Commenting system out of the box.
Galleries and videos in your template and not inside your editor.
Proper tagging (no point in tagging your users or categories.)
User's page
A dozen of option so you can create multiple subtemplates and views.
Optimal Performance

These are just to name a few :)
  • Rabi
  • Rabi's Avatar
07 May 2015 12:19
Replied by Rabi on topic What Happened to K2 3.0?

What Happened to K2 3.0?

Category: English K2 Community

Actually I was thinking, what is the advantage to add k2 to Joomla 3.4.1?

The new Joomla version contains most of thing that k2 offered in the past, perhaps this is the most important thing that we should disscus

Thanking you in advance.
  • Kelsey Brookes
  • Kelsey Brookes's Avatar
07 May 2015 05:04

No Image on Facebook ... No Image, Title, or Description Whe

Category: English K2 Community

Turn off the Author tag in System -> Configuration.

It duplicates that of the K2 author tag and that of any other social plugin including sh404SEF, I've found the only reliable way to get opengraph content to work is to turn this off.
  • V. Edmond
  • V. Edmond's Avatar
06 May 2015 19:20
Filter category items by tag. was created by V. Edmond

Filter category items by tag.

Category: English K2 Community

Hi,

I would like to show in a category, posts that have the same city name tag. Like when I push the "Restaurants" menu button (linked to the restaurants category) I would like to display restaurants only from Tokio for example.

I was trying to achieve this using a query string in the URL: www.mysite.com/restaurants?Tokio, with somone's help I managed to modify the category.php template to show the results I need, but when I test it the itemListPrimary div is always empty and I can't figure out where is the problem.

I really don't now where to ask for help, hope someone could suggest a fix. Thanks!
<div id="itemListPrimary"> <?php foreach ($this->primary as $key=>$item): ?> <?php # Get the value of the "tag" query string $jInput = JFactory::getApplication()->input; $myTag = $jInput->get('tag', null, 'STRING'); // Joomla 1.6+ //$myTag = JRequest::getVar('tag'); // for Joomla 1.5 # If the tag is empty, the query string is not specified and we'll go standard way without any tag filter if (empty($myTag)) { // Define a CSS class for the last container on each row if ((($key+1)%($this->params->get('num_secondary_columns'))==0) || count($this->secondary)<$this->params->get('num_secondary_columns')) $lastContainer= ' itemContainerLast'; else $lastContainer=''; ?> <div class="itemContainer<?php echo $lastContainer; ?>"<?php echo (count($this->secondary)==1) ? '' : ' style="width:'.number_format(100/$this->params->get('num_secondary_columns'), 1).'%;"'; ?>> <?php // Load category_item.php by default $this->item=$item; echo $this->loadTemplate('item'); ?> </div> <?php if(($key+1)%($this->params->get('num_secondary_columns'))==0): ?> <div class="clr"></div> <?php endif; # Otherwise the tag is set so we'll filter the articles by the tag } else { # Get an array of all the tags that the current article in the loop has $articleTags = array(); foreach ($item->tags as $tag) { $articleTags[] = $tag->name; } # Check if the article has the tag specified in the URL as a query string if (in_array($myTag, $articleTags)) { # Now the default content of the foreach loop comes as written in the default K2 category.php template // Define a CSS class for the last container on each row if ((($key+1)%($this->params->get('num_secondary_columns'))==0) || count($this->secondary)<$this->params->get('num_secondary_columns')) $lastContainer= ' itemContainerLast'; else $lastContainer=''; ?> <div class="itemContainer<?php echo $lastContainer; ?>"<?php echo (count($this->secondary)==1) ? '' : ' style="width:'.number_format(100/$this->params->get('num_secondary_columns'), 1).'%;"'; ?>> <?php // Load category_item.php by default $this->item=$item; echo $this->loadTemplate('item'); ?> </div> <?php if(($key+1)%($this->params->get('num_secondary_columns'))==0): ?> <div class="clr"></div> <?php endif; } } ?> <?php endforeach; ?> </div>
Displaying 1881 - 1900 out of 6582 results.

Powered by Kunena Forum