Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Nick
  • Nick's Avatar
24 Jun 2010 17:47
Tagging categories was created by Nick

Tagging categories

Category: English K2 Community

How tough would it be to code a piece of script to be able to tag categories?

 

The reason I want to do this is because I want to be able to put certain categories in certain genres (anime site). I thought what better way to do it than with tags. So i give each category a certain tag and then I'll be able to list all the tags on a page. Clicking a tag will show all the categories with that tag.

 

I'm somewhat of a noob to php and i am willing to try to make this work. Would this be hard to do? Never wrote anything significant in php before. Could I do this?

 

I would greatly appreciate it if someone is able to write this script or even implement it into K2 2.3

 

Here's my workflow:

 

Have a completely new table called k2_category_tag

have 2 columns where the tag is linked to the categories so left side is the tag and right side is the category id's seperated by comma.

 

List all the tags. Once a tag is clicked the script will get all the category id's listed for that tag.

 

Is this the right way to do this?

 

This should be the same worflow if someone wants to add a favorites system to K2.
  • Yiota
  • Yiota's Avatar
24 Jun 2010 16:35
Replied by Yiota on topic Tags

Tags

Category: English K2 Community

A simple solution is to create a hidden menu with menu item to k2 tag. Once you do that you publish the module to each menu item.
  • Johan Mauritzson
  • Johan Mauritzson's Avatar
24 Jun 2010 13:31
Extension for simple table layout for item category was created by Johan Mauritzson

Extension for simple table layout for item category

Category: English K2 Community

Hi,I am pretty new to K2, not new to Joomla. I am very eager to find a solution to my problem, as I am under a tight deadline.I'm doing a site for a company that rents out apartments. What I want to be able to do is to list all the available apartments tagged with for instance "1 room".I would click in the menu to the left (see example) and then see a table layout with certain extra fields listed. Clicking the link would take me to the item view. (The item view looks great already)I want it to look like the image attached. My question is, are there any good extensions for this? Or do I have make a new item category template and try to get create the layout there?Would appreciate all help!/Johan
  • Volker Marschhausen
  • Volker Marschhausen's Avatar
24 Jun 2010 10:48
No Displaying items by tag was created by Volker Marschhausen

No Displaying items by tag

Category: English K2 Community

Joomla 1.5
Template: Zen Pixel8
Site: www.neotango.de

After using Joomfish to translate K2 Items, the items by won´t be displayed by tag.
Example: »Displaying items by tag: cd review«

what´s the reason for it?
  • Richard Marks
  • Richard Marks's Avatar
23 Jun 2010 21:47
Replied by Richard Marks on topic Front Page Content / Management Methodology

Front Page Content / Management Methodology

Category: English K2 Community

Hey thanks for the pointer William. I've read a little about the {loadposition} approach but haven't really looked into it. What I recall is that by adding tags like that within articles you can embed module content. Is that correct?

Then the k2_content module provides the "view" the Joomla front page manager achieves.

Your approach seems more flexible, and provides for total control of the fp content coming from anywhere.
  • Francis Darren
  • Francis Darren's Avatar
23 Jun 2010 03:30
Tags was created by Francis Darren

Tags

Category: English K2 Community

Hi guys, I wonder if you know the solution to this.How do you assign modules to appear in the page where all the items of the same tag are shown (when you click a tag, there is a summary of items that fall other the same tag).I'm using SH404SEF with K2. I'm using custom redirects to add a subfolder to the tag URL to make my URL look like domainname/tag/thenameofthetagI've tried creating a menu that points to all my tags as external links as well as tags as well as added a module to display that menu. Setting the menu assignment doesn't seem to solve this problem.
  • jabyel
  • jabyel's Avatar
22 Jun 2010 22:27
SIG Pro no thumbnail was created by jabyel

SIG Pro no thumbnail

Category: Simple Image Gallery PRO

Hi,
  I have just installed a new template and I downloaded and installed SIG PrO, the first problem was that k2 not recognize the plugin but I read in other forums that renaming the plugin will fix that and its works. and now I don't see the gallery, I only see the tags

this is the site  clubweb.actionpeopletv.com/index.php?option=com_k2&view=item&id=14:tiesto&Itemid=57
  • Francis Darren
  • Francis Darren's Avatar
20 Jun 2010 08:56

Spacing in URL for tag links at the bottom of the articles

Category: English K2 Community

Woot solved it!

Just needed to fix case 'tag'

case 'tag':
$tag=str_replace('%20','-',$tag);
$tag=str_replace('+','-',$tag);
$title[] = $tag;
break;

in components/com_k2/sef_ext
  • Kailey Lampert
  • Kailey Lampert's Avatar
20 Jun 2010 07:27

Spacing in URL for tag links at the bottom of the articles

Category: English K2 Community

wise choice. I've never been good with templates... I'll have to work on that :)

Darren Francis said:Thanks a billion! it works!
Edited item.php and category_item.php in mytemplate/html/com_k2 instead of /components/com_k2/templates/default/
  • Francis Darren
  • Francis Darren's Avatar
20 Jun 2010 07:20

Spacing in URL for tag links at the bottom of the articles

Category: English K2 Community

Thanks a billion! it works!

Edited item.php and category_item.php in mytemplate/html/com_k2 instead of /components/com_k2/templates/default/
  • Kailey Lampert
  • Kailey Lampert's Avatar
20 Jun 2010 06:45

Spacing in URL for tag links at the bottom of the articles

Category: English K2 Community

You'll definitely want to edit the 2 files in the components directory (one for single article view and the other for category view), and if you're using the K2 modules to display tags, you'll want to edit the third file too.
  • Kailey Lampert
  • Kailey Lampert's Avatar
20 Jun 2010 06:38

Spacing in URL for tag links at the bottom of the articles

Category: English K2 Community

Hi Darren,
I don't if this will help, but you can see the modified version of one of the files here: trepmal.com/joomla/joomlak2-tags-mod/ (it's the same basic fix for the 3 files mentioned).
  • Barry Deez
  • Barry Deez's Avatar
19 Jun 2010 04:42
Replied by Barry Deez on topic Tag Cloud

Tag Cloud

Category: English K2 Community

You have your module set to tag cloud. And I see you have it published. Now save, and click "new" (upper right) within the modules and choose k2 tools again(it will be blank and unused). with that one, you select blog calendar, or whatever, enable it, and save. You can do this over and over and put them where ever you like.

Thambi Yousuf said:hi, pls check
www.samratbazaar.com.sg
mod_k2 tools settings on the right gives you options for
tag cloud
breadcrumbs
calender
category select box
etc
etc

As per the above, only one can be selected, either tag cloud or calender or category select box etc

anyone can advise how to use calender, and category select box and tag cloud - two or more options in the
mod_k2_tools
thanks
thambi
singapore
  • Matija Medenica
  • Matija Medenica's Avatar
18 Jun 2010 22:06
Replied by Matija Medenica on topic Content Module Filter by Tag Addition

Content Module Filter by Tag Addition

Category: English K2 Community

This is an excellent module! I won't be repeating after others - this is patching K2's (hopefully temporary) disability to have articles attached to multiple categories.

I'm tweaking this a bit now so that I can use it on my frontpage, to display newest articles from different 'categories' (in reality, tags) in modules, but I'm not into programming at all (Firebug helps me do a bit off CSSing, that's all). I have a question on whether module's functionality could be a bit broadened, so that it can list links to other articles with the same tag (as opposed to having several articles with pics, introtext, etc.).

Form would look like this:

LEADING ARTICLE (author, small thumb, introtext, date, etc. all of which module already provides us with)
SEVERAL LINKS (i.e. list to, let's say, four other articles with the same tag, sorted by date)

For the time being I'm using the 'Custom link URL' to point to other same-tag articles, but it'd be very nice if newer ones could be listed on the frontpage as well.

Thanks a lot!
m.
  • silvena ralinova
  • silvena ralinova's Avatar
18 Jun 2010 21:54
Replied by silvena ralinova on topic Extra fields + joomfish = translation doesn't appear

Extra fields + joomfish = translation doesn't appear

Category: English K2 Community

Not working for me! But 10x for the work! Hope someone will consider you idea!

Nathan Brown said:Hey guys, this is a core hack, but it seems to work to show extra field data :P (note, it doesn't translate the field names, only the data - but it should be a good starting point for anyone trying to do this)

I'm not a PHP guy, and this is my first real hack out of desperate need, so please use with caution (and post improvements please!) It seems like a relatively simple thing and I'm quite shocked that none of the 'Pro' PHP guys here have helped with this. I hope it helps someone.

You need to replace some code in the file:

components/k2_com/models/item.php

replace the first function "getData() {...}" with

function getData() {

$id = JRequest::getInt('id');
$db = & JFactory::getDBO();
$query = "SELECT * FROM #__k2_items WHERE id={$id}";
$db->setQuery($query, 0, 1);
$row = $db->loadObject();
//Joomfish Hack to set correct language extra fields
$this->setJoomFishExtraFieldData($row);
return $row;
}
//Checks language and replaces extra fields with correct language data from joomfish
function setJoomFishExtraFieldData($row){
$id = JRequest::getInt('id');
jimport('joomla.filesystem.file');
$db = &JFactory::getDBO();
$language = &JFactory::getLanguage();
$defaultLang = $language->getDefault();
$currentLang = $language->getTag();

if (JFolder::exists(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_joomfish') && $currentLang != $defaultLang) {

$query = "SELECT id FROM #__languages WHERE code='{$currentLang}' ";
$db->setQuery($query, 0, 1);
$langdata = $db->loadObject();
$langcode = $langdata->id;

$query = "SELECT value FROM #__jf_content WHERE reference_id={$id} AND language_id={$langcode} AND reference_field='extra_fields' ";
$db->setQuery($query, 0, 1);
$jfdata = $db->loadObject();

if (count($jfdata)) {
$row->extra_fields = $jfdata->value;
}
}
}
  • harikaram
  • harikaram's Avatar
18 Jun 2010 12:18

Feature Request? Seperate "title" param for Tag view

Category: English K2 Community

Sorry....

$this->params->get('page_title') is part of generic.php, towards the top; part of the conditional that determines whether it prints the page title.

Normally I believe it comes from the settings for a k2 category. I dont think there is a "title" show/hide attrib in the global prefs. So I'm wondering where this param pulls from when you are viewing the a Tag View page...

The reason I came across it is that I have a category list view for my homepage on which I've disabled page title. When I click a tag for an article, the resultant page is also missing its page title, though here I'd prefer to have it ("Viewing articles by tags: MyTag")

thanks for the help Simon...
  • Aynun
  • Aynun's Avatar
18 Jun 2010 02:22

Main Menu: Home Page: K2 Latest / Latest Showing Duplicates

Category: English K2 Community

William,

Unfortunately, it is as of yet a purely localhost ran site as I build it.

Imagine a fresh Joomla install with no other extensions / addons.
Imagine 3 articles created prior to installing K2, and after importing into K2, being deleted.
The same goes for the original Categories / Sections of Joomla.
Every Menu item has been updated to point towards K2 Categories / Items.
No additional K2 Fields have been created.
Each article I create in K2 however is tagged, but this is the only article being double dipped, so I don't think tags are the problem even if some articles share tags.

Short of taking screenshots of the Parameters section, I'm not sure what else I can say.

William White said:Post a link to your site K2 adds many things to Joomla and most sites i see are some combination of the two, or even with others as ecommerce
  • william white
  • william white's Avatar
18 Jun 2010 01:57
Replied by william white on topic Moving articles/items between Jomla core and K2

Moving articles/items between Jomla core and K2

Category: English K2 Community

See PM

Petra Klein said:Thanks again William.
Do you know where the next version of K2 stands on this and if so when it's to be expected "stable"? Are you a developer? this is an important issue for me as we have authors submitting articles and the K2 front end submit items is buggy and also has no mega tags ...so I will have continuously to transfer articles from Joomla core to K2.

Thanks - Petra

William White said:A way might be to use an extension for Joomla to export to csv or xls and then search this forum to import from csv file This is only one way joomla - k2 but may help
  • Simon Wells
  • Simon Wells's Avatar
17 Jun 2010 23:50

Feature Request? Seperate "title" param for Tag view

Category: English K2 Community

Hi Hari,

Which parameter are they sharing?
What are you trying to achieve with ($this->params->get('page_title') ?

It will help me understand what you need to achieve.

Simon
K2 Support
Displaying 5881 - 5900 out of 6582 results.

Powered by Kunena Forum