Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Robs
  • Robs's Avatar
11 May 2012 08:14 - 11 May 2012 10:52
Replied by Robs on topic extra fields in related items by tag

extra fields in related items by tag

Category: English K2 Community

Hi enano,

can you please help me, i have the same problem like you, i need to put in some extrafield in the items, that appear as "related items by tag" underneath an item. Like in your post, i replaced everything between
enano wrote: thank you very much mat ... works but I think it isn't very advisable to add sql in the view and not respecting the MVC pattern that is why I had thought of adding sql queries in the corresponding model but my level of knowledge does not allow me. .. I will continue looking for ways to integrate in the mvc pattern ... here is the full code
 
  • Giorgos Gotsis
  • Giorgos Gotsis's Avatar
10 May 2012 16:31
Replied by Giorgos Gotsis on topic Display items by tag. Show "Read more..."

Display items by tag. Show "Read more..."

Category: English K2 Community

i think it's really terible & i can't fint a solution for this.
the below orders...
www.kavdesign.net/blog/coding/modifying-the-tags-results-page-for-joomla-k2-creating-a-k2-template-over-ride/
... doesn't work for me
any help please???
  • Christoph Böhler
  • Christoph Böhler's Avatar
09 May 2012 12:14
Sortigng the K2 Tags Newsfeed? was created by Christoph Böhler

Sortigng the K2 Tags Newsfeed?

Category: English K2 Community

I use a newsfeed for other sides. It is

www.helden.de/index.php/component/k2/itemlist/tag/rpg?format=feed

but I wand to put the newest Item on first position How does it works
  • Jean-Francois Mercier
  • Jean-Francois Mercier's Avatar
09 May 2012 11:38
Replied by Jean-Francois Mercier on topic Modifier l'apparence des articles K2

Modifier l'apparence des articles K2

Category: Communauté française K2

Désolé de taper l'incruste dans un topic qui n'est pas le mien, mais j'ai effectué exactement les mêmes manipulations et aucun changement ne se produit...
J'ai tenté de déplacer les div dans item.php, puis dans tag.php, generic.php... avec à chaque fois le même résultat.
En désespoir de cause, j'ai supprimé le répertoire com_k2 que j'avais créé dans mon template et j'ai été modifier les fichiers (item, tag, generic) directement dans le répertoire de K2.
Toujours aucune modification de prise en compte.
J'ai alors carrément supprimé ces fichiers, et là surprise: aucun changement!! ma page s'affiche toujours de la même façon...
Je commence à y perdre mon latin
Une aide serait bienvenue

Pour info:
- Joomla 1.5
- K2 2.5.6
  • Simon
  • Simon's Avatar
06 May 2012 17:31
HTML5 Geolocation Field was created by Simon

HTML5 Geolocation Field

Category: English K2 Community

Hi K2 Community.

I just started a new website, in which I want to allow users to tag their articles with their actual geographic position. I want the position to be added automatically in a hidden field. I guess this field doesn't exist so far, so I would like to know if there is a walkthrough/tutorial on how to create custom fields? Or is there maybe anyone out there who is working on a similar thing?
In the end all the articles should be displayed/clickable on a map.

Thanks in advance.
  • Derek Cicero
  • Derek Cicero's Avatar
06 May 2012 16:39
Tag Cloud not moving or changing... was created by Derek Cicero

Tag Cloud not moving or changing...

Category: English K2 Community

Can somebody please help me and let me know how this Tag Cloud is supposed to work? It hasn't changed for 3 months now.

thesurfersview.com ( home page)

I posted and got no responses last week. somebody please help me. I can't find a fix and it seems the only support for this is on here.

Nor is there any other tag clouds that work the way I want with K2 items. I tried a anything I could find online.. They all move and change.. They just take any words out of a title/ content. I want the tags that I choose to make tags.
  • enano
  • enano's Avatar
04 May 2012 20:29 - 04 May 2012 20:33
Replied by enano on topic extra fields in related items by tag

extra fields in related items by tag

Category: English K2 Community

thank you very much mat ... works but I think it isn't very advisable to add sql in the view and not respecting the MVC pattern that is why I had thought of adding sql queries in the corresponding model but my level of knowledge does not allow me. .. I will continue looking for ways to integrate in the mvc pattern ... here is the full code
 
  • matthew turner
  • matthew turner's Avatar
04 May 2012 19:01 - 04 May 2012 19:02
Replied by matthew turner on topic extra fields in related items by tag

extra fields in related items by tag

Category: English K2 Community

Hi,
I just thought I would try this for you and it works!
Add the next bit of code inside the foreach($this->relatedItems as $key=>$item): part of the item.php template override file...


$MYobj = $item->extra_fields;
$obj = json_decode($MYobj);


$ItemExtrafieldID = $obj[0]->id;

$db = &JFactory::getDBO();
$query = "SELECT *".
" FROM #__k2_extra_fields";

$query .= " WHERE published = 1"
. " AND id = $ItemExtrafieldID";

$db->setQuery($query);
$data = $db->loadObjectlist();



echo "<h1>data->name = ";
echo $data[0]->name;
echo "</h1><br />";

Hope this helps....
Regards
Mat
  • enano
  • enano's Avatar
04 May 2012 17:26
Replied by enano on topic items relacionados por tags

items relacionados por tags

Category: Comunidad hispana oficial de K2

hola a todos ....despues de instalar xdebuger y poder ver el contenido de itemRelated descubri que si estan los campos extras del item relacionado, con json_decode converti el string en array pero el problema es que en el array viene $extraField->id y $extraField->value y lo que necesito es el nombre del campo extra no me sirve de mucho el id...revisando el item controller el modelo que ocupa es el itemlist ... estaba pensando en agregar una nueva funcion en itemlist model donde puede traer los nombres de los campos extras para despues mostrarlos... he hecho un par de pruebas y no puedo mostrar los datos de la nueva funcion en la vista , en realidad no entiendo mucho la implementacion de mvc en k2 estoy un poco confundido....
gracias por su ayuda...
  • enano
  • enano's Avatar
04 May 2012 17:07
Replied by enano on topic extra fields in related items by tag

extra fields in related items by tag

Category: English K2 Community

hi all ... mat thanks for reply .... i don't knew about json_decode now I have the extrafields of related item in an array but I still have a problem ...
the data in extra fields are $ extraField-> id, $ extraField-> value the problem is I need the extra field name not the id .... I was thinking to adding a new function in ITEMLIST model which can bring the names of extra fields but I can not display the data in the view does not really understand much that implements the mVC in k2
sorry for my english isn't my native language
thanks for the help! : D
  • ikerbc
  • ikerbc's Avatar
04 May 2012 15:28

Display items by tag. Show "Read more..."

Category: English K2 Community

When K2 articles are displayed by category, it is set to only show the 50 fisrt words of the article and then the "read more..." text. However when K2 aticles are displayed by some specific tag, the articles are shown in full length and it looks terrible. Can it be somehow configured in a way that the "read more" text also appears when showing K2 articles by tag?

Thanks!
  • av5
  • av5's Avatar
04 May 2012 06:17

How to get K2 item properties outside K2 environm.

Category: English K2 Community

Hi!

I would like to add a class to the <body> tag of the index file in my joomla template, depending on whether the item shown on the site is featured or not. Does anyone know how to get the properties of K2 items inside the index.php of the joomla template?
  • etkritikonspoudon
  • etkritikonspoudon's Avatar
03 May 2012 21:25
Replied by etkritikonspoudon on topic loadposition not working with k2 content modules

loadposition not working with k2 content modules

Category: English K2 Community

Have you tried nonumber's "Modules Anywhere"? It should work ok...you could also set it to handle the {loadposition } tag and disable loadposition plugin altogether
  • Herwin
  • Herwin's Avatar
03 May 2012 13:23

K2 dashboard displays everything in _CAPITAL

Category: English K2 Community

Hello,



Hope someone can help me, i've installed k2 for joomla 2.5 and tried today to get the dutch language on it. i didn't get this workin so decided to go back to the English version, now my next problem is that in my K2 dashboard every field in the menu (like K2 dashboard, K2 items, k2 categories & K2 tags) is displayed as K2_DASHBOARD, K2_ITEMS, K2_CATEGORIES, K2_TAGS, anyone an idea how to display the correct fieldnames again?

Hope you can help me :)
  • Ibach | mediendesign
  • Ibach | mediendesign's Avatar
03 May 2012 08:22
Replied by Ibach | mediendesign on topic There was a problem rendering your image gallery.

There was a problem rendering your image gallery.

Category: English K2 Community

I have the same issue too.

There was a problem rendering your image gallery. Please make sure that the folder you are using in the Simple Image Gallery PRO plugin tags exists and contains valid image files. The plugin could not locate the folder: media/k2/galleries/109

My PHP upload-size limit is ok.
There are no spaces or any unusual characters in images names or zip file-name.

I can see my images in "media/k2/galleries/109" but in front-end I have {gallery}109{/gallery} .

My server configuration:
PHP 5.3.
I'm using Joomla 2.5.4 with K2 2.5.4 and SIG Pro 2.5.7

First, when I store the article with the image gallery, it looks fine and a short time later, I have the same problem too; then I open the article and store it new, it works, but after a time, I have the outlined above.

Please Help me!
  • Derek Cicero
  • Derek Cicero's Avatar
03 May 2012 03:42
Replied by Derek Cicero on topic K2 Tag Cloud not moving or changing.

K2 Tag Cloud not moving or changing.

Category: English K2 Community

I have tags in my k2 items. I am not using articles. I literally have tagged all of them. I'm really stuck. I feel like this is a unique mistake that someone might have to dig at.

Worse part is.. There doesn't seem to be any other Tag Cloud Feature that reads K2

Please help.
  • Pauly
  • Pauly's Avatar
03 May 2012 00:43
Replied by Pauly on topic K2 Tag Cloud not moving or changing.

K2 Tag Cloud not moving or changing.

Category: English K2 Community

i just set mine up too, and was wondering the same thing. Then i realized i had no tags in the articles , so i went back and put tags in the articles and the cloud appeared. idk if its the same situation with you but thought to mention it.
  • Ibach | mediendesign
  • Ibach | mediendesign's Avatar
03 May 2012 00:34
Replied by Ibach | mediendesign on topic [Solved] Simple Image Gallery PRO (plugin) not working correctly

[Solved] Simple Image Gallery PRO (plugin) not working correctly

Category: Simple Image Gallery PRO

Hello,

It's nasty, but I have the same problem!

I use the simple image gallerie pro 2.5.7 and k2.

When I work in the backend, first, the image gallerie works fine, but a time later, you can only read {gallery}111{/gallery} and

There was a problem rendering your image gallery. Please make sure that the folder you are using in the Simple Image Gallery Pro plugin tags exists and contains valid image files. The plugin could not locate the folder: media/k2/galleries/111

Then I'm going to the k2-article and open it and store it new, the image gallerie looks fine with all her pictures. But after a short time, you can see the same bug.

What is the problem? Can you help me? You can see the bug at www.merle-ibach.de . Thanks a lot!
  • Derek Cicero
  • Derek Cicero's Avatar
03 May 2012 00:29
K2 Tag Cloud not moving or changing. was created by Derek Cicero

K2 Tag Cloud not moving or changing.

Category: English K2 Community

Can somebody please help me and let me know how this Tag Cloud is supposed to work? It hasn't changed for 3 months now.

thesurfersview.com ( home page)
  • Justin Thomas
  • Justin Thomas's Avatar
02 May 2012 07:43
Replied by Justin Thomas on topic [Solved] No images displaying on frontend

[Solved] No images displaying on frontend

Category: Simple Image Gallery PRO

I am hacking away.  Could somebody else PLEASE join me :)

OK.  I have found the culprit code, but I am now hacking to get it to work.

Go to:
components\com_k2\models\item.php -->  line 391 (ish)
//Gallery if( ($view=='item' && $item->params->get('itemImageGallery')) || ($view=='itemlist' && ($task=='' || $task=='category') && $item->params->get('catItemImageGallery')) || ($view=='relatedByTag') ) { if($item->gallery) { if(JString::strpos($item->gallery, 'flickr.com') === false) { $item->gallery = "{gallery}{$item->id}{/gallery}"; } if(JFolder::exists(JPATH_SITE.DS.'media'.DS.'k2'.DS.'galleries'.DS.$item->id)){ $params->set('galleries_rootfolder', 'media/k2/galleries'); $item->text = $item->gallery; $dispatcher->trigger ( 'onPrepareContent', array (&$item, &$params, $limitstart ) ); $item->gallery = $item->text; } else { $item->gallery = null; } } }

is the naughty code.  I replaced the
else { $item->gallery = null; }

statement with
else { $item->gallery = "{$item->gallery}"; }

and managed to see the correct
{gallery}..URL...{/gallery}

call being rendered, but the plug-in didn't want to react.  When the same code was placed in the full text section of the page the plug-in was invoked.

From this we can assume the following:

The first if statement is NOT being triggered....why?
My php coding is RUBBISH :)

So, a bit closer, but I am not the person to solve this....oh how I wish I was.  Somehow I feel that our best hope lies with a person FAR better than I....Katia, wake up :)

p.s. I work at GMT + 7 so I am well ahead of most people on this forum :)
Displaying 4381 - 4400 out of 6582 results.