Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
26 Sep 2017 18:48
Replied by Krikor Boghossian on topic [SOLVED] Ordering K2 tags alphabetically

[SOLVED] Ordering K2 tags alphabetically

Category: English K2 Community

More on overrides can be found here:
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

Although if you want to order the tag LISTINGS, then you need to edit K2's options -> jmp.sh/tsT5RTB
  • razen
  • razen's Avatar
26 Sep 2017 13:59
Replied by razen on topic [SOLVED] Ordering K2 tags alphabetically

[SOLVED] Ordering K2 tags alphabetically

Category: English K2 Community

I run on k2 2.8 and the hint still works.

The original file is here if I'm right:
/components/com_k2/templates/default/item.php

But I highly recommend to copy it to your joomla template if you update the file:
/templates/[YourTemplate]/html/com_k2/default/item.php
  • Christophe BERTRAND
  • Christophe BERTRAND's Avatar
26 Sep 2017 13:55
Replied by Christophe BERTRAND on topic [SOLVED] Ordering K2 tags alphabetically

[SOLVED] Ordering K2 tags alphabetically

Category: English K2 Community

Hi
I just updated to K 2.8
For the ordering by Tags name alphabetically, before I used this hint :
in administrator/components/com_k2/models/item.php line 757 :
if (!is_null($itemID))
$query .= " WHERE tags.id NOT IN (SELECT tagID FROM #__k2_tags_xref WHERE itemID={$itemID})";
$db->setQuery($query);

I used to change it to:

if (!is_null($itemID))
$query .= " WHERE tags.id NOT IN (SELECT tagID FROM #__k2_tags_xref WHERE itemID={$itemID}) ORDER BY tags.name";
$db->setQuery($query);

added: ORDER BY tags.name

But this doesn't seem to work anymore.

Could you please tell me where is the "item.php" file I need to change and to put the changes proposed by Razen ?
Or if there is another trick to order the tags alphabetically ?

Thanks
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
18 Sep 2017 18:23
Replied by Krikor Boghossian on topic Open Graph Tags

Open Graph Tags

Category: English K2 Community

By default K2 prints only one set of (correct) OG tags.
If you have multiple sets of tags, or incorrect tags, make sure that you ar e not using any other social-media related extensions or the template does not have any built-in functions.

You can also deactivate Joomla!'s cache to see if there are any caching issues.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
15 Sep 2017 19:30
Replied by Krikor Boghossian on topic how to change alt tag from k2 image?

how to change alt tag from k2 image?

Category: English K2 Community

This is not the alt tag, this is the title tag.
Replace the contents of the title tags on the <img> element with the ones of the alt tag.

eg:
... title="<?php if(!empty($this->item->title)) echo K2HelperUtilities::cleanHtml($this->item->title); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" />
  • Igor
  • Igor's Avatar
15 Sep 2017 11:33

Problem with add image from server after upgrade

Category: English K2 Community

Hi

I do not used Joomla Media Manager.
I save new images in directory by FTP program.
And this error situation for choose any image from any subfolders in server.

This error (after upgrade) K2 article (choose image from server).
And i have other subdomain with NO errors.
Different = no preset media manager path.

As result = your js take special preset path for choose image from server, but not used preset path for post string in input tag.
I think your js ignore left part of path string to "/" and post wrong path to image.
After it your php return NO IMAGE WARNING, because path is false.

You can make this situation.
Preset non default path in Joomla Media Manager (long with "/").
Save in this way new image by any components.
After it try create new K2 article by use
«Image» tab > «Browse server...» button
You will see not full path string in input tag left of button.

WBR,

Igor
  • Goran Nešić
  • Goran Nešić's Avatar
14 Sep 2017 21:11
Replied by Goran Nešić on topic how to change alt tag from k2 image?

how to change alt tag from k2 image?

Category: English K2 Community

Krikor wrote: The (default) code should look like this:
github.com/getk2/k2/blob/master/components/com_k2/templates/default/item.php#L203

Remember to use overrides:
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates


Hello Krikor I have changed the code but still it is displaying image real name on hover with mouse instead or article name. I am making mistake somewhere.
Here is override I have created for this in my template:
<?php if($this->item->params->get('itemImage') && !empty($this->item->image)): ?> <!-- Item Image --> <div class="itemImageBlock"> <span class="itemImage"> <img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->title)) echo K2HelperUtilities::cleanHtml($this->item->title); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" /> </span> <?php if($this->item->params->get('itemImageMainCaption') && !empty($this->item->title)): ?> <!-- Image caption --> <span class="itemImageCaption"><?php echo $this->item->title; ?></span> <?php endif; ?> <?php if($this->item->params->get('itemImageMainCredits') && !empty($this->item->image_credits)): ?> <!-- Image credits --> <span class="itemImageCredits"><?php echo $this->item->image_credits; ?></span> <?php endif; ?> <div class="clr"></div> </div> <?php endif; ?>
Where am I making mistake?

Thank you again!
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
14 Sep 2017 20:45
Replied by Krikor Boghossian on topic Image title

Image title

Category: English K2 Community

Please do not double post, you can find the answer here:
www.joomlaworks.net/forum/k2-en/37229-how-to-change-alt-tag-from-k2-image?start=10
  • lostef
  • lostef's Avatar
14 Sep 2017 16:08
K2 breadcrumbs path was created by lostef

K2 breadcrumbs path

Category: English K2 Community

Hello, I've setting from k2 tools the breadcrumbs option, but din't works how I thought....
I've a menu named "My results", it's a K2 catagories type menu.
The layout grid is setting with 3 Columns and 30 items and I have 100 items and in the bottom of page is displayed the pagination (number of page, prev and next button).
When I selected a item at page 2 the breadcrumbs path is "My-Result/item-32" and this is a problem because I can't comeback to pag 2 but only at the first page.

I need the path become "My-Result/pag2/item-32".

Some can help me?
  • Goran Nešić
  • Goran Nešić's Avatar
14 Sep 2017 01:59
Replied by Goran Nešić on topic how to change alt tag from k2 image?

how to change alt tag from k2 image?

Category: English K2 Community

Can you tell me where is this code located exactly and to that to change it. Because I have similar problem, on hover over image I get name of the cached image for example fksdghsagi4685461961.png instead of title.
  • servlet
  • servlet's Avatar
13 Sep 2017 22:01

Wrong description data when share article in face book

Category: English K2 Community

When I paste k2 link of article in face book it displays wrong data for short description.
The data depend on path to the article.
If the article is reached via Main Menu it takes for description data from the menu settings.
If the article is reached via other link it takes other description.
There are many variations of URL for one single article

it's a complete mess
OG tags are different every time.

is there any solution about this?
  • lostef
  • lostef's Avatar
12 Sep 2017 17:30
K2 Template overide was created by lostef

K2 Template overide

Category: Comunità italiana K2

Ciao a tutti,
non riesco a far funzionare l'overide del template.
ho seguito alla lettera queste indicazioni [url=http://https://www.k2joom.com/blog/k2-templates-handling-custom-css][/url]
Dal back-end componet/k2/catagory seleziono la categoria a cui assegnare il template, ma quando provo a modificare i css mi accorgo che li pesca dal tema sorgente e non dalla copia. Dove sbaglio?

Grazie
  • James Smith
  • James Smith's Avatar
11 Sep 2017 10:42
Problems after Upgrade - can I revert? was created by James Smith

Problems after Upgrade - can I revert?

Category: English K2 Community

I have the following problems after upgrading to 2.8;

1) I cannot add or remove tags from items in the front end
2) When I save an item in the front end, it just remains on the same add or edit screen

So, I wonder can I just revert to the previous 2.7.x version? is that possible after installing 2.8?
And if not, can you tell me how to troubleshoot these issues or is there a quick fix that I can make to fix the problems?

Many thanks in advance. K2 is a key component on my website and I love it (also SIG PRO) but this is causing big problems for me!
  • Aritmik
  • Aritmik's Avatar
09 Sep 2017 15:37
Replied by Aritmik on topic K2 frontend editor error after update 2.8.0

K2 frontend editor error after update 2.8.0

Category: English K2 Community

Thanks for your replies!
I copied the itemform.php from the folder components/com_k2/templates/default/
Alignment K2-picture and save & close button is now ok and the tabs are back.
But stil i can't add tags, the buttons publish "yes/no" and special "yes/no" are not active.
Also, when i click one of the tabs (content or picture) the form will be closed in it's own pop-up. So: strange behavior.
This was all working fine in K2 2.7.2
Template is from Youjoomla.
Regards
Rik
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
08 Sep 2017 18:38
Replied by Krikor Boghossian on topic Position tag visible on all mods

Position tag visible on all mods

Category: English K2 Community

Hello,
This is a templating/ setup issue, it is unrelated to K2, since K2 does not include any module positions.

You need to address this issue to the template's developers.
  • neppers
  • neppers's Avatar
08 Sep 2017 11:23
  • Aritmik
  • Aritmik's Avatar
06 Sep 2017 23:40

K2 frontend editor error after update 2.8.0

Category: English K2 Community

I updated K2 from 3.7.2 to 2.8.0 on a testsite www.aritmik.nl

After this update the frontend-editor gives several errors:
- save & close buttons are scrumbled with K2-image on the left side
- tags can't be added
- switching to image tab (actually it is not a tab here) closes the editor.

Two images of the editor before and after the update:
imgur.com/QQVdExb
imgur.com/SzV3VwN

What can be the problem? I tested this K2-update also on MAMP locally: same problem.

Thanks for help in advance. Would be very much appreciated.
Rik
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
04 Sep 2017 19:18
Replied by Krikor Boghossian on topic k2 tags filter in backend item lists

k2 tags filter in backend item lists

Category: English K2 Community

Nice to hear that you got it sorted out.
  • oshyne
  • oshyne's Avatar
04 Sep 2017 11:59 - 04 Sep 2017 12:39

Display social sharing buttons in category items

Category: English K2 Community

Finally figured it out.

I have attached the codes and steps for anyone who needs a similar solution for category items, tag listing and item view.

if you are using "https" change <?php echo (JRoute::_($link,true, -1)) ;?>
to
<?php echo (JRoute::_($link,true, 1)) ;?>

Goodluck!!!

www.dropbox.com/s/jfhudr65ug8wqgi/k2%20social%20media%20sharing%20buttons.txt?dl=0
Displaying 821 - 840 out of 6582 results.

Powered by Kunena Forum