Questions tagged [k2]

K2 is a Content and CCK (content construction kit) Extension for Joomla! that provides more features than the standard content component.

Filter by
Sorted by
Tagged with
8
votes
3answers
5k views

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

I'm building a site that uses K2 extra fields, but I'm customizing the output so I'm not just pulling the entire extra field block. Normally something like this works for single entry fields: <?...
6
votes
2answers
2k views

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

I have got in our company Joomla publication software to care about. We are using Joomla to publish technical magazine articles. Mostly one article have 2-3 authors. In the past the admins solved ...
5
votes
3answers
11k views

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

I've a large amount of Joomla's K2 Categories and Items in website A. Now I need to have whole K2 Categories and Items of Website A in Website B. Are the any ways to export K2 data and import them ...
5
votes
1answer
130 views

Where is class $tableClass defined?

I have very little knowledge about joomla core and PHP. In order to better handle my website, I am trying to read a small part of joomla core, when I come across this function JTable:getInstance, (...
5
votes
1answer
965 views

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

I am using Joomla 3.3 and K2 v2.6.9. I have a category view with several items, namely books. The URL looks like this: http://localhost/index.php?option=com_k2&view=itemlist&task=category&...
5
votes
1answer
1k views

How to create a multi layout page using k2

I want to create different layout using k2 component. I have three blog page where i want to show every page are different layout. Where "Categories/item/tag" page show 3 layout system. How to do ...
5
votes
1answer
579 views

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

This seems to be a bit out of my league and knowledge of MySQL. So if someone can help it would be much appreciated. I would like to do the following: Enter/define a keyword e.g. mercedes Find all ...
5
votes
1answer
3k views

How to create an anchor link that points to a Joomla K2 Item

Using Joomla 3.4.1 with the K2 framework. I want to have an anchor link that points to a K2 item (article). So for example, I want to have a K2 item with several paragraphs of text. Within that text, ...
4
votes
2answers
6k views

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

I create a Joomla website before 1 year, but before 1 month my Godaddy hosting said we have reached all resources and the CPU 100%, when I contact the support they said we have a PHP Script that start ...
4
votes
3answers
2k views

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

Take this scenario: K2 Extra fields: from-date, to-date, tax-rate. Now for any single K2 item there will be multiple sets of these extra fields. But K2 item shows only 1 set of extra fields and no ...
4
votes
1answer
1k views

How to set ACL for K2 items Categories in backend

Lets say i have 3 k2 categories A, B, C and defined 2 user groups --> UserGroup1, UserGroup2 The Problem is how can I : UserGroup1 can only see/edit items in category A and can only select category ...
4
votes
1answer
228 views

Joomla K2 tags don't work with SEF

I created a multilingual web site(blog) and everything worked fine, except filtering by tag. My web site is on Joomla 3.4.3 and I am storing content using K2 ver. 2.6.9. My articles have tags and ...
3
votes
3answers
2k views

K2 item producing a 404

I have a K2 item with alias junior-tennis2. This item should display at http://www.melvilletenniscentre.com.au/junior-tennis2 However, this URL is being 302 redirected to http://www....
3
votes
2answers
56 views

How to use convert_tz in a joomla query?

This is my current query: $uvdatetime = JFactory::getDate('now', new DateTimeZone('Europe/Athens')); $db = JFactory::getDbo(); $query = $db->getQuery(true); $query->select("distinct ". $db-&...
3
votes
3answers
535 views

Can a K2 attachment link to an external file?

I'm using Joomla's K2 content component. There's a bunch of reasons we're using it, but one is to provide a nice way for the client to attach files to some of their articles. This works really well ...
3
votes
1answer
731 views

How to override the mod_k2_tools helper function?

I'm trying to understand how to override the helper.php found in /joomla_site/modules/mod_k2_tools because it is not a component but a module, and it is not the controller, because the controller is ...
3
votes
1answer
2k views

Load K2 article with ajax

I am using the category layout to feature articles on my front page with joomla 3.3. I am customizing this view so that the article links pull the articles into this page via ajax on click. This is ...
3
votes
1answer
95 views

Is there still no convenient way to hide an article's content on the category blog page?

I've been using K2 since Joomla 1.5. I noticed that in recent versions Joomla has done a lot of improvements to its content system, so I decide to switch back to use vanilla Joomla com_component for ...
3
votes
1answer
332 views

K2 URLs not working after migration to Joomla 3

I've just migrated to Joomla 3 and my K2 URLs are returning 404's. Before the migration this was an example of a correct URL: [url=https://www.portal-gestao.com/item/7687-o-que-significa-mass-...
3
votes
0answers
1k views

RSS Feed for K2 Latest Items

I have created a menu item "Latest items from (one or more) users or categories" using K2. I have set it to display the latest 1 item from selected users. I want to create an RSS feed from this page -...
3
votes
0answers
151 views

I need a k2 module to show user “unread” articles [closed]

I have extensivly looked for a k2 module that could show logged user only unread articles and havent found anything yet; The idea is that when the user logges in, the module will show only unread ...
2
votes
2answers
725 views

K2 Items under K2 Category

Basically I have the following K2 hierarchy: - Category CARS -- Sub Category Audi --- Item Audi A3 --- Item Audi A5 -- Sub Category BMW --- Item BMW 120d --- Item BMW M5 I wanted to display those K2 ...
2
votes
2answers
3k views

Error 1146 while installing K2 extension

While installing K2 extension, Joomla 3.0, GoDaddy hosting) received error message: Table 'iWebazoid.bq1ry_k2_categories' doesn't exist SQL=SHOW FULL COLUMNS FROM bq1ry_k2_categories Unable to ...
2
votes
2answers
800 views

K2 Item view —Call to undefined method K2HelperHTML::loadjQuery()

my client has updated to the latest version of Joomla: 3.8.1 und K2 to 2.8.0. Frontend and Backend are working, but it is not possible to edit a k2 item or k2 category. List view is working, but not ...
2
votes
5answers
1k views

How to change home page title and description in meta tag

I have a test website running joomla 3.4: http://test.amberaviation.com.au If you look at the source code of the home page. It says <meta name="description" content="change_here" /> <title&...
2
votes
2answers
419 views

Override category list of K2 frontend item form

I have overwritten K2 Frontend item submit I made a copy of components/com_k2/templates/default/itemform.php to templates/YOUR TEMPLATE/html/com_k2/SUBTEMPLATE NAME/itemform.php Based on the ...
2
votes
1answer
398 views

K2 and duplicated Open Graph tags

I have this clien't site with Joomla 2.5 and K2 2.6.9. Yes, I know it should be updated but tell that to this 'cheap' client of mine. Nevertheless, it works flawlessly and client is happy with it for ...
2
votes
2answers
154 views

Get rid of 404 Errors after removing K2

I want to explain the issue so hopefully any body can help me I had a website that use to contain K2 Component on it for different reasons that website got destroy so I had it to redo the whole ...
2
votes
1answer
494 views

Get K2 Extra Field Name Using Id

I'm building a module that will read parameters from the current page's K2 extra fields, and use them to load modules. I've successfully loaded the current page's item, but it's "extra_fields" array ...
2
votes
2answers
500 views

Email notifications on new K2 comment (Joomla 3)

I need either of these: a free plugin that allow me to notify a set of mails on a new k2 comment which functions in which files and order of the K2 core are called when I publish a new comment.
2
votes
2answers
1k views

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

Im trying to get ExtraFields from K2 Articles. I have assigned my menu to Latest from Users or Categories in order to display all articles from several categories. It displays fine. But these ...
2
votes
2answers
1k views

Joomla Pagination issue with K2 + sh404SEF + T3 Framework

There seems to be an issue with the K2 pagination in Joomla when using sh404SEF + T3 Framework! The urls of the pages are not generated correctly! When I go to Page 2 it still takes me to url ...
2
votes
2answers
143 views

Fatal error in K2 Tools Module

Every so often, I get this error in one of the sites I manage: [16-Dec-2016 17:08:20 America/Detroit] PHP Warning: require_once(/path/to/site/modules/mod_k2_toolsDShelper.php): failed to open stream:...
2
votes
1answer
220 views

K2 User show total number of Item hits

I have a requirement where I want to show the total number of hits that a user's items have been read. For example, if they have ten K2 items, each have been read 10 times, then I want to show the ...
2
votes
1answer
894 views

How to remove menu item ID from k2 item link

I have two different templates on my site, lets just call them Tcat and Titem. My k2 category view page is using Tcat, that is, the menu item of k2 category view page is associated with Tcat. I want ...
2
votes
1answer
139 views

K2 item assigned to menu to displaying

In my menu item I assigned K2 > Item and I choosed my item to be displayed, but it's not working. I've been working with K2 for several months and this is the first time this is happening. For the ...
2
votes
3answers
1k views

Joomla 3 with k2 sef url issue

I have an issue with k2 sef settings. I want all items to have no category structure, example: http://example.com/cat1/cat2/item1 -> http://example.com/item1 I found the setting: Prefix for item ...
2
votes
1answer
222 views

Enlarge text before read more line in k2 article

I am using the K2 extension for articles. In the beginning of each article I leave a little text (teaser) then insert the 'Read More' line. When I go inside the article and click on the plus next to ...
2
votes
1answer
1k views

K2 problem with displaying tagged content with SEF URLs

I have a Joomla K2 site (all latest versions) and I have noticed that google is finding URLs like this one : http://mysite.com/tag/some-defined-tag.html Problem is, that gives 404 error because ...
2
votes
1answer
739 views

Problem with SEF URL For K2 Users/Authors

I'm having trouble setting up proper SEF URL's for the users / authors on a site I'm working on. I have "Enable advanced SEF for K2 URLs" on, and everything works fine as long I can associate a menu ...
2
votes
0answers
348 views

How to use Ajax to display K2 items in Tabs [closed]

I have k2 categories, and on a category page, I need to implement the following logic: Loop through tabs Retrieve items that match category (note: I have additional categories extension in k2) ...
2
votes
1answer
258 views

How to add image selector field in k2 example plugin?

i am working on k2 example plugin, i want to add image selector field in k2 category section, i have already created html contents and text fields using the same and is working , but i don't know that ...
1
vote
2answers
850 views

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

Implemented k2 extension on client's website. Would like to know how to remove default term "Children Categories" and give it a different title (http://www.wilddusk.com/wild-india).
1
vote
1answer
927 views

Google indexing k2 urls wrong

I moved one of my site to new domain. And also upgraded it to joomla3. i have around 200 articles/tips displaying using k2. Before moving to new domain google was indexing site well and i was getting ...
1
vote
2answers
71 views

What would be the best approach to modify multiple articles' content programatically?

Joomla 3.6 + k2 2.7 hosted on my own linux server. I am assuming someone else's webmaster job. He has had hundreds of k2 items on hte site, with a major problem: most of the articles have some ...
1
vote
1answer
252 views

How to add submenus to a menu?

My main menu is: Home | Software | Contact I have two K2 items in 'Software' category: Soft1 and Soft2. I want to make the Soft1 and Soft2 appear as submenus in the 'Software' menu. The Software ...
1
vote
1answer
93 views

Integration of Facebook Comments

I am making a blogging website and planned to use Facebook comments rather than the native comment system.Used the following extensions to achieve this: K2 blog SP comments for adding facebook ...
1
vote
1answer
377 views

Redirect K2 article url after alias change

I need to change the alias of a K2 article from id-alias1 to id-alias2. The issue is that search engines have already indexed the url with id-alias1 so I need to use a 301 redirect from id-alias1to id-...
1
vote
2answers
153 views

Display Extra Fields only to Certain Users or Access Levels

I have a series of extra fields (prices) for my K2 items that I only want to show to logged in users. To add more, I need to show one field to one User Group (price A) and a different field to a ...
1
vote
1answer
501 views

Block K2 tag pages from being indexed by search engine

I have K2 blog and some articles have tags. When people click on tag e.g. "summer" they get all articles related to "summer" but that creates duplicated content. How can I set all K2 tag pages to ...