Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
14 Feb 2017 12:25
Replied by Krikor Boghossian on topic K2 Tags integrate with Joomla core Tags?

K2 Tags integrate with Joomla core Tags?

Category: English K2 Community

Hello Jenn,

Unfortunately there is no such way.
  • bayareajenn
  • bayareajenn's Avatar
13 Feb 2017 21:00
K2 Tags integrate with Joomla core Tags? was created by bayareajenn

K2 Tags integrate with Joomla core Tags?

Category: English K2 Community

Hi there,

I'm wondering if there is any way to integrate K2 Tags with Joomla Core Tags. Is there?

Thanks in advance.

Jenn
  • Valentine Solo
  • Valentine Solo's Avatar
12 Feb 2017 19:52
Custom K2 RSS with JSON data decode was created by Valentine Solo

Custom K2 RSS with JSON data decode

Category: English K2 Community

Few weeks ago I had to build a custom RSS feed for external service (note: NOT W3C compliant). And I did it with K2 json output: url?format=json
Here is the code itself, in case someone will face the same task.
<?php header("Content-Type: application/rss+xml; charset=UTF-8"); $rssfeed = '<?xml version="1.0" encoding="UTF-8"?>'. "\n"; $rssfeed .= '<rss version="2.0" xmlns="http://backend.userland.com/rss2">'. "\n"; $rssfeed .= '<channel>'. "\n"; $rssfeed .= '<title>My domain</title>'. "\n"; $rssfeed .= '<link>https://mydomain.com</link>'. "\n"; $rssfeed .= '<description>My feed description.</description>'. "\n"; $url = "https://mydomain.com/allnews?format=json"; $content = file_get_contents($url); $json = json_decode($content, true); foreach (array_slice($json['items'],0,25) as $item) { // Use $field and $value here $rssfeed .= '<item>'. "\n"; $rssfeed .= '<title><![CDATA[' . $item['title'] . ']]></title>'. "\n"; $rssfeed .= '<link>https://mydomain.com' . $item['link'] . '</link>'. "\n"; // adding domain to get the full url $intro = html_entity_decode($item['introtext']); $intro = str_replace('&nbsp;', '', $intro); $intro = strip_tags($intro); $rssfeed .= '<description><![CDATA[' . $intro . ']]></description>'. "\n"; $date = new DateTime($item['modified']); $date->modify('+2 hours'); //my K2 returns pubdate (modified) in UTC format, so I had to add time zone difference in hours $rssfeed .= '<pubDate>' . $date->format("D, d M Y H:i:s +0200") . '</pubDate>'. "\n"; $fulltext = html_entity_decode($item['fulltext']); $fulltext = str_replace('&nbsp;', ' ', $fulltext); $fulltext = strip_tags($fulltext); $rssfeed .= '<yandex:full-text><![CDATA[ ' . $fulltext . ']]></yandex:full-text>'. "\n"; $rssfeed .= '</item>'. "\n"; } $rssfeed .= '</channel>'. "\n"; $rssfeed .= '</rss>'; echo $rssfeed; ?>

Hope, it will be useful
  • Nate Hunter
  • Nate Hunter's Avatar
10 Feb 2017 22:44
SEO and Alt text issues Again! lol was created by Nate Hunter

SEO and Alt text issues Again! lol

Category: English K2 Community

OK so I am doing an SEO Audit and I need to make it so that the item image caption is made into the image alt text.
We are using the K2 image cache so the image names look like gobbledygook so the Alt tag becomes super important. Also, since the site was built, none of the images have any alt text associated with them so I need to do this asap. (a google seo audit made this abundantly clear.

So a programmatic answer is better than manually adding alt text to every image.

I saw and implemented the code from

I created a new field with the alias of ImgAlt

I put this code in the file in k2/models/item.php
function prepareFeedItem(&$item) { JTable::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR.DS.'tables'); $params = K2HelperUtilities::getParams('com_k2'); $limitstart = 0; $view = JRequest::getCmd('view'); //Category $category = JTable::getInstance('K2Category', 'Table'); $category->load($item->catid); $item->category = $category; $item->extra_fields = $this->getItemExtraFields($item->extra_fields->ImgAlt, $item); /*added by Nate 2/16 to ad alt attribute to SHB K2 editor see this link for details https://www.joomlaworks.net/forum/k2-en/47198-replace-k2-rss-image-with-an-extra-field-value*/
This worked beautifully but I realized that this is an extra step, on a separate tab, and my client will most likely forget to do this regularly.

So what I would like to do is make it a seamless workflow for my client. and since they already use the Item image Caption field I thought it would be easier to just make the caption the alt text.

I'm just not a PHP guru so not really sure how to accomplish this.

Thanks for your help!

P.S. Why is this not a core enhancement yet? I have seen posts in the forum going back to 2011 on this topic.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
10 Feb 2017 14:23
Replied by Krikor Boghossian on topic Are K2 Tags bad for SEO?

Are K2 Tags bad for SEO?

Category: English K2 Community

You will not get duplicate content if you handle your content carefully.
  • Alex Radin
  • Alex Radin's Avatar
10 Feb 2017 08:25
Replied by Alex Radin on topic Are K2 Tags bad for SEO?

Are K2 Tags bad for SEO?

Category: English K2 Community

I would have to agree this is a duplicate content problem and not good for SEO. It is however very good for the user to be able to search by tags.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
09 Feb 2017 18:38
Replied by Krikor Boghossian on topic K2 Article pasting issue

K2 Article pasting issue

Category: English K2 Community

This is the editor's (and the plugin's most likely) behaviour.
Make sure you are copying any explicit tags.
  • Geoff R
  • Geoff R's Avatar
03 Feb 2017 08:02
K2 Breadcrumbs - Remove Site Title? was created by Geoff R

K2 Breadcrumbs - Remove Site Title?

Category: English K2 Community

In my Joomla config I have it set so that the Site Title appears in the Browser Title WIndow. However, this is also appearing in my K2 Breadcrumbs on the Tags results page.

How can I remove it?

thanks,
Geoff
  • AIS Web Team
  • AIS Web Team's Avatar
01 Feb 2017 17:14
Output file path from extra image fields was created by AIS Web Team

Output file path from extra image fields

Category: English K2 Community

Hello all,

We are building a site using the K2 Extra Fields and would like to have the user upload an image to be used as a custom background image. For this to work effectively, we would need to output JUST the image path, rather than a full image tag.

Is there a way that do this, or an equally simple alternative such as a file upload that just renders the path?

(the end users aren't exactly web-savvy, so asking them to locate a file and copy the relative path into a text file is akin to open heart surgery)

Your help is much appreciated!
  • Craig Bishop
  • Craig Bishop's Avatar
30 Jan 2017 21:29 - 30 Jan 2017 21:36
K2 Tags & custom URLs was created by Craig Bishop

K2 Tags & custom URLs

Category: English K2 Community

Hello,

For simplicity, I'll describe my issue as follows...

I have two K2 categories, "Cat A", and "Cat B". The categories do have a common Parent Category. Within both cateogories, I have K2 Items, each possessing the tag "apple"

OBJECTIVE: On different areas of my site, I want to distinguish between the tag "apple" within "Cat A" vs. the same tag within "Cat B".

To accomplish the differentiation, I created Menu A and Menu B.
* Menu A contains an item (K2 » Item listings » Tag) with Select Tag "apple" using Filter Category "Cat A", URL: /tag-apple-in-cat-a
* Menu B contains an item (K2 » Item listings » Tag) with Select Tag "apple" using Filter Category "Cat B", URL: /tag-apple-in-cat-b

I use K2 Tools to create "Module A" and "Module B" to define and render the Tag Clouds. For each, I use the Tag Clouds Settings. "Module A" filters by "Cat A" and "Module B" filters by "Cat B".

On "Page 1", I assign "Module A" and it renders the "apple" Tag. On "Page 2", I assign "Module B" and it renders the "apple" Tag.

The expected & desired result was that "apple" Tag on "Page 1" would link to URL: /tag-apple-in-cat-a & the "apple" Tag on "Page 2" would link to URL: /tag-apple-in-cat-b

When I mouse over the "apple" Tag on the respective pages, it's apparent to me that the "# items tagged" counts are accurate, yet the URLs are identical, i.e. /tag-apple-in-cat-a (only).

Originally, I had both Menu Items (K2 » Item listings » Tag) in the same Menu. It's apparent to me that the Menu Item (and associated URL) that is ordered / found first is used (without respect to the Filter Category specified within the Menu Item (K2 » Item listings » Tag).

Admittedly, I'm rather new to using K2 / tags. Is this a bug, or am I misunderstanding or misusing?

Thanks, in advance. Any schooling or help is much appreciated!

Craig
  • Joe Campbell
  • Joe Campbell's Avatar
27 Jan 2017 19:59
Replied by Joe Campbell on topic TAG URL

TAG URL

Category: English K2 Community

Try using Canonical Links for K2:
extensions.joomla.org/extension/canonical-links-for-k2/

It redirects all orphan tags and handles all other potential canonical issues that can impact your SEO.

The developer is awesome. He responds promptly and strives to continuously improve the extension.
  • maiky
  • maiky's Avatar
27 Jan 2017 18:50
Replied by maiky on topic TAG URL

TAG URL

Category: English K2 Community

I have create a menu item and assign to k2 category without selecting a category.

And solve this URL.

Now the URL show the menu alias replacement of /component/k2/ part.

Thanks a lot
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
27 Jan 2017 16:19
Replied by Krikor Boghossian on topic TAG URL

TAG URL

Category: English K2 Community

Hello,

You can use K2's advanced SEF in order to remove the /component/k2/ part.

Alternatively you can create a blank K2 categories menu item and have in order to have all orphan tags and users render through that menu.
  • Marco Reyes
  • Marco Reyes's Avatar
26 Jan 2017 21:39
How to fix this K2 erros was created by Marco Reyes

How to fix this K2 erros

Category: English K2 Community

Hi every body i need help

I had it a website using k2 for many other reasons the website got destroyed and i had it to redo it

Now in google webmaster tools i am having this erros from K2 old component on the website any body does it know how to do this redirect

Please

Erros i want to redirect to my main website page www.website.com for example
en/index.php?option=com_k2&view=itemlist&task=user&id=552
en/index.php?option=com_k2&view=itemlist&task=user&id=693

and 24 more

other errors don't know how to reditect i want to redirect to my main website page www.website.com for example
en/services/personal-computer-maintenance.html?print=1&tmpl=component
en/tag/web-developers/feed.html?type=rss
en/tag/web-developers/feed.html?type=atom


Please any body
  • Werner
  • Werner's Avatar
25 Jan 2017 11:59 - 25 Jan 2017 12:02

K2 version 2.7.1 Showing various items like K2 ITEM AUTHOR

Category: English K2 Community

Hello,

I need a help, I'm developing a website for a client.

At the moment this site is local on my machine I am using wamp, I installed the latest version of Joomla 3.6.5 and the last version of K2 2.7.1, but some unwanted items are appearing like: K2_ITEM_AUTHOR - K2_TAGGED - K2_THE_FIRST_TO_COMMENT - K2_VIEWS - K2_LEAVE_YOUR_COMMENT ... and others.

See the images

Imagen1
Imagen2

can you help me?
  • maiky
  • maiky's Avatar
19 Jan 2017 13:53
TAG URL was created by maiky

TAG URL

Category: English K2 Community

Hello there, please i need help.

I have more than 100 users on my site which are access to create and publish item on it.

When i display a TAG module, from the home page i get this URL

domaine.com/component/k2/tag/Diaporama

Diaporama is the TAG item i selected.

I activated the Joomla url rewrite.

This url is not appropriate. How can I solve this?
  • Site Wide Design
  • Site Wide Design's Avatar
17 Jan 2017 17:09
Remove URLs frpm K2 print preview - k2.print.css was created by Site Wide Design

Remove URLs frpm K2 print preview - k2.print.css

Category: English K2 Community

Hi Guys,
I am having an issue when clicking print - the URLs within the page are showing in full, not just the display text between the <a> tags.
Now i have added the following to the k2.print.css but it is not taking effect.
a { display:none; }

I have tried adding important also, but the links are still being shown regardless, how can i force-ably remove them completely when printing? Or at least only show the linked text not the url?

Regards
Donna
  • Lee Tempest
  • Lee Tempest's Avatar
17 Jan 2017 16:16
All videos media embed was created by Lee Tempest

All videos media embed

Category: English K2 Community

Help,
I have the AllVideos plugin installed and active.

In the media tag within K2 I'm trying to add:

{youtube}XXXX{/youtube}
{youtube}XXXX{/youtube}

But when I save the Item this gets removed.

How can I use the plugin to add more videos?

I do not want to add videos to the main text as I'm displaying the video in a different part of the page than the main text.


Lee
  • burnyourears
  • burnyourears's Avatar
16 Jan 2017 22:42
Replied by burnyourears on topic Merge k2 tags with different syntax but same content

Merge k2 tags with different syntax but same content

Category: English K2 Community

Hi Krikor,

hehe, thanx – seems you like good music, too ;-)

Puh, doing that in the database is too much work and too complicated, I guess ... with all that reference-numbers.
Too sad. Or do I miss something? :/
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
16 Jan 2017 19:40
Replied by Krikor Boghossian on topic Open Graph support for Facebook Image choice

Open Graph support for Facebook Image choice

Category: English K2 Community

Hello,

By default the necessary OG tags are being printed.
Make sure that you are using the correct image size for K2's image. This setting is located in K2's settings. The image should be at least 200x200px.
Displaying 1001 - 1020 out of 6582 results.

Powered by Kunena Forum