Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Shane
  • Shane's Avatar
28 Feb 2020 23:23
Replied by Shane on topic K2 Tags Canonical URL

K2 Tags Canonical URL

Category: English K2 Community

Thank you - works perfect!
  • Com3elles
  • Com3elles's Avatar
28 Feb 2020 21:55 - 28 Feb 2020 21:56
Replied by Com3elles on topic Multi select or checkbox

Multi select or checkbox

Category: English K2 Community

we can't use same script like k2 tag ? or use choice.js joshuajohnson.co.uk/Choices/ like joomla 4?
  • JoomlaWorks
  • JoomlaWorks's Avatar
28 Feb 2020 21:53
Replied by JoomlaWorks on topic k2 tag layout

k2 tag layout

Category: English K2 Community

If you search for "K2 filter" you'll find a few extensions that allow you to do this.

A couple noteworthy are:
joomcar.net/ (has a few related to K2 content filtering)
www.joomlart.com/joomla/extensions/ja-k2-search
  • JoomlaWorks
  • JoomlaWorks's Avatar
28 Feb 2020 20:52
Replied by JoomlaWorks on topic K2 Tags Canonical URL

K2 Tags Canonical URL

Category: English K2 Community

Use K2 v2.10.3 (dev) which has the option to disable canonical URLs: getk2.org/downloads/?f=K2_Development_Release.zip

For issues related to canonicals from the other extension, you should ask its developer.
  • Shane
  • Shane's Avatar
28 Feb 2020 12:23
Replied by Shane on topic k2 tag layout

k2 tag layout

Category: English K2 Community

You could display the tags horizontally using custom CSS styling.... or, maybe create an actual menu, with a menu item for each tag.

I'm not so sure what you mean exactly with the featured items request. You should be able to control the display of specific items by assigning those items to a dedicated category, or via one or more K2 content modules. Just a thought.
  • Shane
  • Shane's Avatar
28 Feb 2020 12:16
K2 Tags Canonical URL was created by Shane

K2 Tags Canonical URL

Category: English K2 Community

Hi... I have disabled Canonical URLs for K2Canonical URLs (as I have a plugin managing all Canonical URLs throughout the site), but I am still getting a Canonicals in the source code for K2 Tags. Any advice? Basically, I have two canonical URLs for K2 Tags.

Incidentally, with K2 Canonicals disabled, the Canonical URL that appears for K2 Tags goes nowhere - only when it's enabled does it actually point to a page. Also, I have all tags assigned to menu items, so ideally need the canonical to be the menu item alias, but the URL being generated does not do this.

Any advice would be much appreciated...

Thank you!
  • Moustakakis
  • Moustakakis's Avatar
26 Feb 2020 04:32
k2 tag layout was created by Moustakakis

k2 tag layout

Category: English K2 Community

Hello,

I would like to ask you if something is possible to build with k2.

I have some products to show in grid layout. I would like above those items to have one block with filters-tags and when I click to one filter (tag) to show only the items that belong to this category in the same grid layout. Also I would like to show some of these products (i.e. features) in homepage without duplicate them. It is too difficult to explain exactly what I mean. I have attached to you an image to show you the grid layout and the filter above.

Thank you.
  • Com3elles
  • Com3elles's Avatar
24 Feb 2020 22:01
Multi select or checkbox was created by Com3elles

Multi select or checkbox

Category: English K2 Community

hello i k2 i didn't find a checkbox field ? my mistake ?
i try multi select field but its realy un-usefull field (ctrl+click) ...
its possible to use select2 js script like joomla tag ?
regards
  • Com3elles
  • Com3elles's Avatar
24 Feb 2020 10:03
Replied by Com3elles on topic Module display item according field value

Module display item according field value

Category: English K2 Community

but i didn't found anything all works only via tags ...
maybe i can add a function inside my template ...
but can you help me with sql request ?
SELECT * FROM XXX_k2_items WHERE extra_fields = 'MYVALUE'
i didn't find a good way to search inside extra_fields
regards
  • Giles Davidson
  • Giles Davidson's Avatar
16 Feb 2020 17:22
Replied by Giles Davidson on topic Invalid backend response. Data is not JSON.

Invalid backend response. Data is not JSON.

Category: English K2 Community

Apologies for lack of response - my original reply was trashed in a power outage, and subsequently I've been away.

In administrator/index.php line 490:12 the following URL is invoked:
url : '/test/j3/administrator/index.php?option=com_k2&view=media&task=connector',
height: 600

and this fails with reported message - I'm not seeing a Response tab as the error is clearly inside the the K2 Media module. Can you be more specific in the steps to follow from this point.

Thanks
  • Jennie Dawson
  • Jennie Dawson's Avatar
14 Feb 2020 19:45

catItemIsFeatured class not being generated after K2 upgrade

Category: English K2 Community

Sorry Fotis, I don't understand. I don't think I have written this clearly enough for you. I have possibly confused things talking about the HTML overrides as I thought they might contain out-dated code which was causing a problem. But I have now brought these up to date so it can't be this.

I am using k2 content module to display items on the home page of this site: www.dyfi-cottages.co.uk/

This generates a list of results using <li> tags, unlike the component which uses <div> tags.

Prior to the K2 upgrade, when an item was selected as 'featured' in the backend, the relevant <li> tag contained the class CatItemIsFeatured. And I have added styling to my template that uses this class.

After the upgrade it no longer contains this class. Therefore my styling has no effect. I cannot add a style if the CSS selector is missing from the HTML.

I have tried to copy the code that creates this class from the K2 component category_item.php to the li tag in my HTML override for the module

But just created PHP error, I don't know enough to do this.

Really appreciate any help you are able to give me

Best regards
Jennie
  • Jennie Dawson
  • Jennie Dawson's Avatar
14 Feb 2020 18:12 - 14 Feb 2020 18:53

catItemIsFeatured class not being generated after K2 upgrade

Category: English K2 Community

Oh, I've now managed to fix the override as I spotted what I missed. I needed to remove the labels as well. Though I do see from the new code that I no longer need to do this as your output now contains unique class for each extra field!

However I still don't have the class "CatItemIsFeatured" on the li tag, so I'm back to square 1.

I have looked at the php code for the li tag in both the old and the new default.php in mod_k2_content and it is identical. There is nothing in either of them that generates the class, but clearly it was there before somehow. I also have identical module on client's other site and that has the class on the li tag.

Thanks
Jennie
  • Jennie Dawson
  • Jennie Dawson's Avatar
14 Feb 2020 16:04

catItemIsFeatured class not being generated after K2 upgrade

Category: English K2 Community

Hi Fotis

I haven't modified the core K2 template files, I always override styles from my main template.css file, which always loads after any module css stylesheets.

The problem is that the class is missing from the k2 output in the first place. I don't know why.

If you look at my screenshots, the K2 item "The Lodge, Panteidal" is set as featured, but in the output the <li> tag for this item contains only the class="even" and is missing the class "CatItemIsFeatured".

Hope that makes sense!

Thanks again

Best wishes
Jennie
  • Jennie Dawson
  • Jennie Dawson's Avatar
14 Feb 2020 15:27

catItemIsFeatured class not being generated after K2 upgrade

Category: English K2 Community

Hi

I ran some upgrades on one of my K2 sites and upgraded Joomla 3.9.14 to 3.9.15 and K2 from 2.9 to 2.10.2.

Afterwards the customer noticed an icon was missing which I'd styled to appear when the item was ticked as featured.

When I checked the output I could see the the catItemIsFeatured class was missing on the li tag. See screenshots showing item in backend and the code on the frontend.

URL is: www.dyfi-cottages.co.uk/

Please help

Many thanks
Jennie
  • JoomlaWorks
  • JoomlaWorks's Avatar
14 Feb 2020 12:49
Replied by JoomlaWorks on topic k2 rss creator needed

k2 rss creator needed

Category: English K2 Community

Appending ?format=feed to URLs will only work on K2 category, tag, user, date and search pages, e.g. www.jjasportstudio.com/index.php/layout/content/15-wwe.html?format=feed

If you homepage is made up of modules, then it can't product a feed output.

But what you can do is create a menu item that points to all K2 categories, e.g. "All News" and then place a direct link to the feed URL of that page somewhere in your homepage for users to grab.
  • Jennie Dawson
  • Jennie Dawson's Avatar
13 Feb 2020 18:12

Set ID on UL tag in K2 tools module (Categories List Menu)

Category: English K2 Community

Thank you Fotis, that works brilliantly for me now!
x
  • JoomlaWorks
  • JoomlaWorks's Avatar
13 Feb 2020 17:55

Set ID on UL tag in K2 tools module (Categories List Menu)

Category: English K2 Community

There is no need to modify the <ul> element. Simply adapt your JS code's selector, e.g. change $('#menu') to $('#k2ModuleBoxXYZ ul') where "k2ModuleBoxXYZ" is the ID generated by the K2 module.

These selectors work like CSS selectors so they are easy to manipulate.

If on the other hand this is not possible to alter on your side, e.g. it's hardcoded on the template, you'll have to consult your template provider.

The reason you can't directly change the ul element in the categories menu is because it's part of the generated structure and cannot easily be overridden in a template.
  • Jennie Dawson
  • Jennie Dawson's Avatar
12 Feb 2020 01:24

Set ID on UL tag in K2 tools module (Categories List Menu)

Category: English K2 Community

Hi Fotis
I had looked at this file but the UL tag is not being generated by the PHP code in categories.php.
I need to set the ID on the UL tag, which is referenced in the following JS code in my template:

<script>var menu1 = $('#menu');
var menu2 = $('#leftnav');

menu1.slicknav({
prependTo: '#first',
label: 'Main Menu'
});

menu2.slicknav({
prependTo: '#second',
label: ''
});
</script>

Thanks, Jennie
  • JoomlaWorks
  • JoomlaWorks's Avatar
10 Feb 2020 23:30

Set ID on UL tag in K2 tools module (Categories List Menu)

Category: English K2 Community

Actually, an ID is auto-generated for all K2 modules. In your case, it's this: github.com/getk2/k2/blob/master/modules/mod_k2_tools/tmpl/categories.php#L15

You can either use that generated ID, or simply make an override for the category listing inside your Joomla template and change the HTML wrappers as you want.

More on K2 and overrides here: getk2.org/documentation/tutorials/templating-with-k2-and-the-concepts-of-sub-templates
Displaying 381 - 400 out of 6582 results.

Powered by Kunena Forum