Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
27 Jan 2016 19:36
Replied by Krikor Boghossian on topic k2 tools tag

k2 tools tag

Category: English K2 Community

  • claudio
  • claudio's Avatar
27 Jan 2016 19:34
Replied by claudio on topic k2 tools tag

k2 tools tag

Category: English K2 Community

hmm....
I have to modify ...doing an override of

root/module/mod_k2_tools/tmpl/tags.php
and
root/components/com_k2/views/itemlist/tmpl/tag.php

but ...how modify it to my situation?
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
27 Jan 2016 19:01
Replied by Krikor Boghossian on topic k2 tools tag

k2 tools tag

Category: English K2 Community

This would have to be a custom implementation.
You could set a querystring with the name of the category or some other value from the module's parameters ($param) at the link.

Then using PHP's GET - php.net/manual/en/reserved.variables.get.php you can read this variable and on your template exclude some items.
  • claudio
  • claudio's Avatar
27 Jan 2016 18:29
Replied by claudio on topic k2 tools tag

k2 tools tag

Category: English K2 Community

ok

What can I do to obtain an item listing only for categories selected in that tag module?

thank you
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
27 Jan 2016 18:12
Replied by Krikor Boghossian on topic k2 tools tag

k2 tools tag

Category: English K2 Community

If the an article has been tagged with that certain tag it will appear on that menu item regardless of that category.

The options you changed are only for the module, they do not affect the tag item listings.
  • claudio
  • claudio's Avatar
27 Jan 2016 16:36
k2 tools tag was created by claudio

k2 tools tag

Category: English K2 Community

HI
I have some categories
cat1
-cat1_A
-cat1_B
cat2
-cat2_A
-cat2_B
In my module settings I selected just cat1, cat1_A and cat1_B
in my tag cloud I see my tags... ok
but If I click on a tag in article list for the selected tag i see also articles from cat2 and sons.

I'm doing something wrong?
thanks
  • claudio
  • claudio's Avatar
27 Jan 2016 16:34
Replied by claudio on topic k2 tools tag

k2 tools tag

Category: Comunità italiana K2

Scusate... avevo dimenticato di essere nelal sezione italiana.

preciso.
la nuvola di tag si vede bene e prende i risultati dalle categorie selezionate.
ma quando clicco su un tag mi mostra nei risultati anche gli articoli contenenti quel tag ma di categorie non selezionate.

è un errore mio? ..del modulo ...del componente?
grazie
  • claudio
  • claudio's Avatar
27 Jan 2016 16:29
k2 tools tag was created by claudio

k2 tools tag

Category: Comunità italiana K2

HI
I have some categories
cat1
-cat1_A
-cat1_B
cat2
-cat2_A
-cat2_B
In my module settings I selected just cat1, cat1_A and cat1_B
in my tag cloud I see my tags... ok
but If I click on a tag in article list for the selected tag i see also articles from cat2 and sons.

I'm doing something wrong?
thanks
  • Scott Oman
  • Scott Oman's Avatar
26 Jan 2016 15:20
Capitalized Tags was created by Scott Oman

Capitalized Tags

Category: English K2 Community

Dear Joomlaworks Community & K2 Developers,

I had someone create a custom template for me so that tag view appears identical to category view.

However, in order to complete the customization, I need to be able to create tags with capital letters, such as TV Drama, Reality, etc. , since the chosen tags are also used as the page heading/titles.

The problem:

When I create a tag, it always defaults to a lowercase text version., though I see saved tags that do include uppercase letters.

So I tried creating the tags inside the K2 item editor page, because that appears to be where the other capitalized tags were created.

But when I go to the menu and try to assign that tag, even though that tag still appears capitalized in the item tag box, I only get choices that are once again lowercase.

Can you please help me with this/explain how I could assign K2 menu items to uppercase K2 tags?

Thank you.
  • Dietrich Murphy
  • Dietrich Murphy's Avatar
23 Jan 2016 00:17 - 23 Jan 2016 00:29
Tags and Ratings Not Working was created by Dietrich Murphy

Tags and Ratings Not Working

Category: English K2 Community

I have a site set up with K2. When I try to tag items in the backend, I just get a moving circle, but it does not show a list of matching tags. Also, when I try to enter ratings in the frontend, I get a moving circle but no rating is assigned.

I noticed that this works properly on the 2 new K2 websites I set up. However, for my old site, this does not work.

I think this may have something to do with Javascript. But I am not sure. Is there a way to shut off the javascript?

Any suggestions?



  • Alex
  • Alex's Avatar
22 Jan 2016 10:11
Replied by Alex on topic js list scroller for related k2 items

js list scroller for related k2 items

Category: English K2 Community

Krikor wrote: Hello Alex,

I would recommend slick.js kenwheeler.github.io/slick/
Dead simple to setup.

Hi,
awsome this is what i am looking for!
Dead easy, but i cant get it to work. I dont know much about js.

i uploaded the "slick" folder into "templates/mytemplate/html/com_k2/myoverride/" because there is the item.php from wich i will load it, right?

The items related part in my item.php i chanted this way:
<link rel="stylesheet" type="text/css" href="slick/slick.css"/> // Add the new slick-theme.css if you want the default styling <link rel="stylesheet" type="text/css" href="slick/slick-theme.css"/> <?php if($this->item->params->get('itemRelated') && isset($this->relatedItems)): ?> <!-- Related items by tag --> <h3><?php echo JText::_("K2_RELATED_ITEMS_BY_TAG"); ?></h3> <div class="itemRelated autoplay"> <?php foreach($this->relatedItems as $key=>$item): ?> <div> <!-- This is the part where the item related parts are located --> </div> <?php endforeach; ?> <div class="clr"></div> </div> <?php endif; ?> <script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script> <script type="text/javascript" src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script> <script type="text/javascript" src="slick/slick.min.js"></script> <script type="text/javascript"> $('.autoplay').slick({ slidesToShow: 3, slidesToScroll: 1, autoplay: true, autoplaySpeed: 2000, }); </script>

Why is this not working?
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
20 Jan 2016 19:24
Replied by Krikor Boghossian on topic Associate Tag results page with an item menu

Associate Tag results page with an item menu

Category: English K2 Community

I cannot think of a default module which does this.
You need either an enhanced clone of K2 content or a 3rd party module which can be found at the JED or the KED.
  • Kogos Grain
  • Kogos Grain's Avatar
20 Jan 2016 15:15
Replied by Kogos Grain on topic Associate Tag results page with an item menu

Associate Tag results page with an item menu

Category: English K2 Community

Appreciate the reply...

I did this by creating a K2 categories menu item and leave the category selection empty, as you suggested...

thanks for the quick reply.

What about my second question? Is there any way that i can display a module that shows the titles of items tagged under the same tag while i'm on that tag's page?
The way i'm doing this now is by using a com_k2 tag override that displays the titles first (no images or anything) and then the normal layout... but it would look a lot better if i could use a module to display that.

Thanks again in advance
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
20 Jan 2016 12:59
Replied by Krikor Boghossian on topic Associate Tag results page with an item menu

Associate Tag results page with an item menu

Category: English K2 Community

There are three ways to approach this.
a) Use K2's advanced SEF.
b) Create a K2 categories menu item and leave the category selection empty. All orphan tags and users are rendered through that menu item.
c) Use an SEO/SEF extension like sh404sef
  • Kogos Grain
  • Kogos Grain's Avatar
19 Jan 2016 16:03

Associate Tag results page with an item menu

Category: English K2 Community

Hello,

i'm using k2 tags to distinguish k2 items/articles. When a tag is clicked, the tag results page appears that has all items/articles related to this tag. The problem is that the tag result page link includes the link from the page i was currently viewing. Let me explain with an example:

I'm building an online magazine. I have tags named as "issue 1", "issue 2", .... , "issue 99", "issue 100". I also have 2 item/articles categories, "Lifestyle" and "Sports", with different styling per category blog page (i used k2 subtemplating for that).
When i read an article in "Sports" tagged under "issue 99" and click on the tag, i see all articles tagged under "issue 99", but the url is
"mywebsite.com/sports/itemlist/tag/issue 99".
If i am reading an article that belongs to "Lifestyle" category, the link is
"mywebsite.com/sports/itemlist/tag/issue 99".

However, what i want to do is relate the tag result page with a universal tag page, so that the link would be
"mywebsite.com/tags/issue 99"
or something similar.

Reason for doing that? I need to control which modules will show on tag results page... and it's easier to style.

To add to that, is there any way to display all articled tagged under "issue 99" when i'm viewing "issue 99" tag page, all articled tagged under issue 98 when i'm viewing "issue 98" tag page, all articled tagged under issue 97 when i'm viewing "issue 97" tag page ... etc????

Any ideas/comments are welcome.

Thanks
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
19 Jan 2016 13:05
Replied by Krikor Boghossian on topic k2 Tools tag cloud - tag ordering

k2 Tools tag cloud - tag ordering

Category: English K2 Community

Thank you for your feedback Kogos.
This will benefit a lot of users.
  • Kogos Grain
  • Kogos Grain's Avatar
18 Jan 2016 17:55 - 18 Jan 2016 18:04
k2 Tools tag cloud - tag ordering was created by Kogos Grain

k2 Tools tag cloud - tag ordering

Category: English K2 Community

I use tag cloud of k2 tools module to display tags in my homepage... I'll be having about 100 tags in the near future, so i set a limit of 20 tags in module's properties. The module is showing the tags in alphabetical order... but i want it to show tags in reverse alphabetical order.

For example, i got tags with names like : "issue 1", "issue 2", .... , "issue 99", "issue 100".
No mater tag id, date the tag was added or number of articles/items per tag, I want the module to display tags in reverse alpha order : "issue 100", "issue 99", "issue 98"...

Can this be done with k2 tools modules? I tried to play around with a mod_k2_tools/tags.php override file with no luck, i have no idea what to change in this file to make it possible.

Any help would be greatly appreciated. Thanks for your time

Edit: ok... i feel like an idiot here... i must be getting very tired and missed the obvious solution. I used "array_reverse":
i replaced
<?php foreach ($tags as $tag): ?>

with
<?php foreach (array_reverse($tags) as $tag): ?>

Mods, feel free to erase that post/thread since the answer is pretty obvious and easy... or just let it be for future reference...

Of course, any comment for an alternative solution is always welcome.
  • Michael Gulyaev
  • Michael Gulyaev's Avatar
12 Jan 2016 19:02
Replied by Michael Gulyaev on topic Eneble HTML on comment

Eneble HTML on comment

Category: English K2 Community

Krikor wrote: Enabling all tags can lead to potential security issues.
It leaves your site vulnerable to xss attacks

This is where the tags are being stripped.
github.com/joomlaworks/k2/blob/master/components/com_k2/models/item.php#L1140-L1141

You can look at php.net/manual/en/function.strip-tags.php to ensure only certain tags are allowed.


Krikor, I have the same problem. I wrote here
https://github.com/joomlaworks/k2/blob/master/components/com_k2/models/item.php#L1140-L1141

as you said. But there is no effect.

I wrote these lines there:
$row->commentText = JRequest::getString('commentText', '', 'default'); $row->commentText = strip_tags($row->commentText, '<a><b><i>');

But when I write in the comments such as <a href="gmail.com>gmail</a> in the comment I see only gmail without tags <a> and </a>. The same with tags <b> and <i>.

May be You can give advice another method or may be it not enough to change only two lines in code?

Thanks!
  • NormanBLN
  • NormanBLN's Avatar
12 Jan 2016 14:24 - 12 Jan 2016 14:46
Replied by NormanBLN on topic Google Rich Snippets / Structured Data

Google Rich Snippets / Structured Data

Category: English K2 Community

Hi Krikor,

thanks a lot for your answer, but for my first question does not help.
'datePublished' is required but not incudet in the default and you use exacat the same code
<?php echo JHtml::_('date', $this->item->created, JText::_('K2_DATE_FORMAT_LC2')); ?>
but we received the date format not in this style 2013-02-14T13:15:03-08:00 but in this Donnerstag, 31 Dezember 2015 12:56

Also I can't found itemprop="description" or "mainEntityOfPage" in the default item.

One More
If we use from the default item:
<div id="k2Container" class="itemView<?php echo ($this->item->featured) ? ' itemIsFeatured' : ''; ?><?php if ($this->item->params->get('pageclass_sfx')) echo ' ' . $this->item->params->get('pageclass_sfx'); ?>" itemscope itemtype="http://schema.org/Article">
we receive
Article 1: https://offe.....ich.de/z4check/k2Container

PS. We use the last k2 v2.6.9

Greetings Norman
  • NormanBLN
  • NormanBLN's Avatar
12 Jan 2016 12:28 - 12 Jan 2016 12:29
Google Rich Snippets / Structured Data was created by NormanBLN

Google Rich Snippets / Structured Data

Category: English K2 Community

I need a little bit help.
I try to optimize our template with googls rich snippeds.
1 ) itemprop datePublished / dateModified
We use
datePublished:
<?php echo JHTML::_('date', $this->item->created,JText::_('K2_DATE_FORMAT_LC2')); ?>
dateModified:
<?php echo JHTML::_('date', $item->created,JText::_('K2_DATE_FORMAT_LC2')); ?>
and I received :
datePublished: Donnerstag, 31 Dezember 2015 12:56
dateModified: 2016-01-12T11:04:00

The Problem is we need the date format (datePublished) in ISO 8601 for example '2013-02-14T13:15:03-08:00' (YYYY-MM-DDTHH:mm:ssZ). What we have to do?

2 ) itemprop description
How I can call the meta description for this article? We try it with the intro text but this is for us not helpful :/
Displaying 1461 - 1480 out of 6582 results.

Powered by Kunena Forum