Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • forty
  • forty's Avatar
18 Mar 2019 20:16 - 18 Mar 2019 20:17
Replied by forty on topic K2 Extra Fields Image Tag Src Extract

K2 Extra Fields Image Tag Src Extract

Category: English K2 Community

Fotis Can you give us all code for that.
I want to use it to change background of div from extrafield.
Thanks
  • JoomlaWorks
  • JoomlaWorks's Avatar
15 Mar 2019 12:40
Replied by JoomlaWorks on topic Tagcloud Verlinkungen funktionieren nicht

Tagcloud Verlinkungen funktionieren nicht

Category: Offizielle deutsche Gemeinschaft

Noticed the typo, so I fixed it to: www.hp-personalmanagement.de

What's the problem exactly with the K2 tag cloud?
  • Arno
  • Arno's Avatar
14 Mar 2019 16:09 - 15 Mar 2019 12:39

Tagcloud Verlinkungen funktionieren nicht

Category: Offizielle deutsche Gemeinschaft

Hallo Zusammen,
ich habe eine Tagcloud Modul angelegt. Wie kann ich die K2 Tags verlinken? Normal doch in einem Artikel unter Tags und dann sollte es doch verlink sein, oder liege ich da falsch?
Kann ein Tag für mehrer Beiträge genutzt werden?

Die Seite ist unter:
www.hp-personalmanagement.de
  • JoomlaWorks
  • JoomlaWorks's Avatar
13 Mar 2019 18:50

Issue after changing H2 to H1 and the FEATURED <sup>

Category: English K2 Community

That's because the CSS that applied the red color and positioning was bound to the h2 tag. I would recommend you override K2's CSS file (simply copy the file /components/com_k2/css/k2.css into your /templates/YOUR_TEMPLATE/css/ folder and then look for the tag "sup" in the file and adjust the selector to it accordingly.

In the dev version of K2, that line is 197: github.com/getk2/k2/blob/master/components/com_k2/css/k2.css#L197 (you swap h2 there with h1).

Keep in mind that the reason we leave h2 in the title is because h1 is usually left for the site name. There's a reason why K2's markup is what it is ;)
  • Chris Hogan
  • Chris Hogan's Avatar
13 Mar 2019 14:29 - 13 Mar 2019 14:31

Issue after changing H2 to H1 and the FEATURED <sup>

Category: English K2 Community

Hi there,

I've just changed my H2 tags to H1 titles instead (for SEO purposes) and an issue with the FEATURED <sup> seems to have occured.

On the attachments you can see the way it did look (the correct way - in Red next to the Title) and the way it looks now (which doesn't look great underneath the Title)

The code below is the 'item.php' in my templates/cloudbase3/html/com_k2/default folder: At present I've moved the closing </h1> above the 'Featured Flag area....instead of the end of this code - as it had also turned the <sup> to H1 size as well!
<h1 class="itemTitle"> <?php if(isset($this->item->editLink)): ?> <!-- Item edit link --> <span class="itemEditLink"> <a data-k2-modal="edit" href="<?php echo $this->item->editLink; ?>"><?php echo JText::_('K2_EDIT_ITEM'); ?></a> </span> <?php endif; ?> <?php echo $this->item->title; ?> </h1> <?php if($this->item->params->get('itemFeaturedNotice') && $this->item->featured): ?> <!-- Featured flag --> <span> <sup> <?php echo JText::_('K2_FEATURED'); ?> </sup> </span> <?php endif; ?>

Any idea how get it back to way it was looking...and with a h1 tag??
  • Speaker
  • Speaker's Avatar
08 Mar 2019 11:55
Kommentarfehler was created by Speaker

Kommentarfehler

Category: Offizielle deutsche Gemeinschaft

Guten Tag :)
Eine Frage: Habe seit dem Updaten von K2 2.6 auf 2.9 das Problem das mir die Kommentare nicht angezeigt werden, jedefanlls nicht der Kommentarinhalt. Name, Datum usw. wird angezeigt.



Hat hier jemand vielleicht eine Idee?

Vielen dank
  • JoomlaWorks
  • JoomlaWorks's Avatar
06 Mar 2019 16:47
Replied by JoomlaWorks on topic Problème d'affichage de la liste des tags

Problème d'affichage de la liste des tags

Category: Communauté française K2

If your homepage menu item points to all K2 categories, then K2's URL router picks it up (since the tag has no direct menu item) and uses it to show the tag page.

If you want to control this (including module associations), the quick way is to create a hidden menu and in there are a menu item pointing to all K2 categories with a generic menu item alias, e.g. "content". This way, "orphan" content entities in K2 (e.g. tags, user profiles etc.) will use this menu item if no direct menu item is found.

We use this trick on getk2.org - visit the blog and click on some tag.
  • Stéphanie Hernandez
  • Stéphanie Hernandez's Avatar
06 Mar 2019 13:01
Problème d'affichage de la liste des tags was created by Stéphanie Hernandez

Problème d'affichage de la liste des tags

Category: Communauté française K2

Bonjour,
j'utilise K2 pour gérer mes contenus sur Joomla 3.9.2 avec le template Newsworth.
Jusqu'à présent lorsque je cliquais sur un tag en bas d'un item K2, la liste des tags apparaissait sur une page spécifique.
Depuis peu cette page "itemlist" affiche aussi les éléments de la page d'accueil.
EXEMPLE : si je clique sur le tag "Gouvernance" en bas de cette page : www.g-eau.fr/index.php/fr/recherche/projets-en-cours/item/940-littoadap-risques-littoraux-et-planification-territoriale-mise-en-place-d-un-dispositif-d-analyse-de-la-gouvernance-et-de-prospective-participative-dans-le-sud-biterrois, la liste apparait bien mais tout en bas d'une page qui ressemble à la page d'accueil.
Avez-vous une idée du problème ?
Merci d'avance,
Stéphanie
  • JoomlaWorks
  • JoomlaWorks's Avatar
04 Mar 2019 18:29
Replied by JoomlaWorks on topic og:image tag gives the wrong url when using CDN

og:image tag gives the wrong url when using CDN

Category: English K2 Community

You can override these meta tags directly in your K2 template overrides.

E.g. in item.php you could do (at the very top of the file):
<?php /** * @version 2.9.x * @package K2 * @author JoomlaWorks https://www.joomlaworks.net * @copyright Copyright (c) 2006 - 2019 JoomlaWorks Ltd. All rights reserved. * @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html */ // no direct access defined('_JEXEC') or die; $image = 'http(s)://OTHER_SERVER/media/k2/items/src/'.md5("Image".$this->item->id).'.jpg'; $document->setMetaData('og:image', $image); $document->setMetaData('image', $image); // Generic meta ?>
  • Denis ROBERT
  • Denis ROBERT's Avatar
03 Mar 2019 21:20 - 03 Mar 2019 21:27
Simple Image Gallery was created by Denis ROBERT

Simple Image Gallery

Category: Simple Image Gallery

CATÉGORIE: communauté francophone SIMPLE IMAGE GALLERY.

1. Vu qu'une communauté franco existe pour K2, pourquoi pas pour SIMPLE IMAGE GALLERY

2. Problème avec SIMPLE IMAGE GALLERY en français.

J'ai créé des fichiers fr-FR.plg_content_jw_sig.ini et fr-FR.plg_content_jw_sig_sys.ini et corrigé le fichier jw_sig.xml .

J'ai ajouté les fichiers traduits dans les bons répertoires et le module ne me donne rien en français malgré du fait que j'ai ajouté la ligne suivante dans jw_sig.xml :

<languages folder="plugin">
<language tag="en-GB">language/en-GB/en-GB.plg_content_jw_sig.ini</language>
<language tag="en-GB">language/en-GB/en-GB.plg_content_jw_sig.sys.ini</language>
<language tag="fr-FR">language/fr-FR/fr-FR.plg_content_jw_sig.ini</language>
<language tag="fr-FR">language/fr-FR/fr-FR.plg_content_jw_sig.sys.ini</language>
</languages>

Dois-je aussi modifier autre chose???

File Attachment:

File Name: test_simpl...r-en.zip
File Size:26 KB
  • 56kagency
  • 56kagency's Avatar
28 Feb 2019 17:08

Insert metadata, description from menu item to tag page

Category: English K2 Community

As "Tags" pages not needs to be linked with a menu voice (it is in the "Tag page" nature to be a "without menu voice" page), like Joomla Tags System, a single K2 tag needs a field for insert Meta Title and Meta Description.
I hope we can see these fields in the next version.
  • JoomlaWorks
  • JoomlaWorks's Avatar
25 Feb 2019 18:41

Image size when posting to facebook - Enable original size

Category: English K2 Community

OK, like I said, although I don't endorse this (your posts may be blocked if someone uploads a 3000x3000 pixels image), you can overwrite the meta tags that K2 sets for open graph sharing and then manually change the path to use:

If an XL image's path is e.g. getk2.org/media/k2/items/cache/08a4cf1e44f783c853b207a033a173b9_XL.jpg then the source file is getk2.org/media/k2/items/src/08a4cf1e44f783c853b207a033a173b9.jpg

As you can see, the filename is the same sans "_XL" and the path switches to /media/k2/items/src from /media/k2/items/cache.

First off, upgrade to v2.9.1 (dev) as it introduces new & fixed meta tags for open graph/twitter: github.com/getk2/k2/archive/master.zip

Then, in your item.php override, add this snippet at the very top of the file (replace existing comments etc. accordingly):
<?php /** * @version 2.9.x * @package K2 * @author JoomlaWorks https://www.joomlaworks.net * @copyright Copyright (c) 2006 - 2019 JoomlaWorks Ltd. All rights reserved. * @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html */ // no direct access defined('_JEXEC') or die; $document = JFactory::getDocument(); if (JFile::exists(JPATH_SITE.'/media/k2/items/src/'.md5("Image".$this->item->id).'.jpg')) { $image = JURI::root().'media/k2/items/src/'.md5("Image".$this->item->id).'.jpg'; $document->setMetaData('og:image', $image); $document->setMetaData('image', $image); // Generic meta } ?>

Let me know.
  • adil
  • adil's Avatar
25 Feb 2019 11:21 - 25 Feb 2019 11:50

Create K2 item from the frontend in a separate window, not modal

Category: English K2 Community

Hi,
How to create the addition of K2 item from the frontend in a separate window, not in the modal? I wanted to make changes in the itemform.php file which is in a separate template for the category ... onar \ components \ com_k2 \ templates \ news, but it has a separate line for require_once (JPATH_SITE. '/ Administrator / components / com_k2 / views / item / tmpl / default.php ') ;.
Then I thought to create a video.php file at the same address, but it still refers to the default.php file. I need for each category and for each type of a particular menu to have its own input window with its own fields.

I repeat: the task is to make an input button for each category separately and with its own fields (for example: I do not need alias fields, tags, attachments, media and content, etc).
  • JoomlaWorks
  • JoomlaWorks's Avatar
22 Feb 2019 19:04
Am I dumb as I look? was created by JoomlaWorks

Am I dumb as I look?

Category: English K2 Community

You are probably a Joomla newbie, so don't be so hard on yourself :)

In order for any content in Joomla to display, you need to have menu items pointing to components or other content sources. So, in the case of K2, you simply need to create some menu items that point to one or more K2 categories, tags, users and so on.
  • Martijn Hartong
  • Martijn Hartong's Avatar
21 Feb 2019 11:34 - 21 Feb 2019 18:03
Frontend Save & Close solution was created by Martijn Hartong

Frontend Save & Close solution

Category: English K2 Community

Hi,

For my project I really needed a working Save & Close button with visible reloaded content. I read a lot of questions, but could not find the answer. Basicly there are two save buttons; one with hover class and the other sets local storage. Perhaps it's better with User state and/or setInterval, etc. Please find my html/js from itemform.php to discuss better solutions. Thanks
<table id="k2ModalToolbar" cellpadding="2" cellspacing="4"> <tr> <td id="toolbar-save" class="button"> <a href="#" onclick="Joomla.submitbutton('save');return false;"> <i class="fa fa-check" aria-hidden="true"></i> <?php echo JText::_('K2_SAVE'); ?> </a> </td> <td id="toolbar-cancel" class="button"> <a href="#"> <i class="fa fa-times-circle" aria-hidden="true"></i> <?php echo JText::_('K2_CLOSE'); ?> </a> </td> <td id="toolbar-senc" class="button"> <a href="#" onclick="Joomla.submitbutton('save');return false;"> <i class="fa fa-bullseye" aria-hidden="true"></i> Save & Close </a> </td> </tr> </table>
$document->addScriptDeclaration(" window.addEvent('domready',function () { \$K2('#catid option').attr('selected', '1'); setTimeout(function(){ \$K2('#catid').change(); }, 1000); }); \$K2(function(){ \$K2('#toolbar-save').hover( function(){ $(this).addClass('active') }, function(){ $(this).removeClass('active') } ) if (localStorage.getItem('save')) { var k2ItemId = \$K2('input[name=id]').val(); var sigProFolder = \$K2('input[name=sigProFolder]').val(); \$K2.ajax({ type: 'get', cache: false, url: K2SitePath + 'index.php?option=com_k2&view=item&task=checkin&cid=' + k2ItemId + '&lang=' + \$K2('input[name=lang]').val() + '&sigProFolder=' + sigProFolder, success: function() { localStorage.removeItem('save'); // Close modal if (typeof(parent.\$K2.magnificPopup) !== 'undefined') { parent.window.location.reload(); parent.\$K2.magnificPopup.close(); } // Close window/tab if (top == self) { window.close(); } // localStorage.removeItem('save') MOVED UP AFTER SUCCESS FOR BROWSER COMPATIBILITY } }); } }); Joomla.submitbutton = function(pressbutton){ if (pressbutton == 'cancel') { submitform( pressbutton ); return; } if (\$K2.trim(\$K2('#title').val()) == '') { alert( '".JText::_('K2_ITEM_MUST_HAVE_A_TITLE', true)."' ); } if (\$K2.trim(\$K2('#catid').val()) == '0') { alert( '".JText::_('K2_PLEASE_SELECT_A_CATEGORY', true)."' ); } else if (\$K2('#toolbar-save').hasClass('active')) { syncExtraFieldsEditor(); var validation = validateExtraFields(); if(validation === true) { \$K2('#selectedTags option').attr('selected', 'selected'); submitform( pressbutton ); } } else { syncExtraFieldsEditor(); var validation = validateExtraFields(); if(validation === true) { \$K2('#selectedTags option').attr('selected', 'selected'); localStorage.setItem('save', 'itemsaved'); submitform( pressbutton ); } } } ");
  • JoomlaWorks
  • JoomlaWorks's Avatar
18 Feb 2019 21:53
Replied by JoomlaWorks on topic sort k2 tags

sort k2 tags

Category: English K2 Community

Sorry, but I'm out of ideas here. Since this is not a K2 issue but more a Persian language/PHP sorting issue, why not ask in a local forum for help or guidance? Someone else must have stumbled into a similar issue in the past for sure...
  • shahrouz
  • shahrouz's Avatar
18 Feb 2019 07:09
Replied by shahrouz on topic sort k2 tags

sort k2 tags

Category: English K2 Community

The item that you mentioned was checked
Has already been installed on the server
  • JoomlaWorks
  • JoomlaWorks's Avatar
14 Feb 2019 14:15
Replied by JoomlaWorks on topic sort k2 tags

sort k2 tags

Category: English K2 Community

Then kindly ask your hosting provider to install them so you can use the right sorting in PHP for Persian.
  • shahrouz
  • shahrouz's Avatar
14 Feb 2019 11:27
Replied by shahrouz on topic sort k2 tags

sort k2 tags

Category: English K2 Community

No, we do not have PHP modules to use the Collator class.
  • JoomlaWorks
  • JoomlaWorks's Avatar
13 Feb 2019 22:04 - 13 Feb 2019 22:05
Replied by JoomlaWorks on topic K2 Article Titles In Facebook

K2 Article Titles In Facebook

Category: English K2 Community

Actually, the latest v2.9.1 (dev) builds have (for some time already) been using the actual item title for the social meta tags. But it looks like the problem is in the setMetaData() function in Joomla as it insists on converting twice content that is already filtered as HTML entities.

I have overridden Joomla's function here: demo.getk2.org/category-blog/story/232/aliquam-volutpat-erat-at-dui-ultricies-dignissim?upd=1 (check the meta tags for og:title etc.).

You can modify your item.php override and place this at the very top of the file:
$document = JFactory::getDocument(); $socialMetaTitle = str_replace(['&amp;', '&#039;'], ['&', '\''], $this->item->title); $document->setMetaData('og:title', $socialMetaTitle);

For the record, older K2 versions merely used the document title, but that's not correct as it may hold the site name as well.
Displaying 501 - 520 out of 6582 results.

Powered by Kunena Forum