Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Carlos Carvalho
  • Carlos Carvalho's Avatar
23 Nov 2017 19:19
K2 Search and Tags result page - With SEF was created by Carlos Carvalho

K2 Search and Tags result page - With SEF

Category: English K2 Community

Hey,

i am having this problem with the k2 search and tag results.

If i turn SEF on the results will always show on the current page but if i turn SEF off the results will show in a new page (Hidden menu link i created).

How can i make it work with SEF on?

Thanks in advance,
Carlos Carvalho
  • william white
  • william white's Avatar
22 Nov 2017 21:58
Replied by william white on topic K2 v.2.8.0 not working with Simple Image Gallery Pro

K2 v.2.8.0 not working with Simple Image Gallery Pro

Category: English K2 Community

It seems to work ok for me with the latest versions. The inline text before the gallery tag is shown above the gallery
  • Rob L
  • Rob L's Avatar
22 Nov 2017 20:44
Replied by Rob L on topic K2 Item Ordering

K2 Item Ordering

Category: English K2 Community

Agreed. Chronological ordering wont work for me because in my front end, it would look like there was no order to the products. Any time a new product was entered, I'd have to re-edit the creation dates of all surrounding items in order to get it to display in the proper position. Something is tying the Items to their listed position and not allowing them to move higher than the Items of another category. I took a stab at it possibly being date of entry but that didn't work. Even though in the K2 Category manager I have them organized in the positioning order I'd like them to display, the K2 Items manager is ignoring this ordering preference. I don't know what dictates the order the Items appear.

It seems like the Items, in theory, should follow the same order priority positioning as set in the Category manager.

If a user creates:
Categories:
- Category A
- Category B

The items should in kind follow as:
Items:
- Items assigned to Category A
- Items assigned to Category B

Instead we can unfortunately be stuck with (as in my case):
Items:
- Items assigned to Category B
- Items assigned to Category A

And there's apparently no way to correct this currently. A possible solution, that I don't really love, is to have just one single K2 Category, such as "Products", and use Tags in place of Categories. Tag each item with the keyword of what would have been its Category name and you'll be able to use the "Select Tag" dropdown option in the Items manager to sort for Category name (requires allowing that option in the K2 settings, of course). Since there's only one Category, you're free to organize all Items, regardless of Category tag to the order you think they should appear in your front end. It defeats the purpose of having true K2 Categories, but in lieu of having the ability to organize your Categories' display order, it's a temporary bandaid that works.

I think it should be considered and corrected though in future releases to have the Items order match the Categories order.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
20 Nov 2017 20:34
Replied by Krikor Boghossian on topic latest items from category double item pages.

latest items from category double item pages.

Category: English K2 Community

Hello,

The best approach would be to make a menu item towards each K2 category separately. Keep the "link to all item categories" menu item as well for tag and user aliases.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
17 Nov 2017 18:40
  • burnyourears
  • burnyourears's Avatar
17 Nov 2017 13:31
Replied by burnyourears on topic Merge k2 tags with different syntax but same content

Merge k2 tags with different syntax but same content

Category: English K2 Community

Oh, think I missed the last answer which could lead to the solution via the WPPipes Add-on on virtualstuff.info/product/k2-tags-merge/

So I'lll give it a try. Would be very cool...

Thank you!
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
13 Nov 2017 22:42
Replied by Krikor Boghossian on topic k2 content x images

k2 content x images

Category: English K2 Community

Hello Mieco,

The limit by default will strip all HTML tags when applied.
This happens to ensure that there are not unclosed HTML tags.

You can address this issue two ways.
a) Use K2 Images instead of inline images
b) Use a specified introtext either by using two editors (check K2's settings) or by using the read-more button.
  • Mauri
  • Mauri's Avatar
10 Nov 2017 13:41
[SOLVED] Disable tags in article was created by Mauri

[SOLVED] Disable tags in article

Category: English K2 Community

Hi all, how can I disable tags in every article of my website? I go to k2 preferences, design --> Item tags --> Hide and still seeing all the tags in every article, Its there any other option for hiding tags definitely?

Thanks in advance,

Mauri
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
07 Nov 2017 21:35
Replied by Krikor Boghossian on topic [SOLVED] Ordering K2 tags alphabetically

[SOLVED] Ordering K2 tags alphabetically

Category: English K2 Community

It depends on which tags you want to sort.
The code here is for the item.php file which should be overriden.
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
07 Nov 2017 21:12
Replied by Krikor Boghossian on topic Tag subtemplte does not override

Tag subtemplte does not override

Category: English K2 Community

I have to be honest, this requires medium to strong coding skills.
You can create variables depending on the parent menu item or based on URLs. Some food for thought : github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L28-L36
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
07 Nov 2017 19:01
Replied by Krikor Boghossian on topic Autocomplete in K2 administrator

Autocomplete in K2 administrator

Category: English K2 Community

Hello,

Autocomplete was used only in tags. You were probably seeing the browser's default autocomplete.
  • Nadal Kumar
  • Nadal Kumar's Avatar
07 Nov 2017 03:01

Add an alternative title field to use for social media posts

Category: English K2 Community

The facebook gods have removed the ability to alter data scraped from pages, due to abusers who change the title to mislead viewers. While there were evil doers wrecking the system, there are good reasons why one would want the post title, text and even image to differ from the actual post at the website.
  • Your actual webpage post title and image may be considered as 'NSFW' and offend some squeamish folks so you need to use a much more conservative, yet relative combination to serve to social media.
  • Your page title may be quite long and it is being clipped so it doesn't make sense when shared an you may not get the clicks

Add the following to the php head of your K2 template item.php
// check if fields enable and in use for current item then create a variable for the fields of the assigned group if( $this->item->params->get('itemExtraFields') && count($this->item->extra_fields) ) { $fields = $this->item->extraFields; } $document = JFactory::getDocument(); // if social title is set, remove default title and write new title if( isset($fields->socialtitle->value) ) { // remove the existing og meta title unset($document->_metaTags['name']['og:title']); // set the og meta title $document->setMetaData('og:title', $fields->socialtitle->value, 'property'); $document->setMetaData('twitter:title', $fields->socialtitle->value); } if( isset($fields->socialimage->value) ) { unset($document->_metaTags['name']['og:image']); // set the image url as written in the custom field or add the site url if only a relative url was entered $socialimage = $fields->socialimage->value; if( strstr($fields->socialimage->value, 'http') === false ) $socialimage = JUri::root().'images/'.$fields->socialimage->value; $document->setMetaData('og:image', $socialimage, 'property'); $document->setMetaData('twitter:image', $socialimage); }
  • razen
  • razen's Avatar
31 Oct 2017 18:29
Replied by razen on topic [SOLVED] Ordering K2 tags alphabetically

[SOLVED] Ordering K2 tags alphabetically

Category: English K2 Community

I never looked into this, but I'm quite sure the file for this is in administrator/components/com_k2 or so.

And I also think that my method wont work for those backend-tags, cause those are no simple links
  • Christophe BERTRAND
  • Christophe BERTRAND's Avatar
31 Oct 2017 17:52 - 31 Oct 2017 17:53
Replied by Christophe BERTRAND on topic [SOLVED] Ordering K2 tags alphabetically

[SOLVED] Ordering K2 tags alphabetically

Category: English K2 Community

Hi Razen,
Thanks for your response.
I will try, but so far I changed it where yoy say.
Where I want to sort the Tags is when I create (or edit) a K2 item in the back-end (or front-end) in the left box tags (I think by default thy are sorted out by # of IDs).
For this, should the changes be in templates/[yourtemplate]/com_k2/default/item.php ? or in an itemform.php ?
Thanks
Christophe
  • razen
  • razen's Avatar
31 Oct 2017 13:59
Replied by razen on topic [SOLVED] Ordering K2 tags alphabetically

[SOLVED] Ordering K2 tags alphabetically

Category: English K2 Community

Where do you want to modify the sorting of the tags?

I would recommend that you first identify the right template with an X somwhere in the file temporary untill you found it - cause youÄre simply in the wrong file yet (as far as I can see).

For the frontend, there should be a file in the template you use - if it doesnt exist, create it:
templates/[yourtemplate]/com_k2/default/item.php
  • krmr
  • krmr's Avatar
30 Oct 2017 19:21
Replied by krmr on topic Tag subtemplte does not override

Tag subtemplte does not override

Category: English K2 Community

Thank you very much William White, and apologies for my delayed reply!

I am overriding mod_k2_tools, and modified tags.php in the module folder. However, it is only one instance of the module indeed that I can override, as far as my knowledge reaches, no?
I expected that if I modify the tag.php file located in each of the overriden sub-template of k2 - my-template/html/com_k2/my-sub-template
then each instance of mod_k2_tools would display tag-cloud from a specified category (as provided in the module options), and then each tag will display items selected by the tag, using the template specified by tag.php at the category sub-template folder.
Lofical, isn't it?

Thanks for your suggestion, but could you elaborate on the structure of the override you mean. I can't guess what I could do. And yea, I would need more than one instance.
Is it possible?
  • Christophe BERTRAND
  • Christophe BERTRAND's Avatar
30 Oct 2017 17:55
Replied by Christophe BERTRAND on topic [SOLVED] Ordering K2 tags alphabetically

[SOLVED] Ordering K2 tags alphabetically

Category: English K2 Community

Hi,
Sorry to insist on this post.
I understand Razen and Catherine made it work, but I can't.
I am probably missing something, but whatever item.php file I modify (in template/html/... or even in administrator/component/...) with Razen's method, the tags when I add (or edit) a k2 item never order in alphabetical order !
Could you please help again ?
Thanks
  • william white
  • william white's Avatar
27 Oct 2017 17:59
Replied by william white on topic Tag subtemplte does not override

Tag subtemplte does not override

Category: English K2 Community

Are you overriding mod_k2_tools If not you probably should, and there is a tag.php file there. The structure of the override may be a bit different than a normal k2 category override, and you will probably only be able to use one instance of it unless you create a copy of the module, rename it and override it for the second version.
  • krmr
  • krmr's Avatar
27 Oct 2017 15:02 - 27 Oct 2017 15:21
Tag subtemplte does not override was created by krmr

Tag subtemplte does not override

Category: English K2 Community

Hi there!
I have an issue with overriding tag.php template. I got 2 sub templates for 2 different categories in /mytemplate/html/com_k2/.
Then I use k2 tools tag cloud functionality as a submenu, and all tag links generate tag listings in the default template.
I am sure I have done everything right. Reinstalled K2 several times. J3.8.1 K2 2.8.0.
Please give some hints what might be the cause of this!
greetings

The two instances of K2 tools tag cloud modules are published here: 2017.sklada.bg/bg/novini/ and here: 2017.sklada.bg/bg/izbrani-brandove/
As it might be seen the tag template in the second link is OK since it follows the menu link template (category), but in the first link as soon as any of the two submenu links (tags) "изложба | изложения" is clicked the tag listing has a template that has nothing to do with the previous view
Displaying 781 - 800 out of 6582 results.

Powered by Kunena Forum