Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • MGS Creativa
  • MGS Creativa's Avatar
05 Apr 2023 22:13
Replacement to addthis was created by MGS Creativa

Replacement to addthis

Category: English K2 Community

Hi! As many of you may know, AddThis is set for termination con May 31 2023. I have managed to add the AddThis toolbar on K2 category items, and in item details as well bus as the service will be terminated, I wonder if there's a replacement.

I actually need to share K2 Articles to Twitter, Instagram and WhatsApp messages

Thanks a lot!
  • JoomlaWorks
  • JoomlaWorks's Avatar
22 Mar 2023 18:24
Replied by JoomlaWorks on topic Joomla DB Compatibility

Joomla DB Compatibility

Category: English K2 Community

downloads.joomla.org/technical-requirements mentions Joomla 3.x is compatible with PgSQL v9+. If you're talking about K2, we haven't had any reports of it not working with PgSQL.

So all I can say is, try in a staging environment to make sure all works as expected. If I were you I would upgrade Joomla to the latest 3.x release first.
  • JoomlaWorks
  • JoomlaWorks's Avatar
07 Mar 2023 12:38 - 07 Mar 2023 12:38

Tag layout needs to only display items from specific category.

Category: English K2 Community

The simplest approach is to create a menu item for that K2 tag and just filter the results based on one or more categories.

It's been there forever :)
  • Litho-Verlag e.K.
  • Litho-Verlag e.K.'s Avatar
03 Mar 2023 13:41
Page has no outgoing links was created by Litho-Verlag e.K.

Page has no outgoing links

Category: English K2 Community

Hello,
for my current project I get an error message from ahrefs.com: Page has no outgoing links
Searching for the error I found the source at K2 news more precisely at "Send link by email to a friend".
www.weidelsburg.de/component/mailto/?tmpl=component&template=tp_brush&link=7aa122cc1a3228127f5200db2f84693af8657253
this comes from this K2 article
www.weidelsburg.de/tag-der-burgen-und-schloesser-28-april-2019
and concerns the parts the link by email...
The more news are posted the more the number of errors grows.
Why does the problem appear only with emails and not with print this message?
What can I change to reduce the growing number of error messages?
using:
K2  v2.11 Build 002230112 with jomla 3.10.11 php 8.2

Greetings
Litho
  • owardlybiryani
  • owardlybiryani's Avatar
12 Dec 2022 11:44 - 12 Dec 2022 11:45
Replied by owardlybiryani on topic k2 sh404SEF plugin & tags

k2 sh404SEF plugin & tags

Category: English K2 Community

My problem is that I need to make a special Ajax request for k2 tags, and this is causing me some headaches. The request is denied by the plugin. Suggestions for tags only seem to function when I deactivate the plugin. It's been almost a week since I contacted joomlaworks' help. but have heard nothing back as of yet. Therefore, I though I'd see if the forum's population could provide any advice. The ajax request URI is shown below.
  • JoomlaWorks
  • JoomlaWorks's Avatar
14 Nov 2022 15:43 - 14 Nov 2022 15:45
Replied by JoomlaWorks on topic Tag page problem - idx_item

Tag page problem - idx_item

Category: English K2 Community

The quick way to fix this is by re-installing K2 (just re-upload, DO NOT uninstall).

By the way, there is no table "i" in K2. I hope this is not a copy/paste error on your part...
  • Lazar Nikolic
  • Lazar Nikolic's Avatar
13 Nov 2022 11:52
Tag page problem - idx_item was created by Lazar Nikolic

Tag page problem - idx_item

Category: English K2 Community

My problem is with K2 tag page.

When I click on the tag, a page opens with the following error1176Key 'idx_item' doesn't exist in table 'i'

Is there a solution to this problem? 
  • sonet
  • sonet's Avatar
04 Oct 2022 14:18
k2 sh404SEF plugin & tags was created by sonet

k2 sh404SEF plugin & tags

Category: English K2 Community

I'm using the k2 sh404sef plugin v1.6.0.

The issue i'm having is that i have a custom ajax request for k2 tags. The plugin blocks the request. When i disable the plugin the suggested results for the tags work. I have contacted joomlaworks support over a week ago. but have not had a response. So i thought i'd ask on the forum it anyone has a solution. Below is the url ajax request

index.php?option=com_k2&view=item&task=tags&q=sou

i know in principle i was the plugin to whitelist this url. But can't find any docs to do this.
 
  • Greg Stead
  • Greg Stead's Avatar
01 Sep 2022 06:53 - 01 Sep 2022 06:53

Access itemAuthorLatest/authorLatestItems within mod_k2_content template??

Category: English K2 Community

Hi,

So, in the com_k2 / [template name] / item.php, you are able to loop through authorLatestItems with this code:

<?php foreach ($this->authorLatestItems as $key => $item) : ?>
[Do something with $item]
<?php endforeach ?>


Is it possible to take advantage of authorLatestItems for each item in a mod_k2_content? I see that there is an itemAuthorLatest in the $params values, but I can't figure out how to access those. Any help is much appreciated, as I am currently hard coding the block I need as an extraField, meaning I have to update the extraField and the related item in order to reach all instances of the item across our site when there is a copy edit.
  • texier
  • texier's Avatar
29 Aug 2022 12:25

Show tags in Layout & view options for Tag listing

Category: English K2 Community

If it could help someone, this new code works :

<?php
    $K2ModelItem = new K2ModelItem();
    $tags = $K2ModelItem->getItemTags($item->id);
for ($i=0; $i<sizeof($tags); $i++) {
$tags[$i]->link = JRoute::_(K2HelperRoute::getTagRoute($tags[$i]->name));
}
$item->tags=$tags;
?>
<?php if(count($item->tags)): ?>
<!-- Item tags -->
<div class="catItemTagsBlock">
<span><?php echo JText::_("Tagged under"); ?></span>
<ul class="catItemTags">
<?php foreach ($item->tags as $tag): ?>
<li><a href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a></li>
<?php endforeach; ?>
</ul>
<div class="clr"></div>
</div>
<?php endif; ?>
  • texier
  • texier's Avatar
29 Aug 2022 10:55

Show tags in Layout & view options for Tag listing

Category: English K2 Community

Hi, with php8 this code displays now the following error :

Non-static method K2ModelItem::getItemTags() cannot be called statically

Does anyone have an idea to resolve this error? Thanks...
  • texier
  • texier's Avatar
28 Aug 2022 18:01

Non-static method K2ModelItem::getItemTags() cannot be called statically

Category: English K2 Community

Hi everybody,

My pages by tags from file tag.php display the following error when I try to upgrade my php version from 7.4 to 8.0 :

Non-static method K2ModelItem::getItemTags() cannot be called statically

For information I am using k2 v2.9.0 which I cannot update at the moment due to bugs on later versions.

Maybe some could help me ??

Thanks a lot...
  • Cheramy Creative
  • Cheramy Creative's Avatar
04 Aug 2022 00:04
K2 category count tags was created by Cheramy Creative

K2 category count tags

Category: English K2 Community

I am working on a clients site and they saw that some of the K2 categories were displaying (1) in front of them.  Usually I would think this is coming from the category count for filtering purposes.  But I looked on the backend and that setting is turned off.  I've spent the better part of an hour looking through the settings trying to find where these are coming from with no luck.

Is there any other settings that may cause this to display this way?
  • JoomlaWorks
  • JoomlaWorks's Avatar
29 Jul 2022 20:14
Replied by JoomlaWorks on topic Word limit stripping color from text

Word limit stripping color from text

Category: English K2 Community

K2 is free. How exactly did you pay money for it?

Word limit will always strip HTML tags to ensure HTML is not broken due to some unclosed <p> tag for example.
  • Nathan
  • Nathan's Avatar
04 Jul 2022 09:29

V 2.10.3 conflicts with url routing, cache, SW and etag management

Category: English K2 Community

Just wondering if this option for v1 and v2 routing is still on the cards?

I have the latest 10.3 development version installed on a site and can't see any options around this and I'd really like to be able to update a particular website I manage that has thousands of K2 items using the old structure.
  • Sharma
  • Sharma's Avatar
27 Jun 2022 12:54
Custom K2 meta tag field was created by Sharma

Custom K2 meta tag field

Category: English K2 Community

Hi, I am not a developer and do not understand PHP. However, I need to add an extra field under the metadata information form and add a different meta value on each K2 item that will display the metadata tag on each K2 item. 

I have managed to add a field at the backend but now I need help with calling this field value as a metatag on each item.  

Best,
SR
  • JoomlaWorks
  • JoomlaWorks's Avatar
31 May 2022 23:04
Replied by JoomlaWorks on topic Duplicate k2 category listing

Duplicate k2 category listing

Category: English K2 Community

Here's the thing. Crawlers can be dumb, that's why you see the repeating "start=" query parameter. I've found Bing usually does the stupid crawling.

If it's just this, it can be mitigated by checking all query params in Joomla URLs (not just K2), filtering them all out for duplicates and redirecting when necessary.

I would recommend using the plugin URl Normalizer github.com/joomlaworks/url-normalizer and then add the following code block in line 30 of the file github.com/joomlaworks/url-normalizer/blob/master/plugin/urlnormalizer.php:
 // Filter duplicate URL parameters $currentAbsoluteUrl = JUri::getInstance()->toString(); if (strpos($currentAbsoluteUrl, '?') !== false) { $currentAbsoluteUrl = str_replace('??', '?', $currentAbsoluteUrl); $urlQuery = parse_url($currentAbsoluteUrl, PHP_URL_QUERY); if (strpos($urlQuery, '&') !== false) { $urlParams = explode('&', $urlQuery); $currentParamCount = count($urlParams); $filteredUrlParams = array_unique($urlParams); $newFilteredUrlParams = array(); foreach ($filteredUrlParams as $filteredUrlParam) { if (strpos($filteredUrlParam, '=') !== 0) { $newFilteredUrlParams[] = $filteredUrlParam; } } sort($newFilteredUrlParams); $filteredUrlParams = $newFilteredUrlParams; $newParamCount = count($filteredUrlParams); if ($newParamCount < $currentParamCount) { $newUrlQuery = implode('&', $filteredUrlParams); $newAbsoluteUrl = str_replace($urlQuery, $newUrlQuery, $currentAbsoluteUrl); $app->redirect($newAbsoluteUrl, 301); } } }

I've been using this on high-traffic K2 sites and it works like a charm, mitigating Bing's crappy crawler.

Also consider creating a hidden menu item pointing to all K2 categories with a generic name and URL alias (important), e.g. "All Content" and URL alias "content", so that auto-generated pages like tags and user profiles result with URLs in the form of /content/tag/some_tag_here or /content/user/ID-some_username_here etc.

The latter boils down to how the Joomla URL router works and its a common issue on all Joomla components, not just K2.
  • Rzrwolf
  • Rzrwolf's Avatar
18 May 2022 13:16
h1 and h2 on main layout view was created by Rzrwolf

h1 and h2 on main layout view

Category: English K2 Community

You can use the k2 layout override and replace h2 tags with h1 tag.. Just create override html folder in your template

I have done this with my website for similar reasons - seo and indexing
  • sonet
  • sonet's Avatar
13 Apr 2022 12:30
Enter tags via custom form was created by sonet

Enter tags via custom form

Category: English K2 Community

Hi,

I've created a form using rsformpro, so that i can have a wizard like form for adding articles. everything works well. But i'm stuck on how to add tags. i had a look at the example plugin (K2 example master plugin). But i couldn't see anything for inserting tags. Does anyone have a working example>
  • Nathan
  • Nathan's Avatar
13 Apr 2022 06:41
Replied by Nathan on topic Extra Fields on Author Pages

Extra Fields on Author Pages

Category: English K2 Community

Hi Fotis,

I've tried copying the foreach loop in to the Item are but it just generates the empty UL tags wrapped around it.

I found this other post from a while ago that suggests the extra fields may not be available in this file by default - www.joomlaworks.net/forum/k2-en/41072-how-to-access-extra-fields-in-author-view#143072

I've added that code and will print the array of extra fields listed by their field id, but that's not exactly what I was after.

I'm trying to build a more complex layout using some queries on my extra fields such as:
<?php if(isset($item->extraFields->productionCompany->value)): ?>                     <div class="abr-home-production-company"><?php echo $item->extraFields->productionCompany->value; ?></div>                 <?php endif; ?>

Is that possible or will I have to query the fields by ID?

Thanks

Nathan
Displaying 41 - 60 out of 6582 results.

Powered by Kunena Forum