Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Viktor
  • Viktor's Avatar
31 May 2014 23:16
Replied by Viktor on topic K2 menu tags

K2 menu tags

Category: English K2 Community

I just spent another 3h searching and looking at tutorial videos for this feature. I still can't get it to work. Does anyone know the answer to this? I'm sure someone does. Without this feature my site is pointless.
  • Viktor
  • Viktor's Avatar
31 May 2014 13:04 - 31 May 2014 15:39
Replied by Viktor on topic K2 menu tags

K2 menu tags

Category: English K2 Community

Actually I checked out the items and categories and found out that it should be a category setting. But I'm stumped. I made a category put some items in it and neither the category nor the item shows on the main site in the module. Also I did dedicate witch categories should be used in the module but they still don't appear.

  • jeffrey liu
  • jeffrey liu's Avatar
31 May 2014 11:44
Replied by jeffrey liu on topic K2 menu tags

K2 menu tags

Category: English K2 Community

using k2 tool for tag clouds as a module on your web page?

first need to "Select module functionality" to "tag clouds"

then, scroll down almost to the end, find "Tag Cloud Settings", select categories from there, and setting the font size ets.
  • Viktor
  • Viktor's Avatar
31 May 2014 10:57
K2 menu tags was created by Viktor

K2 menu tags

Category: English K2 Community

Ok. So I recently decided to make myself a one page portfolio site for my work and got myself a quickstart template (scrollart) that I'm going to mod to my design needs. The quickstart files had K2 preinstalled and I kinda like that so I decided to use them. I created some categories and added some items to the categories. I also added some tags to the items. But all I ever get in the components menu is the option "ALL". No other tags are displaying. I did check some tutorials but not all of them so I do realize I probably missed something because I searched in the wrong place. I've searched the modules options and the options of the items and categories but I can't seem to find any option to add items/tags to the menu. How do you do that? And I'm not talking about my main menu, that's a different menu. This menu is part of the "TZ Filter Items Css3" module. At least I think it is... If I turn of the module the menu disappears with it. I'm not a programmer and K2 is new to me so I'm kinda' stumped here. Any and all help will be appreciated.

Cheers!
  • Maureen Dunlap
  • Maureen Dunlap's Avatar
30 May 2014 21:33
Bullets not showing in K2 ExtraFields was created by Maureen Dunlap

Bullets not showing in K2 ExtraFields

Category: English K2 Community

We have implemented K2 ExtraFields for some of the content on our site. We are using the JCE editor, not sure if that matters,

The issue is that when we try putting in bulleted list items, no bullets show up. On the front end, an inspection of the code shows proper HTML formatting with the <ul><li> tags intact, but no amount of CSS styling, even with the !important tag, will force bullets to show up!

Has anyone encountered this issue, and if so, what is the fix?

The site is behind a firewall right now so I am unable to provide a link, but there is not much to show. It's just straight markup:
<div class="itemExtraFields"> <ul> <li>Why do you want to focus on that specific global issue?</li> <li>How could you use the grammar-discovery method to engage your students more fully as language learners during the lesson?</li> </ul> </div>
  • Lefteris
  • Lefteris's Avatar
30 May 2014 13:05
Replied by Lefteris on topic Bugs with non-standard symbol in tags

Bugs with non-standard symbol in tags

Category: English K2 Community

@Joseph

Hi. There is no solution for that. This is a restriction of the current K2 tagging system. We have changed this for the upcoming version 3 of K2. Until then you are recommended to not hack K2 code.
  • Joe Campbell
  • Joe Campbell's Avatar
30 May 2014 04:52
Replied by Joe Campbell on topic Bugs with non-standard symbol in tags

Bugs with non-standard symbol in tags

Category: English K2 Community

Can someone please provide a solution for the current version of K2.

I tried adding:
$tag = str_replace('&amp;','',$tag);

to the /components/com_k2/sef_ext/com_k2.php

My URLs still come render as...
/tag/tagpreampersand?tagpostampersand=

Note: I am using sh404SEF

PLEASE HELP!!!
  • Lefteris
  • Lefteris's Avatar
28 May 2014 11:53

Select articles by one tag: query to the database

Category: English K2 Community

Try this:
SELECT i.*, c.name as categoryname,c.id as categoryid, c.alias as categoryalias, c.params as categoryparams FROM #__k2_items as i RIGHT JOIN #__k2_categories AS c ON c.id = i.catid WHERE i.published = 1 AND i.access IN(1,1) AND i.trash = 0 AND c.published = 1 AND c.access IN(1,1) AND c.trash = 0 AND c.language IN ('en-GB','*') AND i.language IN ('en-GB','*') AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2014-05-28 08:50:43' ) AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2014-05-28 08:50:43' ) AND i.id IN (SELECT itemID FROM #__k2_tags_xref WHERE tagID=5) ORDER BY i.id DESC LIMIT 0, 10
Note that this will give you just the raw data from the database.
  • Timothy Michel
  • Timothy Michel's Avatar
27 May 2014 23:07 - 27 May 2014 23:46
Replied by Timothy Michel on topic How do you increase the attached file size

How do you increase the attached file size

Category: English K2 Community

Yes I will use the Extra Fields as GoDaddy limits post_max_size = 128M, upload_max_filesize = 128M to these values. There are five (5) K2 php template files that I have to edit when I create custom Extra Fields, but I have done this successfully for adding sub_heading_1 and sub_heading_2 to items using if() statements within the for() loops, so I will do this for file downloads as well.

Thanks for the help again.

You are right, if I set the memory_limit, upload_max_filesize and post_max_size to 324M and I try to upload the the file through the interface, the server times out. If I upload the file via FTP and add the file as an attachment through " or select a file on the server" I am able to add it and a link title and link title attribute, and when I look at the page the attachment show up, but when I try to download the file I get the message "File not Found" for the hash name of the file because I didn't use the K2 interface to upload it so it doesn't exist. Guess I could manually add the file with the hash name to the directory, but this would be too much of a pain to do every time.

So I will create and Extra Field Group for this and provide for attachments 1 to 20 and then add an additional loop in category.php, category_item.php, item.php, latet.php, tag.php and generic.php to display only those attachments fields that have an entry, as well s provide the styles in k2.css.
  • rawling
  • rawling's Avatar
27 May 2014 20:55 - 27 May 2014 21:11

Select articles by one tag: query to the database

Category: English K2 Community

Thanks,
I'm not a professional programmer, but I can understand any code.
I know how to make a menu for the k2 tags, but I need another: I just want sql query to the database: select all K2 materials by only one tag by only tag id - tag named "news", tagID=5
  • Lefteris
  • Lefteris's Avatar
27 May 2014 18:25
Replied by Lefteris on topic Set in the cloud of tags, please!

Set in the cloud of tags, please!

Category: Comunidade K2 Brasil

I already told you. It is in K2 parameters. Not in K2 item. Not in K2 category. Not in K2 menus. It is in K2 parameters. Just click the button named "Parameters".
  • rawling
  • rawling's Avatar
27 May 2014 13:48

Select articles by one tag: query to the database

Category: English K2 Community

joomla 3.3 and K2 2.6.8
Please, help my create a query to the database "SELECT ..."
I need to select all K2 articles by one tag named "news", tag id=5
Please urgently help my
  • Lefteris
  • Lefteris's Avatar
27 May 2014 12:11
Replied by Lefteris on topic Set in the cloud of tags, please!

Set in the cloud of tags, please!

Category: Comunidade K2 Brasil

Hi. You can set the default sorting for item listings in the K2 parameters. Look there for the option named "Item ordering (Only for tag listings)". The same goes for the title and date. Look there for the available parameters.
  • Lefteris
  • Lefteris's Avatar
26 May 2014 18:25
Replied by Lefteris on topic K2 Tag display module in grid view [solved]

K2 Tag display module in grid view [solved]

Category: English K2 Community

@Rafael Figueiredo

Hi. Go to K2 parameters and check the option named "Item count for tag listings" .
  • Lefteris
  • Lefteris's Avatar
26 May 2014 18:24
Replied by Lefteris on topic k2 tools modeuls

k2 tools modeuls

Category: English K2 Community

The code is completely wrong. First of all you are adding HTML head tag into the item.php. This will break your site. If you want to add custom CSS rules you need to do it in your template's CSS files. Secondly you are creating a new list for every item which is also wrong. Try to use the following code:
<?php defined('_JEXEC') or die; $document = JFactory::getDocument(); $document->addStyleDeclaration('ol {counter-reset:li;}'); ?> <!-- Start K2 Generic (search/date) Layout --> <div id="k2Container" class="genericView<?php if($this->params->get('pageclass_sfx')) echo ' '.$this->params->get('pageclass_sfx'); ?>"> <?php if($this->params->get('show_page_title') || JRequest::getCmd('task')=='search' || JRequest::getCmd('task')=='date'): ?> <!-- Page title --> <div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>"> <?php echo $this->escape($this->params->get('page_title')); ?> </div> <?php endif; ?> <?php if(JRequest::getCmd('task')=='search' && $this->params->get('googleSearch')): ?> <!-- Google Search container --> <div id="<?php echo $this->params->get('googleSearchContainer'); ?>"></div> <?php endif; ?> <?php if(count($this->items) && $this->params->get('genericFeedIcon',1)): ?> <!-- RSS feed icon --> <div class="k2FeedIcon"> <a href="<?php echo $this->feed; ?>" title="<?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?>"> <span><?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?></span> </a> <div class="clr"></div> </div> <?php endif; ?> <?php if(count($this->items)): ?> <div class="genericItemList"> <ol> <?php foreach($this->items as $item): ?> <!-- Start K2 Item Layout --> <!-- saratay title --> <li><div class="genericItemView"> <div class="genericItemHeader"> <?php if($this->params->get('genericItemDateCreated')): ?> <!-- Date created --> <span class="genericItemDateCreated"> <?php echo JHTML::_('date', $item->created , JText::_('K2_DATE_FORMAT_LC2')); ?> </span> <?php endif; ?> <?php if($this->params->get('genericItemTitle')): ?> <!-- Item title --> <h2 class="genericItemTitle"> <?php if ($this->params->get('genericItemTitleLinked')): ?> <a href="<?php echo $item->link; ?>"> <?php echo $item->title; ?> </a> <?php else: ?> <?php echo $item->title; ?> <?php endif; ?> </h2> <?php endif; ?> </div> <div class="genericItemBody"> <?php if($this->params->get('genericItemImage') && !empty($item->imageGeneric)): ?> <!-- Item Image --> <div class="genericItemImageBlock"> <span class="genericItemImage"> <a href="<?php echo $item->link; ?>" title="<?php if(!empty($item->image_caption)) echo K2HelperUtilities::cleanHtml($item->image_caption); else echo K2HelperUtilities::cleanHtml($item->title); ?>"> <img src="<?php echo $item->imageGeneric; ?>" alt="<?php if(!empty($item->image_caption)) echo K2HelperUtilities::cleanHtml($item->image_caption); else echo K2HelperUtilities::cleanHtml($item->title); ?>" style="width:<?php echo $this->params->get('itemImageGeneric'); ?>px; height:auto;" /> </a> </span> <div class="clr"></div> </div> <?php endif; ?> <?php if($this->params->get('genericItemIntroText')): ?> <!-- Item introtext --> <div class="genericItemIntroText"> <?php echo $item->introtext; ?> </div> <?php endif; ?> <div class="clr"></div> </div> <div class="clr"></div> <?php if($this->params->get('genericItemExtraFields') && count($item->extra_fields)): ?> <!-- Item extra fields --> <div class="genericItemExtraFields"> <h4><?php echo JText::_('K2_ADDITIONAL_INFO'); ?></h4> <ul> <?php foreach ($item->extra_fields as $key=>$extraField): ?> <?php if($extraField->value != ''): ?> <li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>"> <?php if($extraField->type == 'header'): ?> <h4 class="genericItemExtraFieldsHeader"><?php echo $extraField->name; ?></h4> <?php else: ?> <span class="genericItemExtraFieldsLabel"><?php echo $extraField->name; ?></span> <span class="genericItemExtraFieldsValue"><?php echo $extraField->value; ?></span> <?php endif; ?> </li> <?php endif; ?> <?php endforeach; ?> </ul> <div class="clr"></div> </div> <?php endif; ?> <?php if($this->params->get('genericItemCategory')): ?> <!-- Item category name --> <div class="genericItemCategory"> <span><?php echo JText::_('K2_PUBLISHED_IN'); ?></span> <a href="<?php echo $item->category->link; ?>"><?php echo $item->category->name; ?></a> </div> <?php endif; ?> <?php if ($this->params->get('genericItemReadMore')): ?> <!-- Item "read more..." link --> <div class="genericItemReadMore"> <a class="k2ReadMore" href="<?php echo $item->link; ?>"> <?php echo JText::_('K2_READ_MORE'); ?> </a> </div> <?php endif; ?> <div class="clr"></div> </div> <!-- kotayy title--></li> <!-- End K2 Item Layout --> <?php endforeach; ?> </ol> </div> <!-- Pagination --> <?php if($this->pagination->getPagesLinks()): ?> <div class="k2Pagination"> <?php echo $this->pagination->getPagesLinks(); ?> <div class="clr"></div> <?php echo $this->pagination->getPagesCounter(); ?> </div> <?php endif; ?> <?php else: ?> <?php if(!$this->params->get('googleSearch')): ?> <!-- No results found --> <div id="genericItemListNothingFound"> <p><?php echo JText::_('K2_NO_RESULTS_FOUND'); ?></p> </div> <?php endif; ?> <?php endif; ?> </div> <!-- End K2 Generic (search/date) Layout -->
If you still cannot make it, then i strongly suggest to hire a developer to do it for you.
  • Rafael Figueiredo
  • Rafael Figueiredo's Avatar
26 May 2014 15:57
Replied by Rafael Figueiredo on topic K2 Tag display module in grid view [solved]

K2 Tag display module in grid view [solved]

Category: English K2 Community

Hello everybody,

I have an issue. I have an template that use k2 category with 16 itens, but in the tag layout appears only 10 itens.

Have a solution for this?

Thanks everybody!

Att,

Mexica.
  • Lefteris
  • Lefteris's Avatar
26 May 2014 12:53

Showing related content by tag from different cat

Category: English K2 Community

Hi. There is no way to do this without a module. K2 is only displaying related items in the item page, not in listings.
  • Timothy Michel
  • Timothy Michel's Avatar
26 May 2014 01:35 - 26 May 2014 01:37
What Sets Height of div.subCategory was created by Timothy Michel

What Sets Height of div.subCategory

Category: English K2 Community

I want to set the height for the subCategory class for all K2 Category Menu types to <div class="subCategory" style="height: auto"> but I don't know where that is done in php. What file calculates the height for the subCategory div's in K2?

I can do this in CSS, but I want to do this in php so that I can eliminate something like style="height:269px" in <div class="subCategory" style="height: 269px;"> and replace it with <div class="subCategory" style="height: auto"> or eliminate the inline style altogether and replace it with an entry in k2.css. I am trying to reduce my file sizes, so eliminating either the inline css or the k2.css entry would be helpfull.

It appears to me that all subCetagory heights are set to the height of the tallest subCategory div under div.subCategoryContainer. There must be a php file in K2 that does this. I would like to modify it's behavior for responsiveness sake.

See: www.jsandbox.org/evidence/videos.html

Any thoughts anyone?
  • Lefteris
  • Lefteris's Avatar
23 May 2014 12:05
Replied by Lefteris on topic Add youtube link

Add youtube link

Category: English K2 Community

Hi. Regarding your questions:

1. In order to add more videos you will have to enter the video tags in the item text.

2. You can create a template override for K2 and just move the code around. K2 templates are explained at getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates .
  • Max
  • Max's Avatar
22 May 2014 08:50

Adding social buttons to K2, small question

Category: English K2 Community

Hello,
I'm quite new with K2 and has a small question. It's more perhaps on the algorithm of K2.
There are 3 preinstalled social buttons in K2: twitter, facebook and google+.
My goal is to add fully functional additional social buttons.
For now I have done following steps:
I've added to categories.xml and item.xml needed params and fieldsets.
I've added neccessary entires to the K2 language file.
I've added neccesary php and html tags to the item.php file.
I've checked that after opening category or material settings, neccessary entries appeared in DB and I can change them.
But still the buttons don't appear.
The string, that activates the button is:
<?php if($this->item->params->get('itemVkButton',1)): ?>
it's the same as with other preinstalled buttons.
So my question is: could anyone please tell me what have I missed?
If I comment this code then the button appears.
Thank you
Displaying 2541 - 2560 out of 6582 results.

Powered by Kunena Forum