Hot answers tagged

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 ...
  • 3,713
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....
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 ...
  • 7,415
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 ...
  • 3,007
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)
  • 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 $...
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"...
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 ...
  • 1,375
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/...
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 ...
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 ...
  • 275
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` ...
2 votes

How to prevent "Featured"appearing in the title tag of my K2 featured articles?

In K2 that is controlled by the "Item view options in category listings" or "Item view options" on the category or the item. The field is called "'Featured' notice (next to title)"
  • 21
2 votes
Accepted

k2 plugin not fired by any event

There is a naming issue. If the class does not match exactly what Joomla is looking for, then events are not going to be fired. If your plugin is plgiesrelatednewsprogramme, the class name must be ...
  • 7,415
2 votes

Display list of files under categories on K2 in visually-appealing ways

It is quite simple, actually. Find a beautiful template on the web, then upload it to your site, then modify the category, or categories, that you're listing, to use that template in the backend: ...
  • 533
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 ...
  • 19.6k
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> <?...
  • 368
2 votes
Accepted

K2 item association

As far as I know, K2 in its current version does not support Item Associations, similar to what you get in Joomla's core articles, when you enable the feature in the language filter plugin. One ...
  • 19.6k
2 votes

Block K2 tag pages from being indexed by search engine

You may have to insert a meta tag manually for each page into a block of content that you do not want robots to index. <meta name="robots" content="noindex, nofollow"> OR You can go into your ...
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-...
2 votes

How does k2 calculate item view times

In K2, articles are represented by K2ModelItem (com_k2/models/item.php, line 892), where you can find: function hit($id) { $row = JTable::getInstance('K2Item', 'Table'); $row->hit($id); } ...
  • 7,415
2 votes
Accepted

Is it possible to disable the Author profile in K2?

As I thought, the whole profile page is a core K2 functionality, no way to directly disable it. So the only solution is to remove any link to these pages with overrides to either modules or K2 ...
  • 302
2 votes

Call additional categories of an item

K2 (by default) does not allow categorizing an item into multiple categories. It's best to use tagging for that matter. However, if you really need this sort of functionality, then indeed "Additional ...
2 votes

How to list all users from certain user group in k2

Yes, it's possible to do so with K2 in a module. Look at the K2 Users module and you'll see there's an option to display a list of users belonging to a certain K2 User Group. Here's a screenshot of ...
2 votes

Email notifications on new K2 comment (Joomla 3)

I have found a solution, that may be useful to other. a plugin can help: "BNR Comment Notify for K2" but is not free Another way is to hack the K2 files, specifically you are interested in "yoursite/...
  • 41
2 votes

K2 extension: Social media (particularly Facebook) button with articles not working properly

From your template.css file on line 5725 you can easliy solve this problem by modifying the css to max-width: inherit; instead of the current one max-width: 100%; Hope this helps.
  • 233
2 votes

Can a K2 attachment link to an external file?

It can be possible with a custom field. The way I did something kinda similar, for fetching Facebook Albums: I created a custom k2 field and an override for the default.php template file of the k2 ...
  • 19.6k
2 votes

K2 Items under K2 Category

For any setting related to K2 there is just no simple answer. It is very powerfull and hence pretty tough beast to tame. K2 Category blog view has three distinctive areas: 1. Root category block ...
  • 3,007
2 votes
Accepted

Display Extra Fields only to Certain Users or Access Levels

I was able to accomplish this using the following code (in abbreviated form): <?php $user = JFactory::getUser(); ?> <?php if(!$user->guest): ?> <!-- Prices --> <div class="...

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