Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
06 Nov 2015 14:44
Replied by Krikor Boghossian on topic How many K2 Items can I put in a K2 Category

How many K2 Items can I put in a K2 Category

Category: English K2 Community

Since you have many to many relationships, tags are a good idea.
There is no limit in how many items a category can have.

I have seen sites with 500k+ items which work like a charm.
  • Sean Carney
  • Sean Carney's Avatar
05 Nov 2015 19:52 - 05 Nov 2015 19:54

How many K2 Items can I put in a K2 Category

Category: English K2 Community

I have a project that I need to work on which I am thinking may require me to create thousands of K2 items with possibly hundreds of tags all published within potentially only one category. I am open to advice on the best way to do this and will explain now why I am thinking the way I am in case you all have some better advice for me.

We are gathering information on Scientific Studies where we will be summarizing the studies. They will all be related to disease conditions and lifestyle.

So, I was thinking to make a Category and Subcategory that would include Parent and child categories.

For example this could be some of the disease conditions:

Cancer
Lung Cancer
Breast Cancer
Prostate Cancer
etc...

Unfortunately there are some studies that will refer to more than one type of cancer. So, then I thought to use Tags instead of child categories.

At the same time there are other variables that I had also thought to use tags for. These are for things that can also relate to the disease conditions but are not disease conditions.

For example this could be some of the lifestyle conditions:

Exercise
Red Meat
Processed Meats
Pesticides
etc...

These Disease Items and Lifestyle Items really have a many to many relationship.

The Items will be very short in nature generally composing a very long title, a very short summary paragraph and then links the sources for more information about the studies.

How many items can I reasonably put within a K2 Category?

I have been considering only having ONE category and doing all the organizing with tags only. Is this a reasonable idea?

Is there a better way that I should be going instead of doing this through K2?

Thank you very much for any of your advice and suggestions!

Sean Carney
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
05 Nov 2015 16:03
Replied by Krikor Boghossian on topic Tags as Dropdown

Tags as Dropdown

Category: English K2 Community

You can select the "Select based tagging" setting in K2's advanced parameter. This will transform the tags into a multiple select item.
  • Annalise Duca
  • Annalise Duca's Avatar
05 Nov 2015 15:41
Tags as Dropdown was created by Annalise Duca

Tags as Dropdown

Category: English K2 Community

Can the tag be a dropdown menu when someone is adding a new K2 Item (from the backend or the frontend)? If so how is this done?
  • Petar Elez
  • Petar Elez's Avatar
05 Nov 2015 03:18 - 05 Nov 2015 03:19
Replied by Petar Elez on topic K2 Standalone?

K2 Standalone?

Category: English K2 Community

Let's be honest here.
.
1. Com_Content is 10 years behind k2. Every feature they've introduced in last few years has already been in k2 - such as user profile or tags for example.
2. Yes you can extend it with a ton of plugins and achieve the same result but then you have to maintain those plugins. ( after 7 years I myself am down to 2 providers - Joomlaworks and Nonumber, occasionally Gavick- that's it.)
3. Joomla updates with k2 are a breeze cause anything hardly ever breaks
4. Migrations between 1.5-2.5-3.0 was super easy as nothin was dependent on Joomla structure
5. Since joomlaworks templates I haven't used another club template as other are bloated, slow, difficult to configure, got to compress everything, etc compared to "non-nonsense" framework templates.
.
In last 4 years I've built 1, and I mean only 1, website without k2. And guess what, 4 months later I was rebuilding it with k2 cause it was too complex for client to manage content with a ton of plugins.
.
It is disappointing to see lack of communication and delays with k2, or not seeing a another template release, but ultimately k2 offers 90% of your use case scenarios - as it is!
.
What's hard is,
1) knowing there are solutions in k2v3 to some of the issues I'm having to create a workaround for using v2
2) i am also running out of ways to customize existing themes to make them look unique.

For those reasons I am anxiously awaiting v3 and new themes just like everyone else.

As for going with just Joomla core install... I would not consider it - zoo would be my next option.

As for the turmoil...
Joomla should come out with paid pro version and forget ads - community will support itself if they put out quality.
.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
04 Nov 2015 14:17
Replied by Krikor Boghossian on topic mp3 remote with protected link

mp3 remote with protected link

Category: English K2 Community

Yes without a plugin it will not work inside an item/ article.
You can use it in a K2 Tools modules though without the {source} tags.
  • Chris Hood
  • Chris Hood's Avatar
02 Nov 2015 15:33 - 02 Nov 2015 15:37

K2 stripping formatting from a custom field in TinyMCE

Category: English K2 Community

Hi all,

This is a tricky one involving some customisation - I've created a new column in the K2 Items Table in my site's database which I want to be editable on the K2 Items Admin page using the TinyMCE WYSIWYG editor. IE, I want it to retain the formatting tags on save.

This is essentially an 'opening hours' field - I wanted something akin to an Extra Field, but easier to work with in PHP. I anticipate some users might want to insert bullet points, bold or similar here.

I've added the field and WYSIWYG editor in the Admin K2 Items page no problem, but all tags are getting stripped on Save.

Things I've checked -
  • Database column type is correct ("Mediumtext") and it retains all tags when editing the raw database in phpMyAdmin
  • TinyMCE plugin is set to not strip anything other than 'applet'. I've tried adding some Valid elements here with no result.
  • All HTML filters in normal Joomla Configuration are set to 'no filtering'

One thing I have noticed is that in the K2 settings you can disable HTML Cleanup for Introtext and Fulltext, and both are disabled. So does this mean that K2 will strip all formatting from all fields other than those specified somewhere? I've noticed the Embed Video field retains all its HTML tags, so there's obviously something somewhere that determines fields which the system won't strip tags from.

Any advice would be greatly appreciated! Thank you :)
  • Septdir
  • Septdir's Avatar
31 Oct 2015 23:39 - 31 Oct 2015 23:53
Replied by Septdir on topic Eneble HTML on comment

Eneble HTML on comment

Category: English K2 Community

Krikor wrote: Enabling all tags can lead to potential security issues.
It leaves your site vulnerable to xss attacks

This is where the tags are being stripped.
github.com/joomlaworks/k2/blob/master/components/com_k2/models/item.php#L1140-L1141

You can look at php.net/manual/en/function.strip-tags.php to ensure only certain tags are allowed.

This I have tried from the beginning. considering it would be the best solution
for example $ row-> commentText = strip_tags ($ row-> commentText, '<div> <p> <strong>');
nor any result


I know that the inclusion of html is a threat to security. but at the moment the task to include all html tags in comments and I would not give up the full guide
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
30 Oct 2015 14:05
Replied by Krikor Boghossian on topic Eneble HTML on comment

Eneble HTML on comment

Category: English K2 Community

Enabling all tags can lead to potential security issues.
It leaves your site vulnerable to xss attacks

This is where the tags are being stripped.
github.com/joomlaworks/k2/blob/master/components/com_k2/models/item.php#L1140-L1141

You can look at php.net/manual/en/function.strip-tags.php to ensure only certain tags are allowed.
  • Christian Jull
  • Christian Jull's Avatar
29 Oct 2015 16:52 - 29 Oct 2015 16:53
Replied by Christian Jull on topic K2 items and category layouts not displaying

K2 items and category layouts not displaying

Category: English K2 Community

No 3rd party K2 extensions.

Everything is published. They all appear under here: www.rstc.fi/production-blog.

But the very same items won't appear here: www.rstc.fi/production-blog/stage-readings
or here: www.rstc.fi/production-blog/greater-tuna

If you click on the titles of the items listed on the front page module (to open the item itself), one displays, one doesn't.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
29 Oct 2015 14:21
Replied by Krikor Boghossian on topic Adding Style to Tags

Adding Style to Tags

Category: English K2 Community

The main page might be the component, take a look here on K2's file structure and overrides.
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

This will help you locate and override the files you need to edit.
  • Annalise Duca
  • Annalise Duca's Avatar
29 Oct 2015 12:28
Adding Style to Tags was created by Annalise Duca

Adding Style to Tags

Category: English K2 Community

May I start with saying that I really like the K2 tools!

I am trying to do a background colour (different) for each tag.

I am trying to change the file default.php in the folder /mod_k2_content/tmpl/Default/default.php however the change I am doing is not reflecting in the main page.

<a href="<?php echo $tag->link; ?>" id="tag<?php echo $tag->id; ?>"><?php echo $tag->name; ?></a>

What I basically would like to add is the style sheet id="tag"

Would appreciate if you can pinpoint if I need to edit another file.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
27 Oct 2015 15:00
Replied by Krikor Boghossian on topic Searching k2 items just by title and tags

Searching k2 items just by title and tags

Category: English K2 Community

Personally John, I am not such a fan of Smart search due to this fact: docs.joomla.org/Smart_Search_on_large_sites

I think you are describing a large site here so I would choose the custom autocomplete solution you where describing.

Finally have you contacted the Filter for K2 developers to see if the query can be added to the URL?
  • Lisa Zhen
  • Lisa Zhen's Avatar
27 Oct 2015 14:26
Replied by Lisa Zhen on topic Searching k2 items just by title and tags

Searching k2 items just by title and tags

Category: English K2 Community

I see this option of "Enable searching in tags" in the Joomla Search plugin, not the Joomla "Smart Search" plugin. Based on Joomla documentation, "Smart Search" replaces "Search" and "Search" should not be used.

That being said, when I started this exercise, I started with "Search" and clicking this box in the "Search - K2" plugin gave me a blank screen, so I dismissed "Search" and did not include it in the original post.

Where in the code tree is the plugin for "Search - K2" ? Maybe I could copy that tag search code and move it into the "Smart Search - K2" plugin.

Thanks for the prompt reply. Anyone else agree I should just do the "last solution" ?
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
27 Oct 2015 13:01
Replied by Krikor Boghossian on topic Searching k2 items just by title and tags

Searching k2 items just by title and tags

Category: English K2 Community

Hello,

The search plugin has the option to search on item's tags.
In the plugin simply enable the "Enable searching in tags" setting.

Now as for Google's search, results from your entire site will appear.
Finally your last solution seems to be the most user friendly.
  • Lisa Zhen
  • Lisa Zhen's Avatar
26 Oct 2015 17:47

Searching k2 items just by title and tags

Category: English K2 Community

I have 300 stores in our physical shopping mall each with their own k2 item. They all have K2 tags for the different products they sell. I want to make a search box that searches for the search term in just the K2 Item Title and K2 tag list. Not search the text of the K2 items.

Each store has its own page at /stores/Store-name.
If you click on a tag, then all the stores of that category show up in a list. For example the K2 tag "Shoes", shows a list currently at /stores/products/Shoes

Here's what I tried that doesn't work:
1. Joomla Smart Search - Returns list of K2 items, first group where the keyword shows in "Title". Second group where keyword shoes up in K2 Item text. K2 support forum says K2 Smart Search does not search tags, so no go.

2. Filter for K2 - I used to use this for filtering by tags, but I lose the URL structure. For example, every time you change the tag in the keyword box, the URL doesn't change, so the URL for "Shoes" or "Fragrances" is the same.

3. K2 Tools Search (with Google) - This gives me a lot of results in google results format, pages, upon pages. Way more than I need. Would be good for a general site search box.

4. K2 Tools Search (not using Google) - Returns an actual list of items formatted like a category_item list. Useful, but is searching into item text and not tags.

Any other suggestions?

A. Can I configure the Google search used by "K2 Tools Search" somewhere? How would I configure it to only return matches in "K2 Title" and "K2 Tags" ?

B. I think I'd like to use the Smart Search function. Has anyone enhanced the "Smart Search - k2" plugin to index by K2 tags? If not, where is this plugin code installed on a joomla site?

C. Since I'm only searching on Titles and Tags, should I just buildup my own Search using JQuery autocomplete and populate the limited search list with a quick call to the database? links I'm taking the customer to are either /stores/Storename or product categories, /stores/products/shoes. Maybe this is the easiest solution that I can implement and I can control completely in code.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
23 Oct 2015 12:29
Replied by Krikor Boghossian on topic K2 is generating the wrong OG Tag

K2 is generating the wrong OG Tag

Category: English K2 Community

The OG: image should be at least 200px in all dimensions.
waagstein.com/media/k2/items/cache/d6e7bc44feb1613d041d5385e5745b10_S.jpg is too small. You can change the size to M or L in K2's settings.

The /categories/ part is coming from your menu structure. This is Joomla!'s default behaviour.
  • Thorbjorn Waagstein
  • Thorbjorn Waagstein's Avatar
22 Oct 2015 21:30
Replied by Thorbjorn Waagstein on topic K2 is generating the wrong OG Tag

K2 is generating the wrong OG Tag

Category: English K2 Community

Thanks for the advice. My 404 error was actually the result of checking "URL rewrite" in Global Configuration. My website administrator has promised to move the site to an updated PHP. When he has done that I will follow your advice to update to Joomla 3.4.5.
With the update to Joomla 3.2.7 the problem with wrong OG tag has been solved, so the title is now OK. However, I also get the "category", which I am not interested in. And I lost the image when I past into Facebook, e.g.:
waagstein.com/index.php/en/contents-eng/categories/economics-politics/106-grand-canal
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
22 Oct 2015 14:59
Replied by Krikor Boghossian on topic K2 is generating the wrong OG Tag

K2 is generating the wrong OG Tag

Category: English K2 Community

You will need to update 3.4.5 later on today since there is a critical security issue.

For the 404 issue:
Make sure that you have properly setup your rewrite rules and SEF URLs.
docs.joomla.org/Enabling_Search_Engine_Friendly_(SEF)_URLs

Finally I rechecked nuBlog and the conclusion remains the same.
K2 only prints one set of og:tags (the correct set). The other sets are printed by a 3rd party extension.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
Displaying 1581 - 1600 out of 6582 results.

Powered by Kunena Forum