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
2
votes
1answer
530 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 ...
1
vote
1answer
398 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
1answer
92 views

K2:How to run a certain task every time an item is saved

I am using k2 to buildg my Joomla 3.5 site. My k2 items are basically youtube videos, every youtube video has a URL pattern for its preview image and I want it to be the item's image. But I don't want ...
2
votes
2answers
451 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 ...
1
vote
2answers
1k views

How do I get category object from within an item's template?

This is more of a PHP question but it is also related to Joomla. In K2's category.php file, there are these lines: <?php foreach($this->links as $key=>$item): ?> <div class="...
0
votes
1answer
571 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 ...
1
vote
1answer
181 views

K2 add item in frontend without registration

I wonder if there is an option in K2 to allow any visitor of my page to add an article without registration? For security reasons there also should be a recaptcha for the submitting form enabled. So ...
0
votes
1answer
195 views

joomla 2.5 / K2 - SQL Query to delete trashed items taking care of data integrity

I have not a testing environment where put this to the test: delete from k2_items where trash = 1 Of course this will remove everything that is marked as trash, but is there any other table that has ...
1
vote
2answers
163 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 ...
2
votes
1answer
429 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
756 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
3answers
597 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 ...
0
votes
1answer
79 views

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

Facebook button that comes by default with K2 extension under articles is not working properly. When Facebook button is clicked, the menu does not open to full length so that one can press post button ...
0
votes
1answer
105 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?
2
votes
2answers
514 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.
1
vote
2answers
530 views

TinyMCE is deleting emoji and everything after

Whenever I embed a tweet with an emoji into a k2 field and save, everything after the first emoji is deleted. Is there some way I can make TinyMCE recognize emoji? Here's a picture of before/after ...
1
vote
1answer
82 views

Plugin result at module position

Can I display Plugin result in module position. I want to display allvideo plugin in module position. AllVideo associate video with K2 Item.
1
vote
0answers
363 views

k2 simple image gallery display at module position [closed]

I want to display gallery at module position associated with k2 item. Currently it display at bottom of K2 Item but I want to display it at Module Position "Right" How is it possible?
4
votes
1answer
237 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 ...
0
votes
1answer
32 views

HTML code on K2 platform that helps to manipulate clickable images

As I add affiliate links from Amazon on my articles (two ads of books from Amazon right now posted at the bottom of the article, http://www.sdsolutions.firm.in/life-insurance/item/16-relevance-of-...
0
votes
0answers
81 views

Access k2 extra field from Flexi Code module

I am using the Flexi Code module to display some php in a k2 page. This k2 page has a RoomID as extra field. How can I access it as a variable inside Flexi Code?
0
votes
2answers
1k views

How to list all users from certain user group in k2

I want to list all users from one of my k2 user groups for example I've user group named as "social team" and wonder to list all members belong to social team user group in k2? is that possible? How?
0
votes
2answers
346 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 ...
0
votes
3answers
895 views

K2: Search Extra fields

My site is a photography gallery website built with K2. Each K2 item is a photo. I have attached extra fields to each of the photos, for example, resolution, shot by what camera, style, etc. I'd like ...
1
vote
1answer
1k views

Is it possible to disable the Author profile in K2?

as title goes, I'm trying to disable the Author page functionality from K2. Simply put I don't want any available author links in articles nor the possibility to access author pages. On this last ...
1
vote
1answer
211 views

Assign a subtemplate to specific items in K2

I have several items in a category. I'd like to assign to some of them another template instead of the one inherited from the category template view. I know I could create a new category with new ...
5
votes
1answer
135 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, (...
0
votes
1answer
161 views

How does k2 calculate item view times

I am in a big trouble. I have been using ajax to fetch k2 item and display it on my page. On my page there are both k2 category list and article area, when one of the items in the category is clicked,...
2
votes
1answer
934 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 ...
0
votes
1answer
175 views

Where is K2 tag search page controller/view located?

I want to exclude K2 tag pages from being indexed by search engine by adding $document = & JFactory :: getDocument(); $document->setMetaData('robots', 'noindex'); to it's controller/view code....
1
vote
1answer
530 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 ...
0
votes
1answer
165 views

Check if K2 image exists in third party exention

I need to check if a K2 article image exist in a third party extension. If the image exist, it should be displayed otherwise, a default image should be fetched. I am making the image path with : $...
2
votes
1answer
141 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 ...
0
votes
1answer
28 views

Force an AND search between 2 fields in CCK?

I'm trying to find a way to use Zoo or K2 (or another CCK) to create a set of customer records. The customer would be able to enter BOTH their last name and an ID code into two fields in a search ...
1
vote
2answers
909 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).
0
votes
3answers
334 views

Can't install K2 component

I'm trying to install K2 component, cause it's necessary to launch News Show Pro GK5. But I always have errors connected with tables, like this Table 'solitaire.sw_k2_categories' doesn't exist SQL=...
1
vote
1answer
447 views

K2 item association

I want to associate the k2 items in my website. I have been reading around on articles and forum saying that is possible and some others the opposite. So is there a way to associate my k2 items in the ...
0
votes
1answer
203 views

List only K2 items that have a video

I need to show a list of only the items from K2 articles that have the media (video) field filled. The K2 module permit this but has no pagination and I need it. Any idea or extensions to suggest? I ...
1
vote
1answer
392 views

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

Using K2 component. Did not like default look of files listed under categories (http://www.wilddusk.com/wild-india) with images of directories. How one can explore other visually-appealing way?
3
votes
1answer
346 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-...
0
votes
1answer
167 views

Why Item of a category is displayed in homepage, instead of its category menu item? [duplicate]

I am displaying several items in my homepage, which are grouped in a category. Let's say I have displayed several cars in my homepage, all of them are in the category 'Cars'. I have a menu item called ...
2
votes
1answer
755 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 ...
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, ...
1
vote
4answers
210 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
0answers
561 views

K2—load Items and Categories by ID

I am about to write a little plugin for K2 what enables the user to link Items/categories to items/categories. The backend part is working and I would like to load the items/categories in public ...
1
vote
1answer
379 views

K2 in a custom module

I am creating a custom module in a warp7 master theme, and I want to get information from K2 that is used as a content management option. I have created a sidebar and inserted a custom module (the ...
1
vote
1answer
520 views

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

I would like to remove the word "Featured" that appear every time I set an article as FEATURED in K2. For example, if my article meta title is: This is my article It changes to: This is My ...
1
vote
1answer
491 views

k2 plugin not fired by any event

here you are my xml <?xml version="1.0" encoding="utf-8"?> <extension version="3.0" type="plugin" group="k2" method="upgrade"> <name>com_related_news_programme</name> <...
1
vote
2answers
540 views

How can I limit what asset of K2 component a user group can see?

I'm using k2. I need to restrict "group A" users can see "Items" only. How can I do that? Any dirty/hacky ways are acceptable no matter what. Thank you.
1
vote
1answer
858 views

K2 Different Url same item

I can't manage how to solve this problem with K2. I have had a problem regarding this url: mysite.com/category/1/item-1 and mysite.com/category/item-1 and I managed to solve it using the .htaccess ...