Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Petar Elez
  • Petar Elez's Avatar
20 Apr 2016 23:24
Replied by Petar Elez on topic What Happened to K2 3.0?

What Happened to K2 3.0?

Category: English K2 Community

Have a site that imports feeds as k2 content daily and site size is growing very fast which impacts our server storage capacity.

Would love to take advantage of S3 integration and upgrade to v3.
- Is this feature of v3 stable at this time?

On more general note...
How far from production use is the current dev version?
Or better yet which features of dev v3 are not finished?

This list would save a ton of hours on verification of things working properly.

Appreciate the help.
  • trogladyte
  • trogladyte's Avatar
20 Apr 2016 23:18
Auto introtext and tag stripping was created by trogladyte

Auto introtext and tag stripping

Category: English K2 Community

I have introtext set at 150 words and stripping set to exclude p.em and a href. It was working fine a week ago, but now isn't and I haven't changed anything, except upgraded to Joomla 3.5.1.

Fulltext has stripping turned off, yet it was stripping hyperlinks out. I added a href to INTROTEXT and now K2 happily displays links in the fulltext. Makes no sense.

Tried to add an image showing my settings but Add File doesn't work. Settings are:

Introtext HTML Cleanup - Yes
HTML tags NOT to strip: p.em.a href
HTML tags TO BE stripped - <empty>
Fulltext HTML cleanup - No
Both next fields are empty.
  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
20 Apr 2016 14:28
Replied by JoomlaWorks Support Team on topic How to get tag name in tag itemlist?

How to get tag name in tag itemlist?

Category: English K2 Community

You must again use PHP and query the database table macb_k2_tags in order to get the data you want.
  • Roman Lipatov
  • Roman Lipatov's Avatar
19 Apr 2016 18:20
Replied by Roman Lipatov on topic How to display comments on tags pages?

How to display comments on tags pages?

Category: English K2 Community

Yes, I already use this code.
This is strange problem....

When I open category, K2 displays - No comments for item.




But when I open item page - it displays comments correct.



I use Jcomments.
  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
19 Apr 2016 17:27
Replied by JoomlaWorks Support Team on topic How to display comments on tags pages?

How to display comments on tags pages?

Category: English K2 Community

Add this code to your tag.php and specifically inside the loop that displays the K2 items
<?php echo $item->numOfComments; ?> <?php echo ($item->numOfComments>1) ? JText::_('K2_COMMENTS') : JText::_('K2_COMMENT'); ?>
  • Roman Lipatov
  • Roman Lipatov's Avatar
19 Apr 2016 12:59
Replied by Roman Lipatov on topic How to get tag name in tag itemlist?

How to get tag name in tag itemlist?

Category: English K2 Community

You understood me wrong.

I need to get Tag name in tags template /components/com_k2/templates/default/tag.php

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
19 Apr 2016 12:50
Replied by Krikor Boghossian on topic How to get tag name in tag itemlist?

How to get tag name in tag itemlist?

Category: English K2 Community

The URL pattern you see here, was created from a menu item.
Create a blank K2 categories menu item (leave the category selection empty) and call it eg: show or content, this will create the URL pattern you see there.
  • Roman Lipatov
  • Roman Lipatov's Avatar
18 Apr 2016 20:55
Replied by Roman Lipatov on topic How to get tag name in tag itemlist?

How to get tag name in tag itemlist?

Category: English K2 Community

Teo wrote: Hi,
You can create a K2 tag menu item and add the Meta Description and Keywords at the menu metadata options.


Yes, but I still need get tag name (variable) in template, because I need to add descritption for this tag page.



My idea is to make tags pages same as categories pages.
Users should not see the difference between these pages.
  • Hesam
  • Hesam's Avatar
18 Apr 2016 20:44 - 18 Apr 2016 20:48

K2 Comment form keeps loading after submit!

Category: English K2 Community

I haven't installed any extension like admin tools. Also , I've already tried to change htaccess rules but I didn't gain any result. I would be appreciate if you take a look at my htaccess:

##
# @package Joomla
# @copyright Copyright (C) 2005 - 2016 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##

##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that disallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
##

## No directory listings
IndexIgnore *

## Can be commented out if causes errors, see notes above.
Options +FollowSymlinks
Options -Indexes

## Mod_rewrite in use.

RewriteEngine On

## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##

# RewriteBase /

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php

# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.

I should add this, I have exactly the same htaccess ( and extensions) on the local host but there isn't any problem! The only difference is that I have joomla 2.5 there and a 3.4 version here.

Thanks again.
  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
18 Apr 2016 20:00
Replied by JoomlaWorks Support Team on topic How to get tag name in tag itemlist?

How to get tag name in tag itemlist?

Category: English K2 Community

Hi,
You can create a K2 tag menu item and add the Meta Description and Keywords at the menu metadata options.
  • Roman Lipatov
  • Roman Lipatov's Avatar
18 Apr 2016 18:16 - 18 Apr 2016 18:18
How to display comments on tags pages? was created by Roman Lipatov

How to display comments on tags pages?

Category: English K2 Community

Hi!

I need items on tags pages have commments count.

I added code
<?php if(!empty($item->event->K2CommentsCounter)): ?> <!-- K2 Plugins: K2CommentsCounter --> <?php echo $item->event->K2CommentsCounter; ?> <?php else: ?> <?php if($item->numOfComments > 0): ?> <a href="<?php echo $item->link; ?>#itemCommentsAnchor"> <?php echo $item->numOfComments; ?> <?php echo ($item->numOfComments>1) ? JText::_('K2_COMMENTS') : JText::_('K2_COMMENT'); ?> </a> <?php else: ?> <a href="<?php echo $item->link; ?>#itemCommentsAnchor"> <?php echo JText::_('K2_BE_THE_FIRST_TO_COMMENT'); ?> </a> <?php endif; ?> <?php endif; ?> </li>

but it always displays "0 comments"...
Thanks.
  • Roman Lipatov
  • Roman Lipatov's Avatar
18 Apr 2016 17:45
How to get tag name in tag itemlist? was created by Roman Lipatov

How to get tag name in tag itemlist?

Category: English K2 Community

Hi!

I need to modificate meta titles and descriptions on tags pages.
http://mysites/news/tags/tag1

But I want to make it only using templates overrides.

How I can get tag name (variable) in template file /components/com_k2/templates/default/tag.php

Thanks.
  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
18 Apr 2016 15:31
Replied by JoomlaWorks Support Team on topic Adding tags in article editing

Adding tags in article editing

Category: English K2 Community

Hi,
The selection tag mechanism is totally different than the categories.
Categories are preloaded in a tree structure inside an html select element that is rendered by bootstrap offering you the search functionality you mentioned.
On the other hand tags are loaded on demand with ajax request every time you type in the appropriate field. In order for this to work you will need the following

- create a query that loads all tags in alphabetic order.
- fetch the data from the query and display it in a select element that is the same type as the categories select element.
- Disable the old tag input.
- Finally you must handle the data during the save-update procedure of the K2 item.
  • Kiwee
  • Kiwee's Avatar
18 Apr 2016 14:53

[SOLVED] tag.php display tags and attachments

Category: English K2 Community

I found the answer in another topic : www.joomlaworks.net/forum/k2-en/45159-solved-$item-tags-empty-in-tag-php

I know it is not recommended to edit the k2 core, but no choice, I need to display attachments and tags in the tag.php

What I did, if someone has the same problem :
/!\ BE CAREFUL /!\
always keep a backup of your edit in case of a update
always be careful when editing core files
/!\


in the /components/com_k2/models/item.php file, edit
Tags : line 107 :
if (($view == 'item' && ($item->params->get('itemTags') || $item->params->get('itemRelated'))) || ($view == 'itemlist' && ($task == '' || $task == 'category') && $item->params->get('catItemTags')) || ($view == 'itemlist' && $task == 'user' && $item->params->get('userItemTags')) || ($view == 'latest' && $params->get('latestItemTags')))
to
if (($view == 'item' && ($item->params->get('itemTags') || $item->params->get('itemRelated'))) || ($view == 'itemlist' && ($task == '' || $task == 'category' || $task == 'tag') && $item->params->get('catItemTags')) || ($view == 'itemlist' && $task == 'user' && $item->params->get('userItemTags')) || ($view == 'latest' && $params->get('latestItemTags')))

Attachments : line 187 :
if (($view == 'item' && $item->params->get('itemAttachments')) || ($view == 'itemlist' && ($task == '' || $task == 'category') && $item->params->get('catItemAttachments')))
to
if (($view == 'item' && $item->params->get('itemAttachments')) || ($view == 'itemlist' && ($task == '' || $task == 'category' || $task == 'tag') && $item->params->get('catItemAttachments')))
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
18 Apr 2016 14:40
Replied by Krikor Boghossian on topic Adding tags in article editing

Adding tags in article editing

Category: English K2 Community

Hello,

You will need to hack the core of K2 in order to achieve this. I would not recommend performing this edit.
  • Roman Lipatov
  • Roman Lipatov's Avatar
17 Apr 2016 19:38
Replied by Roman Lipatov on topic How to remove cyrillic tags from urls?

How to remove cyrillic tags from urls?

Category: English K2 Community

HI!

You told, that in K2 v.2.7.0 will be possible to get cyrillic tags with latin slugs.

I configured replacement



Then I created new cyrillic tags - but urls still contains cyrillic symbols...

Can you point me in right direction, how to get cyrillic tags with latin

tag = проверка
slug = proverka

Thanks.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
15 Apr 2016 18:16
Replied by Krikor Boghossian on topic K2 tags generate wrong URLs

K2 tags generate wrong URLs

Category: English K2 Community

The %20 can be explained here: github.com/getk2/k2/issues/71
From what I can see the special character issue is gone now with the new character replacements.
  • M DZ
  • M DZ's Avatar
15 Apr 2016 15:03
Replied by M DZ on topic K2 tags generate wrong URLs

K2 tags generate wrong URLs

Category: English K2 Community

It's still wrong. What I did:

I added all the characters you gave (I've tried it earlier, as well), checked the global configuration.

What's symptomatic and what I've noticed is a fact that, when I for example create a new K2 menu item, which is K2 » Item listings » Tag it generates a proper url (lowers the letters adds dash etc). All other Url-s in the template are fine.

The thing is only with the item list by tag, generated from item.

Since, I've added all the characters, you've suggested. The only change is that, when I add a new tag with special characters in it to the item, it doesn't allow me to do so. So a displayed tag) in item is without the special characters (which certainly is not, what we want), so obviously it generates URL without special characters, but also without dashes, and even lowering the letters.

In my browser it looks like this:

www.sportowyobiektyw.pl/wideo/tag/Lukasz Fabianski

For Google it is:

www.sportowyobiektyw.pl/wideo/tag/Lukasz%20Fabianski

There must be an issue within K2, of how it generates URLs for item listing by tag, for tags with special characters - generated from items.

I have tried it on an empty but the same template, for different domain, and it's the same. Please help.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
15 Apr 2016 13:57
Replied by Krikor Boghossian on topic K2 tags generate wrong URLs

K2 tags generate wrong URLs

Category: English K2 Community

Can we try a couple of things?
a) Paste the entire character set for replacements.
b) Try adding a new tag.
  • M DZ
  • M DZ's Avatar
15 Apr 2016 11:05
Replied by M DZ on topic K2 tags generate wrong URLs

K2 tags generate wrong URLs

Category: English K2 Community

No I haven't used this kind of extensions at any point.
Displaying 1301 - 1320 out of 6582 results.

Powered by Kunena Forum