Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • B_Dark
  • B_Dark's Avatar
30 May 2011 22:37
Replied by B_Dark on topic K2 item in Multiple Categories

K2 item in Multiple Categories

Category: English K2 Community

i'm interested can you help me? i will pay for this if it's needed

Nick Tsutsunava said:
use an xref table. Easy. That way you can link multiple categories to 1 item id. Or you can go the cheap way and store all the categories inside a new row and have php then parse out the id's. This can be done with explode() and implode()
As for the back end you can have a new drop down appear after you select a category. I have over 200 categories so a tag based system or a simple list system wouldn't work for me (unless the list is inside a frame)

It's really not hard to do guys.. I could code it in several days.. i'm just working on college stuff right now.
  • Andrea Vigato
  • Andrea Vigato's Avatar
30 May 2011 19:08

Is it possible to mass add a tag in all items of one category?!

Category: English K2 Community

yes you can, but not in an easy way :) you have to create a SQL query and modify the DB.

 

Something like:

SELECT itemID FROM jos_K2_item WHERE catid = (the id of your category)

and then an UPDATE in those itemID to set tagID = your tag ID.

 

 


B_Dark said:

so we can't add a specifc tag in all items of present right now in a spesific category?
Andrea Vigato said:
because what i know of K2 tag system is that the tag is related to the item, not the category.

 

tagID -> itemID -> catID

 

So you cannot just add a tag ID to the category, you have to check the category you want if it's related to the item then add a reference of the tag you want...maybe after work i'll write you some code ok? B_Dark said:

ok the one column tagID is the one of column part order to find the solution, the other one column itemID is for one specific item id, right? so, i don't understood how with itemID i have a solution for mass add tag "trailer" in 600 item that i have save in my category "cinema'?! sorry if i make rowng but really i don't understood how this column (itemID) is my solution Andrea Vigato said:no, 

 

id (id related to the entry of the jos_k2_tags_xref) 

tagID (id of the related Tag)

itemID (id of the related Item)

 

you have to use tagID and itemID, id it's not important for your question....
  • B_Dark
  • B_Dark's Avatar
30 May 2011 18:49

Is it possible to mass add a tag in all items of one category?!

Category: English K2 Community

so we can't add a specifc tag in all items of present right now in a spesific category?
Andrea Vigato said:
because what i know of K2 tag system is that the tag is related to the item, not the category.

 

tagID -> itemID -> catID

 

So you cannot just add a tag ID to the category, you have to check the category you want if it's related to the item then add a reference of the tag you want...maybe after work i'll write you some code ok? B_Dark said:

ok the one column tagID is the one of column part order to find the solution, the other one column itemID is for one specific item id, right? so, i don't understood how with itemID i have a solution for mass add tag "trailer" in 600 item that i have save in my category "cinema'?! sorry if i make rowng but really i don't understood how this column (itemID) is my solution Andrea Vigato said:
no, 

 

id (id related to the entry of the jos_k2_tags_xref) 

tagID (id of the related Tag)

itemID (id of the related Item)

 

you have to use tagID and itemID, id it's not important for your question....
  • Andrea Vigato
  • Andrea Vigato's Avatar
30 May 2011 18:37

Is it possible to mass add a tag in all items of one category?!

Category: English K2 Community

because what i know of K2 tag system is that the tag is related to the item, not the category.

 

tagID -> itemID -> catID

 

So you cannot just add a tag ID to the category, you have to check the category you want if it's related to the item then add a reference of the tag you want...maybe after work i'll write you some code ok?
B_Dark said:

ok the one column tagID is the one of column part order to find the solution, the other one column itemID is for one specific item id, right? so, i don't understood how with itemID i have a solution for mass add tag "trailer" in 600 item that i have save in my category "cinema'?! sorry if i make rowng but really i don't understood how this column (itemID) is my solution
Andrea Vigato said:
no, 

 

id (id related to the entry of the jos_k2_tags_xref) 

tagID (id of the related Tag)

itemID (id of the related Item)

 

you have to use tagID and itemID, id it's not important for your question....
  • B_Dark
  • B_Dark's Avatar
30 May 2011 18:19

Is it possible to mass add a tag in all items of one category?!

Category: English K2 Community

wait in table  jos_k2_tags_xref  have 2 columns: tagID(tagID column)itemID(the post)so how i put in 600 items of category "Cinema" the tag "Trailer" with 1-2 steps and not one by one?

Andrea Vigato said:
yes, as i said...right before user is adding a new item you have to check the cat id he choosed, if it's "Cinema" category add the query to set the tagID to the item...
  • B_Dark
  • B_Dark's Avatar
30 May 2011 18:03

Is it possible to mass add a tag in all items of one category?!

Category: English K2 Community

a specific tag in all items of a specific category. like tag "Trailer" in all items of category "Cinema"

B_Dark said:
and if you want all the items of one category with a specific tag?
Andrea Vigato said:
In jos_k2_tags_xref you have the reference between a tag and a item.

 

just a query with your id of the mass tag (tagID column) related to the itemID (the post)...
  • Andrea Vigato
  • Andrea Vigato's Avatar
30 May 2011 18:02

Is it possible to mass add a tag in all items of one category?!

Category: English K2 Community

so do the query when the user add an item in a certain category....

 

first check the category id, if it's the category you want do the query to set a specific tagID to the item the user it's creating...i think you must use form.php in com_k2/views/tmpl, don't remember now...


B_Dark said:

and if you want all the items of one category with a specific tag?
Andrea Vigato said:
In jos_k2_tags_xref you have the reference between a tag and a item.

 

just a query with your id of the mass tag (tagID column) related to the itemID (the post)...
  • B_Dark
  • B_Dark's Avatar
30 May 2011 17:39

Is it possible to mass add a tag in all items of one category?!

Category: English K2 Community

and if you want all the items of one category with a specific tag?

Andrea Vigato said:
In jos_k2_tags_xref you have the reference between a tag and a item.

 

just a query with your id of the mass tag (tagID column) related to the itemID (the post)...
  • Andrea Vigato
  • Andrea Vigato's Avatar
30 May 2011 17:07

Is it possible to mass add a tag in all items of one category?!

Category: English K2 Community

In jos_k2_tags_xref you have the reference between a tag and a item.

 

just a query with your id of the mass tag (tagID column) related to the itemID (the post)...
  • Olivier Karfis
  • Olivier Karfis's Avatar
30 May 2011 13:21
Replied by Olivier Karfis on topic Using K2 as a blog

Using K2 as a blog

Category: English K2 Community

That's the idea.

 

If you look in the JED, there's a CSV to K2 import extension that will import tags along with the content.

--Olivier
  • Jock
  • Jock's Avatar
30 May 2011 13:11
Replied by Jock on topic Using K2 as a blog

Using K2 as a blog

Category: English K2 Community

Right, so put every post/item into a single category and then use the tags in each post/item to group them off?

 

That makes sense but unfortunately when I imported all of the content into Joomla it didn't import the tags! I guess I need to import directly into K2 where the items allow for tags. Any easy way to do this?
  • Olivier Karfis
  • Olivier Karfis's Avatar
30 May 2011 13:04
Replied by Olivier Karfis on topic Using K2 as a blog

Using K2 as a blog

Category: English K2 Community

No you can't have an item in multiple categories in K2... yet (they have mentioned that it's something they will be looking at).  

What you can do is (depending on your needs) use the tag functionality and then create individual tag views to simulate that.

--Olivier
  • Simon Olsen
  • Simon Olsen's Avatar
30 May 2011 12:56
Replied by Simon Olsen on topic Joomla 1.6 v K2

Joomla 1.6 v K2

Category: English K2 Community

I've been using Joomla 1.6 since beginning of April. I've now even given K2 SVN for Joomla 1.6 a go.

So here's what I have found.

While Joomla 1.6 is very promising, K2 for Joomla 1.5 is still a lot better for displaying items (articles). The Simple Image Gallery and AllVideo plugins, plus attached authors, tags and related items just make K2 those few steps ahead of Joomla 1.6 for showcasing blogs, media and video.

The main issue I have had is that some developers have bought out J1.6 versions of their extensions, but many haven't. And the ones that are out are all in Beta. Something which seems as simple as displaying YouTube videos becomes very clunky, when compared to going to the Video tab in a K2 item, copying in the video ID and clicking Save.

So for now, my recommendation is still K2 with J1.5.
  • Simon Olsen
  • Simon Olsen's Avatar
30 May 2011 05:33

Stop the http:// being added to the URL in the User Profile

Category: English K2 Community

I'm a longtime advocate for using K2.

I'm currently doing some specific customisations and I want to use the URL field for something else.

Please note that I'm already using Extended User Info (great addition, I highly recommend it).

I've managed to stop the URL field from becoming a link.

In components/com_k2/templates/user.php, I've edited line 133 from

<?php echo JText::_("Website URL"); ?>: <a href="<?php echo $this->user->profile->url; ?>" target="_blank" rel="nofollow"><?php echo $this->user->profile->url; ?></a>

to

<?php echo JText::_("Website URL"); ?>: <?php echo $this->user->profile->url; ?>

Essentially removing the hyperlinking <a> tag.



However the K2 backend still adds http:// to the front of the URL field.

I've gone into administrator/components/com_k2/views/user/tmpl/default.php to see if I can comment out something that adds the http:// to the url after you save/apply the User record, but I can't see how it adds the http:// to the URL field.

Can someone point me in the right direction?
  • Brenda
  • Brenda's Avatar
29 May 2011 02:35
Replied by Brenda on topic Uber Page Break does not create sef urls

Uber Page Break does not create sef urls

Category: English K2 Community

I made changes to Uberpagebreak not SH404SEF

I changed this file:

/plugins/content/UberPageBreak.php

and changed these lines:

161 // TOC page link

162 $output->links[$key]->pagelink = JRoute::_('&limit=1&showall=&limitstart='.($i-1));

 


 

186 // TOC footer link

187 $output->footerLink = JRoute::_('&limit=1&showall=1&limitstart=');

 


 

208 $output->navNextLink = JRoute::_('&limit&limitstart='.$page_next);

 

The whole file looks like this:

&lt;?php /*// JoomlaWorks "UberPageBreak" Plugin for Joomla! 1.5.x - Version 1.0// Copyright (c) 2006 - 2010 JoomlaWorks, a business unit of Nuevvo Webware Ltd. All rights reserved.// Released under the GNU/GPL license: www.gnu.org/copyleft/gpl.html// More info at www.joomlaworks.gr// Designed and developed by the JoomlaWorks team// ***Last update: June 25th, 2010****/// no direct accessdefined('_JEXEC') or die('Restricted access');jimport( 'joomla.plugin.plugin' );class plgContentUberPageBreak extends JPlugin {  // JoomlaWorks reference parameters    var $plg_name                                = "UberPageBreak";    var $plg_copyrights_start        = "\n\n<!-- JoomlaWorks \"UberPageBreak\" Plugin (v1.0) starts here -->\n";    var $plg_copyrights_end            = "\n<!-- JoomlaWorks \"UberPageBreak\" Plugin (v1.0) ends here -->\n\n";            function plgContentUberPageBreak( &$subject, $params ){        parent::__construct( $subject, $params );    }        function onPrepareContent( &$row, &$params, $page=0 ){                // API    $mainframe    = &JFactory::getApplication();        $document     = &JFactory::getDocument();        $db                    = &JFactory::getDBO();                // Requests        $option         = JRequest::getCmd('option');        $view             = JRequest::getCmd('view');        $layout         = JRequest::getCmd('layout');        $itemid         = JRequest::getInt('Itemid');        $print           = JRequest::getBool('print');        $limitstart = JRequest::getInt('limitstart',0);        $showall         = JRequest::getInt('showall',0);        if(!$page) $page = 0;                        // Assign paths    $sitePath = JPATH_SITE;    $siteUrl  = substr(JURI::root(), 0, -1);        // Check if plugin is enabled    if(JPluginHelper::isEnabled('content',$this->plg_name)==false) return;            // Load the plugin language file the proper way        JPlugin::loadLanguage('plg_content_'.$this->plg_name, JPATH_ADMINISTRATOR);        // Simple performance checks to determine whether plugin should process further      if(strpos($row->text,'class="system-pagebreak')===false && strpos($row->text,'class=\'system-pagebreak')===false){          return true;      }            // Expression to search for        $regex = '#<hr([^&gt;]*?)class=(\"|\')system-pagebreak(\"|\')([^&gt;]*?)\/*&gt;#iU';                      if($params-&gt;get('intro_only') || $params-&gt;get('popup') || ($view!= 'article' &amp;&amp; $view!='item')){            $row-&gt;text = preg_replace($regex,'',$row-&gt;text);            return;        }                // For K2        if($option=='com_k2'){            if(!empty($row-&gt;fulltext)){                $row-&gt;text = $row-&gt;fulltext;            } else {                $row-&gt;text = $row-&gt;introtext;            }        }                // Clear pagebreak tags on print page        if(JRequest::getInt('print')){            $row-&gt;text = preg_replace($regex,'&lt;br /&gt;',$row-&gt;text);            return;        }                //
Get plugin parameters
                // Get Plugin info        $plugin =&amp; JPluginHelper::getPlugin('content',$this-&gt;plg_name);        $pluginParams = new JParameter( $plugin-&gt;params );                $pluginTemplate = $pluginParams-&gt;get('pluginTemplate','Default'); // to add to XML: Default or Tabs incl. on-the-fly MVC        $ubpPageTitle        = $pluginParams-&gt;get('ubpPageTitle',1);        $ubpTOC                 = $pluginParams-&gt;get('ubpTOC',1);        $ubpNavigation     = $pluginParams-&gt;get('ubpNavigation',1);        $ubpAllPagesLink= $pluginParams-&gt;get('ubpAllPagesLink',1);        $ubpPageCounter = $pluginParams-&gt;get('ubpPageCounter',1);        // Includes        require_once(dirname(__FILE__).DS.$this-&gt;plg_name.DS.'includes'.DS.'helper.php');        //
Head includes
        $pluginCSS         = UberPageBreakHelper::getTemplatePath($this-&gt;plg_name,'css/template.css',$pluginTemplate);        $pluginCSS         = $pluginCSS-&gt;http;        $headIncludes = '&lt;style type="text/css" media="all"&gt;    @import "'.$pluginCSS.'";&lt;/style&gt;        ';        //
Prepare the output
                // Find all instances of plugin and put in $matches        $matches = array();        preg_match_all($regex, $row-&gt;text, $matches, PREG_SET_ORDER);        // Split the text around the plugin        $text = preg_split($regex, $row-&gt;text);            // Count the number of pages        $n = count($text);        // We have found at least one plugin instance, therefore at least 2 pages        if($n &gt; 1){                    $output = new JObject;                        // TOC header title            $output-&gt;headerTitle = $row-&gt;title;                        // Set the page title            if($ubpPageTitle &amp;&amp; $page){                $page_text = $page + 1;                if($page &amp;&amp; @$matches[$page-1][2]){                    $attrs = JUtility::parseAttributes($matches[$page-1][0]);                    if(@$attrs){                        $row-&gt;title = $row-&gt;title.' - '.$attrs;                    } else {                        $thispage = $page + 1;                        $row-&gt;title = $row-&gt;title.' - '.JText::_( 'Page' ).' '.$thispage;                    }                }            }                        // TOC header link            $output-&gt;headerLink = JRoute::_('&amp;showall=&amp;limitstart=');                        // TOC header active class            $output-&gt;headerActiveClass = ($limitstart === 0 &amp;&amp; $showall === 0) ? true : false;                        $i = 2;            foreach($matches as $key=&gt;$match){                            $key = $key + 1;                                $output-&gt;links[$key] = new JObject;                            // TOC page link                 $output-&gt;links[$key]-&gt;pagelink = JRoute::_('&amp;limit=1&amp;showall=&amp;limitstart='.($i-1));                                // TOC page title                if(@$match[0]){                    $attrs2 = JUtility::parseAttributes($match[0]);                    if(@$attrs2){                        $title = stripslashes($attrs2);                    } elseif(@$attrs2) {                        $title = stripslashes($attrs2);                    } else {                        $title = JText::sprintf('Page #',$i);                    }                } else {                    $title = JText::sprintf('Page #',$i);                }                $output-&gt;links[$key]-&gt;title = $title;                                // TOC page active &amp; odd/even classes                $output-&gt;links[$key]-&gt;linkActiveClass = ($limitstart == $i-1) ? true : false;                $output-&gt;links[$key]-&gt;linkOddOrEvenClass = ($key%2) ? 'odd' : 'even';                                $i++;            }                        // TOC footer link            $output-&gt;footerLink = JRoute::_('&amp;limit=1&amp;showall=1&amp;limitstart=');                        // TOC footer active class            $output-&gt;footerActiveClass = ($showall == 1) ? true : false;            // Article text - we clean it up from the plugin tags on each created page            $output-&gt;text[$page] = str_replace("&lt;hr id=\"\"system-readmore\"\" /&gt;", "", $text[$page]);                                    // Page navigation            jimport('joomla.html.pagination');            $pageNavigation = new JPagination($n, $page, 1);                    // Page counter            $output-&gt;pageCounter = $pageNavigation-&gt;getPagesCounter();            // Page navigation links            $output-&gt;navPageLinks = $pageNavigation-&gt;getPagesLinks();            // Prev/Next navigation links            if($page&lt;$n-1 &amp;&amp; !$showall){                $page_next = $page + 1;                $output-&gt;navNextLink = JRoute::_('&amp;limit&amp;limitstart='.$page_next);                $output-&gt;navNextText = JText::_('Next').' '.JText::_('&amp;gt;&amp;gt;');            } else {                $output-&gt;navNextLink = '';                $output-&gt;navNextText = JText::_('Next');            }                    if($page&gt;0 &amp;&amp; !$showall){                $page_prev = ($page - 1 == 0) ? "" : $page - 1;                $output-&gt;navPrevLink = JRoute::_('&amp;limitstart='.$page_prev);                $output-&gt;navPrevText = JText::_('&amp;lt;&amp;lt;').' '.JText::_('Prev');            } else {                $output-&gt;navPrevLink = '';                $output-&gt;navPrevText = JText::_('Prev');            }                                                //
Render the output
            // Load the head includes            //UberPageBreakHelper::loadHeadIncludes($this-&gt;plg_copyrights_start.$headIncludes.$this-&gt;plg_copyrights_end);            //$document-&gt;addCustomTag($this-&gt;plg_copyrights_start.$headIncludes.$this-&gt;plg_copyrights_end);            $document-&gt;addStyleSheet($pluginCSS);            // Set the "all pages" output            if($showall &amp;&amp; $ubpAllPagesLink){                $page = 1;                $output-&gt;pageText = preg_replace($regex,'&lt;br /&gt;', $row-&gt;text);            } else {                $output-&gt;pageText = $output-&gt;text[$page];            }                        // Fetch the template            ob_start();            $getTemplatePath = UberPageBreakHelper::getTemplatePath($this-&gt;plg_name,'default.php',$pluginTemplate);            $getTemplatePath = $getTemplatePath-&gt;file;            include($getTemplatePath);            $getTemplate = $this-&gt;plg_copyrights_start.ob_get_contents().$this-&gt;plg_copyrights_end;            ob_end_clean();                        // Do the replace            if($option=='com_k2'){                if(!empty($row-&gt;fulltext)){                    $row-&gt;text = $row-&gt;introtext.'{K2Splitter}'.$getTemplate;                } else {                    $row-&gt;text = $getTemplate;                }            } else {                $row-&gt;text = $getTemplate;            }                    }    }} // End class/*** LEGEND: Page break plugin** &lt;b&gt;Usage:&lt;/b&gt;* &lt;code&gt;&lt;hr class="system-pagebreak" /&gt;&lt;/code&gt;* &lt;code&gt;&lt;hr class="system-pagebreak" title="The page title" /&gt;&lt;/code&gt;* or* &lt;code&gt;&lt;hr class="system-pagebreak" alt="The first page" /&gt;&lt;/code&gt;* or* &lt;code&gt;&lt;hr class="system-pagebreak" title="The page title" alt="The first page" /&gt;&lt;/code&gt;* or* &lt;code&gt;&lt;hr class="system-pagebreak" alt="The first page" title="The page title" /&gt;&lt;/code&gt;**/
  • Roman Pozdnev
  • Roman Pozdnev's Avatar
28 May 2011 18:13

Remove Not assigned categories from New Item category list

Category: English K2 Community

Stopped working after I edited file form in order to

1 remove alias

2 remove tags

3 remove content editor

4 remove mark featured

community.getk2.org/forum/attachment/download?id=3536014%3AUploadedFile%3A244760

:(
  • Simon Wells
  • Simon Wells's Avatar
27 May 2011 23:45
Replied by Simon Wells on topic Content Module Filter by Tag Addition

Content Module Filter by Tag Addition

Category: English K2 Community

For those interested, this module is fully functional in K2 V2.4.1 as well.

 

Regards,

SimonK2 Support 
  • Simon Wells
  • Simon Wells's Avatar
27 May 2011 22:44
Replied by Simon Wells on topic Problems with assigning TAGS

Problems with assigning TAGS

Category: English K2 Community

Theres been quite a bit of time difference between the versions, I certainly dont remember tags being in the right panel in the 2 years I have worked with K2.

 

If you have many tags, then use the Free tagging method, as you type it will suggest tags already used.If you use the Selection based tagging method, you will be provided with a table of tags which you can scroll through and select from, if you have many tags, then you will have more scrolling to find the tag you want.

 

This is true for versions 2.2 through to 2.5

 

Hope that helps.

 

SimonK2 Support 
  • Claes Norin
  • Claes Norin's Avatar
27 May 2011 20:19
Replied by Claes Norin on topic menu link: tag filtered on category with sh404sef

menu link: tag filtered on category with sh404sef

Category: English K2 Community

Could someone direct me to a good contact to make this problem heard? I suppose developers at K2 does not follow everything here. I tried emailing them for a quote on a fix. I am willing to pay for this fix.
  • Josef Pospisil
  • Josef Pospisil's Avatar
26 May 2011 21:27

linking an item in one category within a second category

Category: English K2 Community

Dear K2 Community,

 

i would like to have one item in two categories. But i know that this is not possible. So i thought i could create a normal item in one category and than i could create a second item in a second category. The second item in the second category would be completely empty and link to the first item in first category. But the problem is that i can't place a link within an item title to make a direct link. In my category listings there only the titles appears so i must place the link in the items title. Always when i try to add a link in the items title it ends up the link cut down just to words without all HTML Tags.

 

The main idea behind linking an item is to avoid double content because of Google. And to avoid the work of editing two items when they are in two categories.

 

I really need this to be possible because otherwise we can't use K2 and that would be a pitty because for me K2 is really the best CCK for Joomla. Is there any way to accomplish the above said? Even a hack would be nice.

 

thanks in advance
Displaying 5081 - 5100 out of 6582 results.

Powered by Kunena Forum