Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
02 Apr 2013 11:10
Replied by Krikor Boghossian on topic K2 Items Tags based on Category - please help

K2 Items Tags based on Category - please help

Category: English K2 Community

Hello Jzim,

For the first one you will have to develop a custom K2 plugin.
If you want to use an image for your category link you can just the category id as a class to the link and the rest from that point is simple CSS.
  • Jan Zicha
  • Jan Zicha's Avatar
01 Apr 2013 17:23
  • Jan Zicha
  • Jan Zicha's Avatar
01 Apr 2013 15:08 - 01 Apr 2013 15:12

K2 Items Tags based on Category - please help

Category: English K2 Community

Hi,
I'm new to K2, I spent some time learning it, but I'm stuck with a few things. Your help will be very appreciated :)

1, We are having 100s of categories with 4 subcategories in each of them. All items in each category are having same tags... So, is there any way I can add for example 2 tags AAA and BBB to 1st Category so ALL items under first category will inherit the AAA and BBB tags?
(and for example all items under the 2nd category would have CCC and DDD tags)

2, Also, could I use image instead of saying for example "Category: Drink"

Thanks a lot
Regards
jzim
  • Fred heise
  • Fred heise's Avatar
01 Apr 2013 15:04
Replied by Fred heise on topic Show "Featured" Flag in tag listing

Show "Featured" Flag in tag listing

Category: English K2 Community

Hi Krikor,

ive changed it, now it looks so:

<div id="k2Container" class="tagView<?php echo ($this->featured) ? ' tagItemIsFeatured' : ''; ?><?php if($this->params->get('pageclass_sfx')) echo ' '.$this->params->get('pageclass_sfx'); ?>">


Unfortunately its not working.

The start at the category_item.php looks so:

<div class="catItemView group<?php echo ucfirst($this->item->itemGroup); ?><?php echo ($this->item->featured) ? ' catItemIsFeatured' : ''; ?><?php if($this->item->params->get('pageclass_sfx')) echo ' '.$this->item->params->get('pageclass_sfx'); ?>">



Do i have to change the classes, or do i have to define the " tagItemIsFeatured" in the k2.css. Like i said, the image is defined in the k2.css. I think, its a problem of the classes in the tag.php.

Hope you have another tip, thx
  • gnarus
  • gnarus's Avatar
01 Apr 2013 15:00
Tag system for K2 ? was created by gnarus

Tag system for K2 ?

Category: English K2 Community

Hi,
What i want to know is, is there a module/component that i can put tags on articles/items, categories from K2 and when lets say they click on a category or article to open it shows a module on side that shows a list of all possible articles that have same tags as the one opened.

So something like "related articles module" that works with K2 component as well

Thanks :)
  • Fred heise
  • Fred heise's Avatar
01 Apr 2013 14:32
Show "Featured" Flag in tag listing was created by Fred heise

Show "Featured" Flag in tag listing

Category: English K2 Community

Hi,

if i flag an article with "Featured" i can see the ../images/system/featuredItem.png in the category listing.

Is it possible to show this picture in the tag.php ?

Ive realised that the category_item.php is using this code to show the image:

<?php echo ($this->item->featured) ? ' catItemIsFeatured' : ''; ?>

Ive put this code into the tag.php, without success.

The featured flag is defined in the k2.css:


/* --- Featured flags: the classes are repeated further below to indicate placement in the CSS structure --- */
div.itemIsFeatured,
div.catItemIsFeatured,
div.tagItemIsFeatured,
div.userItemIsFeatured {background:url(../images/system/featuredItem.png) no-repeat 100% 0;margin:2px 0 0 0;}

I hope someone has an idea.

Thx a lot

mad
  • victorwooten
  • victorwooten's Avatar
01 Apr 2013 13:04
K2 Bildergrösse bei Tags-Ansicht was created by victorwooten

K2 Bildergrösse bei Tags-Ansicht

Category: Offizielle deutsche Gemeinschaft

Hallo,

wenn ich mir die K2 Artikel zu einem Tag anzeigen lasse, werden mir die Artikel mit einer zu grossen Bildergrösse ausgegeben.
Leider finde ich keine Möglichkeit, die Bildergrösse zu verändern.
Kann mir jemand sagen, wo ich dies einstellen kann?

Vielen Dank.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
01 Apr 2013 11:16
Replied by Krikor Boghossian on topic Create a directory with public frontend submit

Create a directory with public frontend submit

Category: English K2 Community

Under the advanced settings of K2 locate the Tag System Settings and choose Selection-based tagging,
this way you can control the tags.

As for the second one you should do two things:
a) Remove all the buttons you do not want to be shown from your editor,
b) Override the itemform.php and remove or comment out the browse server option under the K2 image tab.

Regards
  • theant
  • theant's Avatar
01 Apr 2013 10:50

Create a directory with public frontend submit

Category: English K2 Community

Hello
I need to build a directory with k2. I have to give users (not registered) the ability to insert their own article/page.
I know how to do for registered as usual, the question is:

- how to limit the tags from wich they can choose (for example: white / red / blue / black)
- how to give the upload for image without to access/to see the server directories/images.

Thanks a lot
  • Alessandro
  • Alessandro's Avatar
31 Mar 2013 22:41
Problem with voice menu tag was created by Alessandro

Problem with voice menu tag

Category: English K2 Community

Hello,
I use K2 because I like use tag function, but actually i am able to select only one tag for a voice menu; i would know if is it possible use the voice menu tag and select 2 differents tag with the same voice menu.

Thank you
  • Greg
  • Greg's Avatar
31 Mar 2013 14:29
Replied by Greg on topic Using K2 fields as metadata in Head

Using K2 fields as metadata in Head

Category: English K2 Community

Hi Mohamed,

Sorry for the late reply. I'm looking to use k2 author info to add microdata to pull K2 author and place it as microdata. I'm comfortable with the schema.org system

BUT I'm struggling to get to pull the relevant K2 info.

I added this to the head but it's not the correct way to pull the K2 data from the sql db.
 
  • Steven Johnson
  • Steven Johnson's Avatar
30 Mar 2013 04:23
Replied by Steven Johnson on topic How to add the Author to the Tag Page

How to add the Author to the Tag Page

Category: English K2 Community

Hi Andrey, Thanks for the reply and the answer

Do you think there is any chance that this could get worked into the K2 core?

I really try to avoid changing any K2 core files.



Thanks! -- Steven
  • Steven Johnson
  • Steven Johnson's Avatar
30 Mar 2013 03:22
Replied by Steven Johnson on topic How to display the tags on the tags page

How to display the tags on the tags page

Category: English K2 Community

Thanks so much for the reply. Very helpful to know the answer.

I really try to avoid making any core modifications, it makes upgrades much more involved.


Do you think this modification could ever be added into the K2 core?

Are you aware of why the ability to show tags on the tags page was removed?


Thanks! -- Steven
  • shenkwen
  • shenkwen's Avatar
30 Mar 2013 03:13

allow user to add simple contents in a general way

Category: English K2 Community

I know k2 can allow users to add content by simply create a user group and enable users in it to add content, but the content add form looks too complicated for most casual users.
What I want is a simple form that allows users to submit simple contents:
1)the form should be in the same window, but the menu item type "add item form" only provides new window options (with or without navigation)
2)featured/published/category/tags options should be hidden and those tabs above editting area, like Image/Image gallery/media etc.. should be hidden. basically I don't want users to see any of those advance options, just 2 simple text boxes - one is title and the other content.

How do I do that? Is there any k2 based extensions able to do this?
  • Stefano Gargiulo
  • Stefano Gargiulo's Avatar
30 Mar 2013 00:16
Replied by Stefano Gargiulo on topic Bug in Version 2.6.5 Tag + Cache

Bug in Version 2.6.5 Tag + Cache

Category: English K2 Community

In my sites with K2 2.6.5 I fixed it with some modifications in
components/com_k2/controllers/itemlist.php

Se changes here:

github.com/creativeprogramming/montebianco/commit/f52153d8102b6edbe5b20feb57cf59ec5fe21a3e
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
29 Mar 2013 12:52
Replied by Krikor Boghossian on topic Showing extra fields in the TAG view

Showing extra fields in the TAG view

Category: English K2 Community

Hello Peter,

What you are trying to achieve is not possible with K2 2.5.6, The following snippet works on versions 2.6.2 and newer.

If you want to directly output extra fields you should upgrade to the latest version of K2.

Regards
  • julien
  • julien's Avatar
29 Mar 2013 11:57

Google webmaster tool server error code 500 HELP!

Category: English K2 Community

so what do you think cause all those 500 errors? K2? rss in k2? tag system in k2?

Im a bit lost?

ias adding this to the robot file wont penalize my other component?

sorry for all those noobs questions :)
  • Nacron
  • Nacron's Avatar
29 Mar 2013 00:14 - 29 Mar 2013 00:34

New Item automatically inserts placeholder image

Category: English K2 Community

I installed K2 to a site that is using the JA Mixmaz template. Whenever I create a new item, a 650X300 placeholder image is automatically inserted above the item's text. I'm not sure if this is coming from the JA template or K2 itself. I attempted to disable the JA K2 override template by deleting that folder inside the template itself (in templates/ja_mixmaz/html/com_k2) but it seems that it still creates those images whenever I create a new item. Where is this code that is creating the placeholder image?

You can see the placeholder here: www.nacron.net/bill/blog

[edit]
I've set the "Item generic image width (in px). Used in user pages as well as tag, search & date listings." in settings to 0 and that seems to remove the image placeholder but if I change that image to something that I want, it doesn't show up and putting it back to 650 will stretch the image to 650.
  • stavroch
  • stavroch's Avatar
28 Mar 2013 22:47

Display items where creation date=current date

Category: English K2 Community

I am looking to display first in category page the items where the creation date = current date.

Olivier made this code
 <!-- Beginning of code for items of the day --> <?php $limitstart = JRequest::getInt('limitstart',0); if (!($limitstart)) { $numItems = 5; $user = &JFactory::getUser(); $aid = $user->get('aid'); $db = &JFactory::getDBO(); $view = JRequest::getWord('view'); $task = JRequest::getWord('task'); $jnow = &JFactory::getDate(); $now = $jnow->toMySQL(); $nullDate = $db->getNullDate(); $ordering = $this->params->get('catOrdering'); $query = "SELECT i.*, c.name as categoryname,c.id as categoryid, c.alias as categoryalias, c.params as categoryparams"; if ($ordering == 'best') $query .= ", (r.rating_sum/r.rating_count) AS rating"; $query.=" FROM #__k2_items as i LEFT JOIN #__k2_categories AS c ON c.id = i.catid"; if ($ordering == 'best') $query .= " LEFT JOIN #__k2_rating r ON r.itemID = i.id"; if ($task == 'tag') $query .= " LEFT JOIN #__k2_tags_xref AS tags_xref ON tags_xref.itemID = i.id LEFT JOIN #__k2_tags AS tags ON tags.id = tags_xref.tagID"; if($task=='user' && !$user->guest && $user->id==JRequest::getInt('id')){ $query .= " WHERE "; } else { $query .= " WHERE i.published = 1 AND "; } $query .= "i.access <= {$aid}" ." AND i.trash = 0" ." AND c.published = 1" ." AND c.access <= {$aid}" ." AND c.trash = 0"; if( !($task=='user' && !$user->guest && $user->id==JRequest::getInt('id') )) { $query .= " AND ( i.publish_up = ".$db->Quote($nullDate)." OR i.publish_up <= ".$db->Quote($now)." )"; $query .= " AND ( i.publish_down = ".$db->Quote($nullDate)." OR i.publish_down >= ".$db->Quote($now)." )"; } $id = JRequest::getInt('id'); $category = &JTable::getInstance('K2Category', 'Table'); $category->load($id); $cparams = new JParameter($category->params); if ($cparams->get('inheritFrom')) { $parent = &JTable::getInstance('K2Category', 'Table'); $parent->load($cparams->get('inheritFrom')); $cparams = new JParameter($parent->params); } if ($cparams->get('catCatalogMode')) { $query .= " AND c.id={$id} "; } else { $clearFlag = JRequest::getBool('clearFlag'); //$categories = K2ModelItemlist::getCategoryChilds($id, $clearFlag); $categories[] = $id; $categories = @array_unique($categories); JArrayHelper::toInteger($categories); $sql = @implode(',', $categories); $query .= " AND c.id IN ({$sql})"; } //Set featured flag if ($task == 'category' || empty($task)) { if (JRequest::getInt('featured') == '0') { $query .= " AND i.featured != 1"; } else if (JRequest::getInt('featured') == '2') { $query .= " AND i.featured = 1"; } } //Set with creation date = today $query.=" AND DATE(i.created) = CURDATE()"; //Set ordering switch ($ordering) { case 'date': $orderby = 'i.created ASC'; break; case 'rdate': $orderby = 'i.created DESC'; break; case 'alpha': $orderby = 'i.title'; break; case 'ralpha': $orderby = 'i.title DESC'; break; case 'order': if (JRequest::getInt('featured') == '2') $orderby = 'i.featured_ordering'; else $orderby = 'i.ordering'; break; case 'rorder': if (JRequest::getInt('featured') == '2') $orderby = 'i.featured_ordering DESC'; else $orderby = 'i.ordering DESC'; break; case 'hits': $orderby = 'i.hits DESC'; break; case 'rand': $orderby = 'RAND()'; break; case 'best': $orderby = 'rating DESC'; break; default: $orderby = 'i.id DESC'; break; } $query .= " ORDER BY ".$orderby; $db->setQuery($query, 0, $numItems); $itemsOfTheDay = $db->loadObjectList(); if (count($itemsOfTheDay)) { ?> <div class="itemsOfTheDay premiera"> <h2>Πρεμιέρα</h2> <?php //Prepare items $user = &JFactory::getUser(); $cache = &JFactory::getCache('com_k2_extended'); $itemModel = &$this->getModel('item'); foreach($itemsOfTheDay as $itemOfTheDay) { $itemOfTheDay->itemGroup = 'leading'; // Can be 'leading', 'primary','secondary' or 'links' to set the image size if ($user->guest){ $hits = $itemOfTheDay->hits; $itemOfTheDay->hits = 0; $itemOfTheDay = $cache->call(array('K2ModelItem', 'prepareItem'), $itemOfTheDay, $view, $task); $itemOfTheDay->hits = $hits; } else { $itemOfTheDay = $itemModel->prepareItem($itemOfTheDay, $view, $task); } ?> <div class="itemOfTheDay"> <?php $this->item=$itemOfTheDay; echo $this->loadTemplate('item'); ?> </div> <?php } ?> </div> <?php } } ?> <!-- End of code for item of the day -->

but it doesn't work in joomla 3 and k2 2.6.5

Can you help me please?
  • Brian
  • Brian's Avatar
28 Mar 2013 20:22
Replied by Brian on topic Make graphics display based on tags

Make graphics display based on tags

Category: English K2 Community

You bet. I've got my k2 items separated into 3 categories to determine how they display on the home page (banner, thumbnail, general). I've also got tags set on my articles based on the type of article they are (News, Event, Action, etc.). On the article page, I have a graphic to indicate the type of article and I need to know how to display the correct graphic based on the type of article.

Let me know if that is clearer. If not, I can put some screenshots up that should help.

thanks!
Displaying 3661 - 3680 out of 6582 results.