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
0
votes
1answer
591 views

How to get k2 item and category to use different templates?

This is a very old problem, I asked it before but never got a satisfying answer. By default, on a "k2 category" page, when you click one of the items, the "k2 item" page will keep using the current ...
0
votes
0answers
19 views

Sort Categories for sj_k2_categories_ii Module in Page

i use this sj_k2_categories_ii module in my site i make some menu with this module how i can sort Categories by alphabet in my page Categories sorted by module with k2 item ID thanks
2
votes
1answer
36 views

K2 SEF issues including Joomla Smart Search

I am having an issue with smart search and k2. If I search for a Joomla article then everything pulls the correct SEF URL. If I try to search for something that is a k2 item it loads correctly but ...
2
votes
1answer
800 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 ...
0
votes
1answer
121 views

Showing K2 itemID in frontend

Well as title says, I need to show ITEMID of K2 Item in frontend of that specific item... I know how to do this for Joomla Article, but is for K2 different?
0
votes
2answers
390 views

Customize and Display Layout / URL of K2 Articles in Joomla

I'm currently designing a website in Joomla working with the k2 extension for Joomla. Let's simplify things and say I made a Category "A" of k2 articles. 1) I link a main menu to display the ...
0
votes
1answer
288 views

K2 Categories Upload Image

This never happneded to me before, I can't open the "Browse Server" box to search the image and upload. For some reason, I upload image from PC and when I save changes, it doesn't record the image ...
0
votes
0answers
5 views

K2 can't search number from Database table Field

I can contact his to K2 but they can't help me to much... My problem Drop-down Selection of K2, I created them. 5 Years Old 6 Years Old 7 Years Old 8 Years Old 9 Years Old If I search "5 Ye",...
0
votes
1answer
35 views

How to show k2 article previous date only and upcoming only

I am creating k2 articles as events. There will be: Upcoming events Old events. I am not able to show old events for current date. How to filter both types of events (Upcoming/Old) with ...
2
votes
3answers
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 ...
1
vote
0answers
28 views

Add an Image to K2 article pragmatically

I want to add an image to a K2 article using PHP. Is there a way to add an image when I am creating the article using PHP? Adding the title, body, and category is simple enough. All you have to do is ...
0
votes
0answers
16 views

Add tags to K2 article programically

Is there any way to add tags to a K2 article using PHP? Maybe there is a K2 tag observer class that I can use to add the tags like the code below. $tagsObserver = $Table->getObserverOfClass('...
1
vote
0answers
20 views

K2 SEF URls adds menu and category hierarchy

I just installed Joomla 3.9 and K2. Created few items in k2. But looks like URL generated by K2 is not really SEF Url. when categories are published as menu items I enabled SEF URLs in Global ...
0
votes
3answers
123 views

Problem with K2 Plugins - Joomla - Warning: count(): Parameter must be an array

Warning: count(): Parameter must be an array or an object that implements Countable in /home/......./archi/html/com_k2/templates/default/item.php on line 398 396 <!-- K2 Plugins: ...
1
vote
0answers
40 views

Homepage gives me a 403 resource error but still loads

I have a Joomla site using K2. If I open my site in a browser (https://www.niederlausitz-aktuell.de), everything loads as intended, but in my client-side console I get the following error: Failed to ...
1
vote
0answers
20 views

Joomla multilingual site HTML tag attributes don't change after install k2 component 2.10.3

I found a problem in the "System - K2" plugin in version 2.10.3. When the "System - K2" plugin is enabled, if the site is multilingual, the language attributes ("lang" ...
0
votes
1answer
72 views

Unset Unwanted Backend CSS and Javascripts

I'm creating a modification of K2 module and I want to remove some unnecesary K2 css and script load. I have tried to use unset($this->_scripts['']); unset($this->_styleSheets['']); but ...
1
vote
2answers
66 views

How to display specific K2 extra field of current item with k2 tool module

I am trying to display specific extra field values of a specific item with the K2 tool module. I have tried to get just BRAND, but I'm getting stdClass::brand() error. $db = JFactory::getDBO(); $...
1
vote
1answer
48 views

SEF URL Issues on several sites

I am running into an issue on several sites where the urls are "nesting" other links in the main url structure. For example: https://retrolube.com/blog/five-benefits-of-new-tires-for-your-vehicle/...
-2
votes
1answer
162 views

Insering items from RSS feed every interval

I would like to insert items from RSS feed to k2, It has to happen every interval and I would like to only insert items that include at least one word from a given keyword list. Can it be done?
1
vote
0answers
15 views

Create 301 for Joomla K2 to Shopify Blog

We have moved to a Shopify site for our cart and moving all other data across. I'm trying to create 301 redirects for our K2 blog content and struggling. Using the Joomla Redirects (image) for all ...
0
votes
1answer
1k views

How to display social sharing buttons in k2 category items, tag list, and item's page?

The native K2 CKK social sharing feature don't pop by default so i spent some time and came up with this social sharing codes i want to share with the community. See my answer below and hope it helps ...
1
vote
0answers
26 views

K2 tools Archive redirects to homepage

K2 tools Archive redirects to homepage. How can I fix it? There's a topic with the same theme: www.joomlaworks.net/forum/k2-en/36125-k2-tools-archive-redirects-to-homepage,-how-to-fix But the advice ...
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 ...
0
votes
1answer
388 views

Background music on a homepage

I want to have a background music played on my site's homepage. Preferably without the controls. So that the music would start playing on its own (ie, without user's interaction). I tried different ...
0
votes
0answers
24 views

Display clicked K2 Article on new page, and not on page you already are

My website works with a main menu whose tabs are directly linked to K2 Articles / Categories of K2 Articles. The article(s) all nicely show if a given menu tab is chosen, BUT when an article is opened,...
0
votes
1answer
113 views

Bulk delete disabled k2 users Joomla 2.5

I have thousands of spam users. I use K2 and I would want to delete them from "k2_users" and from "users". I want to delete the blocked ones. I have tried deleting K2_users from the admin, but it does ...
0
votes
2answers
382 views

Call additional categories of an item

I'm using k2 to generated various tiles, which I need to filter by an additional category. In essence, I need to get the additional categories to the front-end. I've located the PHP where this is ...
5
votes
1answer
621 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 K2 ...
2
votes
2answers
497 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
2answers
840 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 ...
3
votes
2answers
128 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
1answer
313 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 ...
2
votes
5answers
2k 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&...
1
vote
0answers
349 views

jQuery is not a function in ajax function

I'm modifying the website (I got it the way it is right now, maybe even worse). I'm getting the "Uncaught TypeError: jQuery(...) is not a function" on the website, the error appears in ajax function, ...
2
votes
2answers
1k 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 ...
1
vote
0answers
388 views

How to dynamically add extra input fields in k2 item form

Problem I'm currently working on a form which has to implement a way to create a schedule for a single day. It should use a time for when an event starts, and a description about the events. The ...
1
vote
1answer
215 views

Joomla K2 articles redirect

I have a lot of URLs like this: www.mywebsite.com/blog/item/1021-le-foreste.html that becomes, after SEF changes, like this: www.mywebsite.com/blog/le-foreste.html How can I write an .htaccess rule ...
1
vote
1answer
226 views

Wrong Creation time for article and error on edit of existing article

This may have been discussed but I can't find a fix. I get the following error when Saving an existing article. 0 DateTime::__construct(): Failed to parse time string (-1-11-30 03:00:00) at position ...
0
votes
1answer
112 views

K2 Category Filter Extension freezes after selection and filter

Just need a little bit of help with this extension: https://extensions.joomla.org/extension/filter-for-k2/ Basically it is a dropdown filter for K2 articles. My problem is that after you make a ...
-3
votes
2answers
78 views

Align to center JO K2 Slideshow

How to aling to center JO K2 Slideshow of my web site? http://www.enpi-medscapes.org/index.php/en/
1
vote
4answers
218 views

Joomla 2.5 slow after migraration to a dedicated VPS

Recently I migrated a joomla 2.5 site with K2 from a shared host to a dedicated web server with WHM/cPanel with 1 GB of RAM. I used migration procedure recommended by WHM and everything went fine. My ...
1
vote
1answer
446 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-...
0
votes
2answers
305 views

K2 Items edit icon missing

I have been trying a lot lately to get this thing work.I'm using Joomla 3.6.5 and I am using JA University Template.I see when I log in through front end I am able to see the K2 edit icon for modules....
2
votes
2answers
191 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
2answers
164 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:...
1
vote
1answer
862 views

Get K2 itemID in category listing

I have a form created with RSForm Pro and I am loading this form in some K2 items with the RSForm Content Plugin. I want to get the title of k2 item that form submitted from it. in k2 item view I ...
0
votes
1answer
100 views

K2 show items to selected users

Using K2, I want to select the users of whom the K2 items would be shown to. How do I do this? So far I have created user groups and put them under registered users. Are there any components that ...
0
votes
0answers
809 views

“PHP Fatal error: Call to a member function get() on a non-object” in K2 Template

On December 8, I first received this error on a site I manage: [08-Dec-2016 13:38:28 America/Detroit] PHP Fatal error: Call to a member function get() on a non-object in /path/to/site/templates/...
1
vote
0answers
134 views

301 Redirect all K2 Items (or Joomla! articles) to the Parent Category

I have a Joomla! + K2 site that uses categories as main landing pages with articles filling in various sections of the page. Thus, I don't want articles to be seen or indexed by Google individually. ...