Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Usop Wilcha
  • Usop Wilcha's Avatar
21 Apr 2015 05:11
Auto Insert Snippets Tag was created by Usop Wilcha

Auto Insert Snippets Tag

Category: English K2 Community

Hello

This is the scenario,

I have K2 site, that has quite an amount of items

Just a recent requirement, i need to put some script inside of every items created

I was imagining a solution like below, or sort of..

a plugin that can insert automatically, any pre defined scrip/code/tag into k2 items, if can select by categories will be highly appreciated

Any ideas, or perhaps any existed solutions for this task?

Thanks
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
20 Apr 2015 20:32
Replied by Krikor Boghossian on topic embed video in user page

embed video in user page

Category: English K2 Community

Oh I misunderstood you.

The overriding part still applies, but disregard the latter part.
The link I am attaching does the same in tag listings. The code is almost the same and the logic/ method is exactly the same.
www.joomlaworks.net/forum/k2-en/41103-use-plugins-in-tag-view#143141
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
20 Apr 2015 20:24
Replied by Krikor Boghossian on topic Available tags order

Available tags order

Category: English K2 Community

Unfortunately the only way to do that would be by hacking K2.
I would recommend against doing that.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
20 Apr 2015 20:23
Replied by Krikor Boghossian on topic K2 language pack

K2 language pack

Category: English K2 Community

Unzip the file you downloaded and see it indeed contains the language files. Sometimes Transifex might have some outages (rarely but it can happen).
  • Conversal
  • Conversal's Avatar
17 Apr 2015 12:35
Replied by Conversal on topic K2 very slow loading times on particular site

K2 very slow loading times on particular site

Category: English K2 Community

No outages on server, we have several sites on this website which all load quite good.

Already cleared my cache. So the pages under "wijnen" (and below categories) load in max 2-3 sec on your end?

Jeroen
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
17 Apr 2015 12:25
Replied by Krikor Boghossian on topic K2 very slow loading times on particular site

K2 very slow loading times on particular site

Category: English K2 Community

On my end yes, it is loading quite normally.
Did you try clearing your browser's cache?

Where you experiencing any server outages?
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
15 Apr 2015 13:28
Replied by Krikor Boghossian on topic Available tags order

Available tags order

Category: English K2 Community

I refer to the Parameters option at K2> Tab Design and Views> third option: Design and View Options.


These are for the front-end only.

As for the available tags these are displayed without sorting for performance reasons.
  • Federico
  • Federico's Avatar
14 Apr 2015 18:46

Problema durante creazione o salvataggio articolo

Category: Comunità italiana K2

Ciao a tutti
ho installato sul mio sito joomla (vs. 3.4.1) l'ultima versione di K2 (vs. 2.6.9).

Quando clicco sul pulsante nuovo articolo, prima di entrare nella pagina dell'articolo, mi compare una finestra con al centro un pop-up con il seguente messaggio: "L'articolo deve avere un titolo" con sotto il pulsante OK.

Se schiaccio su Ok mi indirizza sulla pagina dell'articolo da creare.

La cosa buffa e che ogni volta che SALVO o CREO UN NUOVO ARTICOLO mi esce sempre la stessa finestra: è frustrante!!!!

Ho provato anche a disinstallare tutto, svuotato la cache sia del browser che di joomla, reinstallato tutto ma niente...

Qualcuno sa aiutarmi? Devo consegnare questo sito ad un cliente che deve creare articoli ed il piccolo problema è molto fastidioso.

Aspetto Vostre notizie

Grazie
  • Montse
  • Montse's Avatar
14 Apr 2015 18:25
Replied by Montse on topic Available tags order

Available tags order

Category: English K2 Community

Hello,
I'm not using any plugin.
I refer to the Parameters option at K2> Tab Design and Views> third option: Design and View Options.
I am using Joomla 2.5.28 and K2 v2.6.9.

Tags which I refer is to select those that appear in the frontend editor in the left column how Tags Available.
  • Lefteris
  • Lefteris's Avatar
14 Apr 2015 18:04
Replied by Lefteris on topic Available tags order

Available tags order

Category: English K2 Community

Hi,

There is no option "Design and viewing options for listings labels" in K2 are you using a different extension or a K2 plugin? The tags autocomplete search results are displayed without sorting for performance reasons.
  • Ronny Van Der Borght
  • Ronny Van Der Borght's Avatar
14 Apr 2015 15:52
Replied by Ronny Van Der Borght on topic [SOLVED] Use plugins in tag-view

[SOLVED] Use plugins in tag-view

Category: English K2 Community

Great that's it !

I slightly modified this to to the same for allvideo's, so you could use both plugins:
<?php if(count($this->items)): ?> <?php echo $item->introtext; ?> <?php $dispatcher = JDispatcher::getInstance(); JPluginHelper::importPlugin('content'); $params = JComponentHelper::getParams('com_k2'); ?> <?php foreach($this->items as $item): ?> <?php if ($item->gallery) { if (JString::strpos($item->gallery, 'flickr.com') === false) { $item->gallery = "{gallery}{$item->id}{/gallery}"; } $params->set('galleries_rootfolder', 'media/k2/galleries'); $item->text = $item->gallery; $dispatcher->trigger('onContentPrepare', array( 'com_k2.itemlist', &$item, &$params, $limitstart )); $item->gallery = $item->text; } ?> <?php echo $item->gallery; ?> <?php if ($item->video) { $item->gallery = "{youtube}{$item->id}{/youtube}"; $item->text = $item->video; $dispatcher->trigger('onContentPrepare', array( 'com_k2.itemlist', &$item, &$params, $limitstart )); $item->video = $item->text; } ?> <?php echo $item->video; ?> <?php endforeach; ?> <?php endif; ?>
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
14 Apr 2015 15:45
  • Dani
  • Dani's Avatar
14 Apr 2015 15:26
Replied by Dani on topic Tags order in front end

Tags order in front end

Category: English K2 Community

Thanks for your help.

The problem is i don't have the route:
templates\theme_###\html\com_k2\templates\portfolio\category.php

I have: templates\theme_###\html\com_k2\templates\category.php (portfolio folder isn't there)

if i open that category.php, in the code there is nothing about tags.

Any idea?
  • Lefteris
  • Lefteris's Avatar
14 Apr 2015 15:08
Replied by Lefteris on topic [SOLVED] Use plugins in tag-view

[SOLVED] Use plugins in tag-view

Category: English K2 Community

Hi,

This is not as simple as that. Try this code:
<?php if(count($this->items)): ?> <?php $dispatcher = JDispatcher::getInstance(); JPluginHelper::importPlugin('content'); $params = JComponentHelper::getParams('com_k2'); ?> <?php foreach($this->items as $item): ?> <?php if ($item->gallery) { if (JString::strpos($item->gallery, 'flickr.com') === false) { $item->gallery = "{gallery}{$item->id}{/gallery}"; } $params->set('galleries_rootfolder', 'media/k2/galleries'); $item->text = $item->gallery; $dispatcher->trigger('onContentPrepare', array( 'com_k2.itemlist', &$item, &$params, $limitstart )); $item->gallery = $item->text; } ?> <?php echo $item->introtext; ?> <?php echo $item->gallery; ?> <?php endforeach; ?> <?php endif; ?>
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
14 Apr 2015 14:32
Replied by Krikor Boghossian on topic Tags order in front end

Tags order in front end

Category: English K2 Community

This post is really useful
www.templatemonster.com/help/joomla-2-5-x-how-to-sort-k2-tags.html

Also remember to override K2's files instead of directly editing them.
Read here how to do so: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
  • Montse
  • Montse's Avatar
14 Apr 2015 14:25
Available tags order was created by Montse

Available tags order

Category: English K2 Community

Good morning,

I need to know whether in the Frontend K2 editor, both when editing article as to add, it would be possible to alphabetize the "Available tags".

In K2 Parameters I have marked in "Design and viewing options for listings labels"> Order item (for tag lists> Alphabetical Title only.)

Actually, the order that it showing me is from "id".

Thank you very much in advance for the help.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
14 Apr 2015 13:15
Replied by Krikor Boghossian on topic Search results optimizing

Search results optimizing

Category: English K2 Community

Create a new K2 category menu item and leave the category selection empty. You can call it eg: content.

This way all orphan tags users and search results will render through that menu item.
  • Dani
  • Dani's Avatar
13 Apr 2015 18:55 - 13 Apr 2015 18:58
Tags order in front end was created by Dani

Tags order in front end

Category: English K2 Community

Hello.

I need to know if is possible change the order of the tags while making new article or editing it in the front end of K2.

The default order is by ID, i need to change to A-z alphabetical order.

Thanks.
  • Ronny Van Der Borght
  • Ronny Van Der Borght's Avatar
13 Apr 2015 18:02
[SOLVED] Use plugins in tag-view was created by Ronny Van Der Borght

[SOLVED] Use plugins in tag-view

Category: English K2 Community

Hi,
I would like to use plugins in the tag-view (SIGpro and Allvideos). I created an override for tag.php and altered the foreach loop like this:
<?php if(count($this->items)): ?> <?php foreach($this->items as $item): ?> <?php $dispatcher = JDispatcher::getInstance(); JPluginHelper::importPlugin('k2'); $results = $dispatcher->trigger('K2AfterDisplayContent', array(&$item, &$params, &$limitstart)); $this->event->K2AfterDisplayContent = trim(implode("\n", $results)); ?> <?php echo $item->introtext; ?> <?php echo $item->gallery; ?> <?php endforeach; ?> <?php endif; ?>
But it does not work. My output is just {gallery}60{/gallery} , on other views (item.php, category_item.php) it is working perfecly.
I'm not sure if I need to use K2AfterDisplayContent. Does anybody know where or how the plugins need to be loaded ?

K2 v 2.6.9, Joomla 3.4.1
  • Daniel
  • Daniel's Avatar
10 Apr 2015 02:05

How to access extra fields in author view

Category: English K2 Community

Hi there,

I'm trying to show the extra fields for each item in the author view (user.php) but I'm having some trouble and I hope you can help me.

I was trying to follow the same technique that I used to show the item's extra fields in the tag view (tag.php) but there is something different that escapes me.

First difference I noticed is that in the K2 global configuration the “Layouts and views” for author pages does not have the option to enable/disable extra fields. Whereas this option is available in the tags section under “Layouts and views” as well.

In tags.php I can index the extra fields for each item as follows:
$extraitem = array();
// Extra field array indexed by field alias
foreach($item->extra_fields as $extrafield){
$extraitem[$extrafield->alias] = $extrafield;
}

Whereas if I use the same code in user.php I get an error message: “Warning: Invalid argument supplied for foreach() in...”

Then I tried to do “print_r ($item->extra_fields)” and in tags.php I get an array with all the extra fields per item as expected, however the same code applied in user.php gets me string with just the ID and value of the extra fields.

So in user.php I cannot index the extra fields with the same code that I use in tags.php since $item->extra_fields is not an array.

What can I do to index the extra fields for each item in the author view (user.php)?

I'm using K2 2.6.9 and Joomla 3.4.1

Many thanks!
Displaying 1921 - 1940 out of 6582 results.

Powered by Kunena Forum