Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
12 Nov 2013 09:51
Replied by Mohamed Abdelaziz on topic How to insert multiple tags on a k2 item?

How to insert multiple tags on a k2 item?

Category: English K2 Community

Hi,
I think you need to copy&paste the tags one by one, without the commas.
  • Soundific Rep
  • Soundific Rep's Avatar
12 Nov 2013 08:17 - 12 Nov 2013 08:37
How to insert multiple tags on a k2 item? was created by Soundific Rep

How to insert multiple tags on a k2 item?

Category: English K2 Community

Hi ,

I have one item and need to use 15 tags for it all separated by commas. If i copy and paste all of them into the tags field the system accepts them as one big tag. Is there a way for the system to accept them as separate tags since they have commas ?

thanks
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
11 Nov 2013 19:30
Replied by Krikor Boghossian on topic Change positioning or disable social icons underK2

Change positioning or disable social icons underK2

Category: Commercial Joomla Templates

Hello John,

The code for the sharing icons is this in case you want to move it
<?php if($this->item->params->get('itemTwitterButton',1) || $this->item->params->get('itemFacebookButton',1) || $this->item->params->get('itemGooglePlusOneButton',1)): ?> <!-- Social sharing --> <div class="itemSocialSharing"> <h3 class="fontIsNoticia"><?php echo JText::_('K2_SHARE_IT'); ?></h3> <?php if($this->item->params->get('itemTwitterButton',1)): ?> <!-- Twitter Button --> <div class="itemTwitterButton"> <a href="https://twitter.com/share" class="twitter-share-button" data-count="vertical"<?php if($this->item->params->get('twitterUsername')): ?> data-via="<?php echo $this->item->params->get('twitterUsername'); ?>"<?php endif; ?>> <?php echo JText::_('K2_TWEET'); ?> </a> <script type="text/javascript" src="//platform.twitter.com/widgets.js"></script> </div> <?php endif; ?> <?php if($this->item->params->get('itemFacebookButton',1)): ?> <!-- Facebook Button --> <div class="itemFacebookButton"> <div id="fb-root"></div> <script type="text/javascript"> (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <div class="fb-like" data-send="false" data-layout="box_count" data-width="200" data-show-faces="true"></div> </div> <?php endif; ?> <?php if($this->item->params->get('itemGooglePlusOneButton',1)): ?> <!-- Google +1 Button --> <div class="itemGooglePlusOneButton"> <g:plusone annotation="bubble" size="tall" width="120"></g:plusone> <script type="text/javascript"> (function() { window.___gcfg = {lang: 'en'}; // Define button default language here var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script> </div> <?php endif; ?> <div class="clr"></div> </div> <?php endif; ?>

If you cannot hide them check if your category is inheriting settings from another one and its settings are being overriden.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
11 Nov 2013 15:36
Replied by Krikor Boghossian on topic Problem - K2 and w3c

Problem - K2 and w3c

Category: English K2 Community

According to your DOCTYPE you need to edit the script tag that is used by AllVideos.
I suggest you do not alter it since it is considered a hack and you will all your changes when you update the extension.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
11 Nov 2013 15:34
Replied by Krikor Boghossian on topic Why K2 TAGS override meta keywords

Why K2 TAGS override meta keywords

Category: English K2 Community

Have you tried manually inserting the meta keywords for this item?
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
11 Nov 2013 15:17
Replied by Krikor Boghossian on topic [SOLVED] Common search/tag results page for all categories?

[SOLVED] Common search/tag results page for all categories?

Category: English K2 Community

Jamie,

It is wise to override instead of editing the core files.
This tutorial will help you. getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

In the search.php module the SEF check is in line 34.

The form's action is located around line 21.
  • Antonio Jose Valdes Medina
  • Antonio Jose Valdes Medina's Avatar
11 Nov 2013 12:42
SetTitle() on plugin K2 | Development Help was created by Antonio Jose Valdes Medina

SetTitle() on plugin K2 | Development Help

Category: English K2 Community

Hello mates,

I am creating a plugin to define the HTML tag on the page <title> regardless, I do so in my plugin:
function onK2AfterDisplayContent(&$item, &$params, $limitstart){ $mainframe = JFactory::getApplication(); $plugins = new K2Parameter($item->plugins, '', $this->pluginName); $output = 'Test - '.$plugins->get('Title_item'); $document=& JFactory::getDocument(); $document->setTitle($output); return $output; }

Well, how you see, I entered "manually" the word "Test -" the result in html is <title> 'Test -' </ title> instead on my K2 template when called "K2AfterDisplayContent" shows me screen "Test - This test is" complete whole.

It's like ignore $plugins->get('Title_item') to call SetTitle, but instead, it works correctly text below in page.

I hope I explained well ... Any help?
Thank you!
  • tripledm
  • tripledm's Avatar
11 Nov 2013 09:37
Replied by tripledm on topic Why K2 TAGS override meta keywords

Why K2 TAGS override meta keywords

Category: English K2 Community

Is there someone who can perhaps help me with this? It's urgent ;-(

Thank you.
  • Jamie
  • Jamie's Avatar
10 Nov 2013 13:54

[SOLVED] Common search/tag results page for all categories?

Category: English K2 Community

Hi Krikor,

Thanks for your response. Putting the tags to one side, I've attempted to implement your suggestions on the search box. After creating the search results menu item, I think I managed to confuse myself trying to make the changes you suggested.

I hadn't appreciated that I could actually use the standard joomla search module/component to return k2 articles. I also discovered that the basic module settings in the back-end for the standard joomla search module have a field to 'set Item ID'. I've got this working OK using the item ID of my newly created search results menu item, but I then appear to have to settle for the default_results.php layout from the joomla search component, rather than the more flexible generic.php layout with the option to include images, tags etc.

Would you be prepared to describe exactly where I need to make the overrides you describe?

As far as I can tell I think I need to make these overrides in a version of ...\modules\mod_k2_tools\tmpl\search.php, but can't seem to get it to work.

Thanks again,

Jamie.
  • informaticien51
  • informaticien51's Avatar
09 Nov 2013 11:41
Replied by informaticien51 on topic Show Author, related items and tags on the right

Show Author, related items and tags on the right

Category: English K2 Community

create a k2 content module instance to the right.
In the K2 content settings set the infos that should appear.
And hide them in the catégory that is shown on the main content.

Or try to create a subtemplate with your code inside the K2 content module if it doesnt work.
  • tripledm
  • tripledm's Avatar
08 Nov 2013 10:51
Why K2 TAGS override meta keywords was created by tripledm

Why K2 TAGS override meta keywords

Category: English K2 Community

Hello,

I have K2 (latest version) installed on a Joomla 2.5 website. The problem is as soon as a TAG is added to an article it overrides all the meta keywords. I would like it to NOT use the TAGS as meta keywords at all.

Thank you in advance for any help. :dry:
  • Michele Petito
  • Michele Petito's Avatar
08 Nov 2013 01:56
Can't change items ordering in K2 user blog was created by Michele Petito

Can't change items ordering in K2 user blog

Category: English K2 Community

I'm using a K2 user page (blog) linked from a module "K2 users". The problem is that the items are ordered by ID Item and not by published date. There is no ability to change the order. In the global parameters I have the option "item ordering" only for tag layout and not for "user page" layout. I could edit user.php file, but I don't know how and where Joomla orders the array $items... Any suggests?
  • webloesung
  • webloesung's Avatar
07 Nov 2013 20:48
Replied by webloesung on topic Show Author, related items and tags on the right

Show Author, related items and tags on the right

Category: English K2 Community

I was thinking if this is somehow possible to create a module with own code, place it to the position right and to be shown on specific K2 category only. The code within the module to be smth like:
<?php if($this->item->author->name;): ?> <?php if($this->item->params->get('itemAuthorLatest') && empty($this->item->created_by_alias) && isset($this->authorLatestItems)): ?> <!-- Latest items from author --> <div class="itemAuthorLatest"> <h3><?php echo JText::_('K2_LATEST_FROM'); ?> <?php echo $this->item->author->name; ?></h3> <ul> <?php foreach($this->authorLatestItems as $key=>$item): ?> <li class="<?php echo ($key%2) ? "odd" : "even"; ?>"> <a href="<?php echo $item->link ?>"><?php echo $item->title; ?></a> </li> <?php endforeach; ?> </ul> <div class="clr"></div> </div> <?php endif; ?> <?php endif; ?>

?
  • caseyz
  • caseyz's Avatar
07 Nov 2013 19:58 - 07 Nov 2013 20:10
Replied by caseyz on topic Load module in item.php template

Load module in item.php template

Category: English K2 Community

Similar Problem here, I'm trying to process a plugin through buy adding the snippet in the item.php.

More specifically I have a gallery plugin (SIGPLUS) and am using the extra fields to simplify the workflow foir my client by only requiring them to insert the name of their upload folder and wrapping it in the snippet through the item.php. the syntax processes fine when placed in an item editor body, but ignored when placed in the index.php and only returns the "{gallery}birds{/gallery}, and the actual image gallery is not rendered. Any help would be appreciated.

<div>
{gallery}
<?php echo $this->item->extraFields->galleryfolder->value;?>
{/gallery}
</div>


another poster with similar Q's

getk2.org/community/New-to-K2-Ask-here-first/172276-Run-external-plugins-tags-in-itemphp-ej-map#172276
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
07 Nov 2013 16:37 - 07 Nov 2013 16:46
Replied by Krikor Boghossian on topic Sidebar menu doesn't appear

Sidebar menu doesn't appear

Category: Commercial Joomla Templates

Hello John,

By default the sidebar is omitted in this template within the items. You can easily embed it by altering the index.php file a bit. No need to worry about these changes because index.php is removed from the update packages.
 <?php if($this->countModules('businessOne_Sidebar') && ($view!='item' && $view!='article')): ?>

This is around line 129 and change it to
<?php if($this->countModules('businessOne_Sidebar')): ?>

Around line 114 locate
<div class="content column <?php if($this->countModules('businessOne_Sidebar') && ($view!='item' && $view!='article') && ($pageSuffix!='gridView')) echo 'eight mobile-four alpha'; else echo 'twelve alpha omega'; ?><?php if($this->countModules('businessOne_SubmenuCategories') && ($option=='com_k2' && $view=='itemlist' && $task!='tag' && $task!='search')) echo ' enabledSubmenuCategory'; ?>">

and change it to
<div class="content column <?php if($this->countModules('businessOne_Sidebar')) echo 'eight mobile-four alpha'; else echo 'twelve alpha omega'; ?><?php if($this->countModules('businessOne_SubmenuCategories') && ($option=='com_k2' && $view=='itemlist' && $task!='tag' && $task!='search')) echo ' enabledSubmenuCategory'; ?>">

If you need different spacing in your items after this change let me know so I can assist you with the coding.
  • Laurent van Roy
  • Laurent van Roy's Avatar
07 Nov 2013 11:39 - 07 Nov 2013 11:40
Replied by Laurent van Roy on topic Export item K2 joomla 1.5 to Joomla 2.5 or 3.0

Export item K2 joomla 1.5 to Joomla 2.5 or 3.0

Category: English K2 Community

Great !!!! It worked. Not perfectly. But most stuff are there. The language field gave a problem that I solved manually(*).

For anyone interested, the exact procedure I used is :

1) Take a copy of my prod site

2) Update all the extensions I could, deactivate the tiny ones without J!2.5 equivalent or that should be migrated or that I could easily re-install and reconfigure on the J!2.5 site

3) With AdminTool, run all their cleaning actions

4) Check in my DB (with phpMyAdmin) if I had no unused tables (eg tables from old extensions) and drop them

5) install and run jUpgrade (and not jUpgradePro)

6) I had to remove some other extensions because jUpgrade got stuck

At this stage the we have a J!2.5 site. The next actions will be in this new site.

6) Install extensions (and K2 extension)
7) With phpMyAdmin check every K2 tables if their items have a "language" field. If yes and if empty, update them with "*".

8.) Check all menus pointing to k2 items. Actually, I dropped them and recreate them.

Voilà. That's almost it.

Next steps are templates (and K2 templates) migration.





What about setting a default value for that field in the MySQL tables in the next K2 release ?
  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
07 Nov 2013 09:06
Replied by Mohamed Abdelaziz on topic auto insert tags in k2 item

auto insert tags in k2 item

Category: English K2 Community

Hey

I don't think its possible, you will need a custom plugin to do this job.
  • Grupo RSCOM
  • Grupo RSCOM's Avatar
06 Nov 2013 21:05
auto insert tags in k2 item was created by Grupo RSCOM

auto insert tags in k2 item

Category: English K2 Community

Hi!

I am new to using the K2 component and would like to automatically insert some tags on each item.

is it possible?

Thank´s!
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
06 Nov 2013 18:38
Replied by Krikor Boghossian on topic I don't understand the itemRelated by tags list

I don't understand the itemRelated by tags list

Category: English K2 Community

If you mean override, yes you can override all of its templates and modules.
This tutorial will help you. getk2.org/documentation/tutorials

You can always develop plugins as well for the core functionality, but the solution you found requires core hacking.