Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Sławomir Kamiński
  • Sławomir Kamiński's Avatar
13 Aug 2014 21:13
Replied by Sławomir Kamiński on topic K2 tag counter (muliticategory substitution)

K2 tag counter (muliticategory substitution)

Category: English K2 Community

Finally I decided to use Tags cloud from K2 tools module. I edited file \modules\mod_k2_tools\tmpl\tags.php so now it looks this way:
<?php /** * @version 2.6.x * @package K2 * @author JoomlaWorks https://www.joomlaworks.net * @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved. * @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html */ // no direct access defined('_JEXEC') or die; ?> <?php $colNumber = 0; ?> <div id="k2ModuleBox<?php echo $module->id; ?>" class="k2TagCloudBlock<?php if($params->get('moduleclass_sfx')) echo ' '.$params->get('moduleclass_sfx'); ?>"> <?php foreach ($tags as $tag): ?> <?php if(!empty($tag->tag)): ?> <?php $path = "images/pix/categories/"; // path do 'category' image directory $default_img = $path . "default.png"; // name of picture to display for categories without image dedicated $polishChars = array('ą', 'ć', 'ę', 'ł', 'ń', 'ó', 'ś', 'ż', 'ź'); $replace = array('a', 'c', 'e', 'l', 'n', 'o', 's', 'z', 'z'); $img = mb_strtolower($tag->tag, 'UTF-8'); $img = str_replace($polishChars, $replace, $img); // get rid of polish accents $img = $path . strtolower(str_replace(" ", "_", $img)) . ".png"; // exchange spaces to '_' & make lowercase if (!file_exists($img)) $img = $default_img; ?> <?php if ($colNumber % 3 == 0) echo "<div class=\"singleTagRow\">"; ?> <div class="singleTag"> <a href="<?php echo $tag->link; ?>" style="font-size:<?php echo $tag->size; ?>%" title="<?php echo $tag->count.' '.JText::_('K2_ITEMS_TAGGED_WITH').' '.K2HelperUtilities::cleanHtml($tag->tag); ?>"> <div class="singleTagImg"> <img src="<?php echo $img; ?>"> </div> <div class="singleTagTxt"> <?php echo $tag->tag; ?> (<?php echo $tag->count; ?>) </div> </a> </div> <?php if ($colNumber++ % 3 == 2) echo "</div>"; ?> <?php endif; ?> <?php endforeach; ?> <?php if (($colNumber-1) % 3 !=2) echo "</div>"; ?> <div class="clr"></div> </div> <hr id="companiesListHR">

Playing a bit with template.css file I got result like on screenshot in attachment. If exists an image with the same name as tag name, it's loaded automaticaly. If not, default image is used.

Attachment not found

  • Nickos Dandoulakis
  • Nickos Dandoulakis's Avatar
13 Aug 2014 19:52
Replied by Nickos Dandoulakis on topic [SOLVED] pagination in k2 tag view

[SOLVED] pagination in k2 tag view

Category: English K2 Community

ok i found the solution i copied the code for pagination from k2_component tag.php ana i pasted in templates tag.php and done.....
  • Nickos Dandoulakis
  • Nickos Dandoulakis's Avatar
13 Aug 2014 19:43 - 13 Aug 2014 19:44
Replied by Nickos Dandoulakis on topic [SOLVED] pagination in k2 tag view

[SOLVED] pagination in k2 tag view

Category: English K2 Community

the tags are in the submenu items

i find this code in public_html/templates/MYJOOMLATEMPLATEl/com_k2/templates/default/tag.php

<!-- Pagination -->
<?php if($this->pagination->getPagesLinks()): ?>
<div class="pagination">
<?php if($this->params->get('catPaginationResults')) echo '<p class="counter">' . $this->pagination->getPagesCounter() . '</p>'; ?>
<?php if($this->params->get('catPagination')) echo $this->pagination->getPagesLinks(); ?>
</div>
<?php endif; ?>

<?php endif; ?>

</div>
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
13 Aug 2014 15:01
Replied by Krikor Boghossian on topic The url is longer than it should be

The url is longer than it should be

Category: English K2 Community

You should disable Joomla! 's default canonical links because they are wrong.
They are meant for com_content and they fail to work properly in K2.

www.robertwent.com/blog/joomla/87-how-to-remove-joomla-s-canonical-tag-without-hacking-the-core
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
13 Aug 2014 14:33
Replied by Krikor Boghossian on topic [SOLVED] pagination in k2 tag view

[SOLVED] pagination in k2 tag view

Category: English K2 Community

If that tag list is mapped into a menu item, make sure that the Pagination is set to show in the menu item's parameters.

Finally make sure that you have not accidentally removed the pagination from your tag.php template file.
  • Nickos Dandoulakis
  • Nickos Dandoulakis's Avatar
13 Aug 2014 01:12
[SOLVED] pagination in k2 tag view was created by Nickos Dandoulakis

[SOLVED] pagination in k2 tag view

Category: English K2 Community

I need to know how can i put pagination in tag view... i set Item count for tag listings 10 items in layout and views in parameters but when i am clicking in tags then appears only the ten last items Item. there is not pagination to click to see the older items
  • LEFEBVRE Patrick
  • LEFEBVRE Patrick's Avatar
11 Aug 2014 22:23 - 11 Aug 2014 22:25
Replied by LEFEBVRE Patrick on topic Comment créer un site multilingue avec K2 ?

Comment créer un site multilingue avec K2 ?

Category: Communauté française K2

Bonjour,
J'utilise K2 en français sur un site Joomla 3.3.3 avec le template JA-Lens (sous K2) de Joomlart et j'ai constaté que certaines fonctions K2 ne tenaient pas compte de la langue configurée.

Ainsi, dans les articles K2 il n'est pas tenu compte de la langue du site dans les modules sociaux: Facebook et Google+ par exemple.

Avec l'aide du support Joomlart j'ai pu modifier directement le code pour obtenir "J'aime" au lieu de "Like" ainsi que les indications textuelles chargées par Facebook. Pareil pour Google+, et cela dans 2 fichiers.

Le code modifié produit maintenant un résultat acceptable, voir par exemple là, au bas de l'article :

www.patrick-lefebvre.be/styles-de-shooting/portrait-glamour.html
 <!-- Facebook Button --> <div class="itemFacebookButton"> <div id="fb-root"></div> <script> (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#appId=177111755694317&xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <div class="fb-like" data-send="false" data-width="270" data-show-faces="true"></div> </div> <?php endif; ?>

Signalant à Joomlart que K2 devrait tenir compte là des paramètres de langue, le support Joomlart acquieste et me suggère de soumettre cette remarque directement au support K2: "I think that's a good idea, please try to put this request to K2 forum (as we inherit this default feature from K2) and see what they think."

N'ayant pas un niveau d'anglais suffisant pour expliquer tout cela clairement dans la langue native de K2 je m'adresse ici... en espérant un relais.

Par avance Merci,
Patrick
  • Muggsy Lauer
  • Muggsy Lauer's Avatar
11 Aug 2014 18:48
Change Item Layout Using K2Store was created by Muggsy Lauer

Change Item Layout Using K2Store

Category: English K2 Community

Having watched this video , the entire series of which is invaluable, I know that it is possible to move elements of a K2 item around (i.e. putting the rating at the bottom of the page as in the video), but I can't figure out a way to do that using K2Store.

My goal is to move the hit count, Published in, Tagged under, and More in this category below the Add to Cart button.

Any help would be appreciated.

P.S. I have also posted this question in the K2Store forums and will post any useful responses I get.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
11 Aug 2014 14:46
Replied by Krikor Boghossian on topic K2 tag counter (muliticategory substitution)

K2 tag counter (muliticategory substitution)

Category: English K2 Community

If you want this info in your mod_menu then I think you should make a new mod_menu template.

Another way would be to populate these values with JavaScript, eg: display them somewhere in your index.php and with a JS attach them to your menu items.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
11 Aug 2014 13:55 - 11 Aug 2014 13:56
Replied by Krikor Boghossian on topic specific css class by article tags

specific css class by article tags

Category: English K2 Community

Then you should override it instead of editing it.

getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

Then please send me a link to the issue.
  • Sławomir Kamiński
  • Sławomir Kamiński's Avatar
08 Aug 2014 22:37
Replied by Sławomir Kamiński on topic K2 tag counter (muliticategory substitution)

K2 tag counter (muliticategory substitution)

Category: English K2 Community

Thanks for your help!

It works, but I have to put "#__k2_tags_xref" instead of "#_k2_tags_xref" (probably you made a typo). Could you tell me, which file should I edit (or make template override, if possible), to make this information automatically displayed with each tag name in my menu?
  • tincup
  • tincup's Avatar
08 Aug 2014 20:55
Replied by tincup on topic specific css class by article tags

specific css class by article tags

Category: English K2 Community

I have only one file category_item.php and is located in ./components/com_k2/templates/default
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
08 Aug 2014 20:39
Replied by Krikor Boghossian on topic specific css class by article tags

specific css class by article tags

Category: English K2 Community

Are you sure you edited the correct category_item file,
This post will help you locate it,


nuevvo.com/blog/item/84-k2-inheritance-sub-templating
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
08 Aug 2014 20:36
Replied by Krikor Boghossian on topic K2 tag counter (muliticategory substitution)

K2 tag counter (muliticategory substitution)

Category: English K2 Community

You need to perform custom queries for this:

This retrieves the count of items for each tag
<?php $db = JFactory::getDbo(); $db->setQuery("SELECT COUNT(*) FROM #_k2_tags_xref WHERE tagID = YOUR_TAG_ID"); $result = $db->loadResult(); ?> 

To retrieve the count for specific categories please see this post:
getk2.org/community/English-K2-Community/191343-SOLVED-module-which-displays-a-total-count-of-items#196779
  • Sławomir Kamiński
  • Sławomir Kamiński's Avatar
08 Aug 2014 17:05
K2 tag counter (muliticategory substitution) was created by Sławomir Kamiński

K2 tag counter (muliticategory substitution)

Category: English K2 Community

Hello!

I wanted to do something, that will substitute a multicategory handling for K2 on my page. I decided to use tags for that. Instead of K2/Categories I plan to make a special menu which contains K2/Tag type items. This way I could assign an image for each "category" also.

But one thing is missing. I don't know how to obtain an tag usage counter. I mean a number which is equal to a number of articles with particular tag defined, to substitute the number of items in category. Whole menu should looks like that:

<image1> Pseudocategory1 (23) <image2> Pseudocategory2 (34)
<image3> Pseudocategory3 (12) <image4> Pseudocategory4 (59)
<image5> Pseudocategory5 (73) <image6> Pseudocategory6 (1)

I hope I explained it clear enough.:) Could anyone help me, please?
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
08 Aug 2014 11:59
Replied by Krikor Boghossian on topic Tag cloud selecting items from other categories

Tag cloud selecting items from other categories

Category: English K2 Community

Tarun,

I will have to verify this.
I will let you know on this issue.

Btw have you tried Joomla! 3.3.3 and K2 2.7 DEV?
(Just in case backup before you update)
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
07 Aug 2014 14:49
Replied by Krikor Boghossian on topic Is it possible to create a Job board using K2?

Is it possible to create a Job board using K2?

Category: English K2 Community

Yes, with extrafields and specific tags to handle all the extra lists you need.
  • FESPA
  • FESPA's Avatar
07 Aug 2014 14:03 - 07 Aug 2014 14:05
Replied by FESPA on topic List tagged items from subcategories

List tagged items from subcategories

Category: English K2 Community

Thanks Krikor for the reply.

Just to make sure you understood what I'm trying to achieve:

Having the following k2 category with its subcategories:

=> 2014
|---> Christmas
|---> New year
|---> Darth Maul's birthday
|---> Winnie the Butcher

I have a menu item called Winners that is a K2 Tag menu type, to retrieve all articles from 2014 category, tagged with winners. So far so good, all goes great.

The problem appears when I want to retrieve the items tagged winners from the subcategories of 2014 category. So, instead of selecting a range of categories, I just want to select a master one, and then automatically have the content pulled from its subcategories, that match specified criteria.

Any ideas?
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
07 Aug 2014 13:40
Replied by Krikor Boghossian on topic List tagged items from subcategories

List tagged items from subcategories

Category: English K2 Community

Hello Alex,

Unfortunately there is not menu towards multiple tags. This has to be a custom thing or an extension from the JED or getk2.org/extend

If you want only one tag from specific categories, then the menu item has filters for such a thing.
  • Tarun Das
  • Tarun Das's Avatar
06 Aug 2014 20:25 - 06 Aug 2014 20:34
Replied by Tarun Das on topic Tag cloud selecting items from other categories

Tag cloud selecting items from other categories

Category: English K2 Community

Thank you Krikor,

Yes they do. Things are as below ...

1. K2 Category = Beaches,
2. K2 Category = Wildlife

Tag is made in the name of the rigion so that one can list Beaches of a particular region. Similarly others can list National Parks ( wildlife) of a particular region.

Some regions have both. Beaches and Wildlife. For example, Goa is the region which has beautiful Beaches as well as Bird Sanctuaries.

The problem is Filter is not behaving as it should have. Even though I am selecting only one category in the filter (Filter tags from one or more categories) it is listing items from both the categories.

I am using Joomla! 3.3.1 and K2 2.6.8
Displaying 2401 - 2420 out of 6582 results.

Powered by Kunena Forum