Hot answers tagged

9 votes
Accepted

How do I pull data from a K2 extra field that is an array?

It depends on what .php document you're in - if you're in item.php, or the category-item.php files, the following should work. In the top of the document, add this code: <!-- Call to prepare ...
user avatar
  • 1,328
6 votes

Error 503 service unavailable in my Godaddy hosting with Joomla 2.5 website

Option 1 During a similar situation to your own, I did some research and collected potential reasons for exceeding resource limitations on a shared hosting plan and you may find the following list ...
user avatar
6 votes
Accepted

Where is class $tableClass defined?

$tableClass is a variable. You won't find a class named "tableClass". It's just a placeholder for the real class name which will be generated at the beginning of the getInstance method. Take a look ...
user avatar
  • 3,693
5 votes

How do deal with Multiple Article Authors (with/without K2)

If the main concern is front end search then you could just switch to using tags for displaying the authors' names. Then you can add author information to the tag for each author and when you clicked ...
user avatar
  • 151
4 votes
Accepted

Export K2 content from a joomla web site and Import to another website

We actually bought a commercial plugin to do this. So far it seems to work well, without you having to mess with real database exports and getting into mysql. K2 Import Component
user avatar
  • 2,366
4 votes

Google indexing k2 urls wrong

First off, you have duplicate content (which as you have noticed is hurting your rankings), even though it is using the canonical attribute. I Googled your site, and both links lead to the same exact ...
user avatar
  • 41
4 votes
Accepted

How can I change a SEF URL to display another template?

Instead of $_SERVER['REQUEST_URI'], you can rely on JUri::root() template parameter can not be added concatenating it with &. It has to be ? ... but it depends on the Url query. Thus, you need a ...
user avatar
  • 7,415
4 votes

k2: How to remove default term "Children Categories" and give it a different title

Dont change the orginal language files of an extensions. All your changes will be lost at the next update. Instead use Language overrides a tutorial how to use is there : http://www.inmotionhosting....
user avatar
3 votes

How to create Multiple Sets of K2 Extra Fields for the same K2 item

I have just recently stumbled upon following extension http://www.joomreem.com/multiple-extra-fields-groups-mefg-for-k2.html . It is commercial, and they claim to solve just the problem of having ...
user avatar
  • 3,017
3 votes
Accepted

How to override the mod_k2_tools helper function?

Firstly, not everything can be overriden, sometimes you can just create your own mod_myk2_tools. Secondly, a feature can be overriden only if it is instantiated with a dynamic loading mechanism. This ...
user avatar
  • 7,415
3 votes
Accepted

How to create a multi layout page using k2

You can try this bellow procedure: step 1: Copy the k2 components (components->com_k2) step 2: Paste (templates->'your templates'-> inner html folder) step 3: Open (templates->'your templates'-> ...
user avatar
3 votes
Accepted

How do deal with Multiple Article Authors (with/without K2)

I have done the same thing for research journal last year in Joomla 2.5. I needed to use Community Builder for the author profiles. Look here for example: http://www.bwpat.de/ausgabe/25/schwarz-...
user avatar
  • 76
3 votes

Export K2 content from a joomla web site and Import to another website

There is a way by exporting required k2 tables in your hosting phpmyadmin in Site A and then import those tables in Site B database.in site B you have to have k2 installed, after export, to check if ...
user avatar
  • 1,341
3 votes

K2 Items under K2 Category

Did you try this in your Admin config: Menu >> Item Menu K2 Category >> Tab Options >> Fetch items... (Will show children items in yours subcategories) Item Ordering ... (You can choose may options)
user avatar
  • 991
3 votes
Accepted

Override category list of K2 frontend item form

There may be a correct way deeper in the depths of K2 to not have the disabled categories in the list in the first pace, however, the quickest solution is to use regex to remove them. <?php $...
user avatar
3 votes

How to call K2 currently viewed item's title / creation date on my template index.php?

You can do something similar like: $app = JFactory::getApplication(); $jinput = $app->input; $option = $jinput->getCmd('option'); $view = $jinput->getCmd('view'); if ($option=="com_k2"...
user avatar
3 votes
Accepted

K2: Call To A Member Function Get() On Null

I posted the issue on k2 forum and got the answer. Following is the issue's reason and solution: In Helix Framework, when we create a menu item of type item edit form. It throws an error. So, this is ...
user avatar
  • 1,365
2 votes

How do I pull data from a K2 extra field that is an array?

@reactionfaye 's reply above is correct. For reference, this has been part of K2 since Nov 2012 :) Originally introduced in this blog post for the release of K2 v2.6.2 (http://getk2.org/blog/1068-k2-...
user avatar
2 votes

K2 item producing a 404

Check your trashed and unpublished k2 items for a duplicate alias. We had this problem once because there were to k2 items with the same alias and one of them was trashed. It was a fluke that it ...
user avatar
  • 1,328
2 votes
Accepted

Customizing K2 admin panel

This is what I did : duplicated the isis template and asigned the duplicated template to the target users. Created a template override for the com_k2 item in /administrator/templates/isisCopy/html/...
user avatar
  • 1,371
2 votes

K2 item producing a 404

Here goes nothing.... First this may not be an answer, its just a chain of thought that might help isolate the actual issue, by the looks of it without admin access it would be hard to dive deeper. ...
user avatar
2 votes
Accepted

K2 Add tag to article if the keyword is in the article title

There are a couple of queries that you need to execute. Please use these queries first on a test environment. There is an idea: /* Query 1: Select the id of the tag */ SELECT id FROM `#__k2_tags` ...
user avatar
2 votes

How to create Multiple Sets of K2 Extra Fields for the same K2 item

This exactly what the Datasets for K2 plugin does: http://www.joomreem.com/extensions-store/k2-datasets Also, there is a documentation to learn in details how to use it: http://www.joomreem.com/...
user avatar
2 votes

How to create Multiple Sets of K2 Extra Fields for the same K2 item

We have added multiple extra fields for K2. Extra fields can be applied to multiple extra field groups. The extra field groups can then be applied to multiple items or users. At test version can be ...
user avatar
2 votes
Accepted

Load K2 article with ajax

http://jeffchannell.com/Joomla/load-the-joomla-framework-in-a-non-joomla-php-script.html Using the above technique you can create an ajax.php file in the root directory and use the Joomla API's to ...
user avatar
2 votes

Error 1146 while installing K2 extension

Run this query. Don't forget to change the table name and database name to your's bq1ry_k2_categories. CREATE TABLE IF NOT EXISTS `bq1ry_k2_categories` ( `id` int(11) unsigned NOT NULL, `name` ...
user avatar
2 votes

Error 1146 while installing K2 extension

This situation can happen if K2 was installed in the past and not removed correctly or after a failed install attempt. Have a look with your FTP client for either of the directories below as K2 ...
user avatar
  • 275
2 votes

How to get Item's ExtraFields to display in latest.php of K2 - Joomla

I just did it like this: This code comes to the file latest_item.php: <?php if (isset($this->item->extra_fields)) : ?> <div class="catItemExtraFields"> <ul> <?...
user avatar
  • 368
2 votes

How to set ACL for K2 items Categories in backend

To my knowledge, K2 v2.x does not support permissions for categories. Also, I don't think ACL Manager will be much of help here. For full ACL implementation of the Joomla core into K2, you should wait ...
user avatar
  • 19.5k

Only top scored, non community-wiki answers of a minimum length are eligible