Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
11 Jul 2016 19:36
Replied by Krikor Boghossian on topic K2 Tools search result page modules?

K2 Tools search result page modules?

Category: English K2 Community

The most simple way to achieve this, is to create a menu item for all K2 content which does not belong to a menu item.
Eg: search, tag and user listings.

You can do this by simply creating an empty K2 Categories (leave the category selection empty) and call it eg: content.

This way you get better URLs and control over your modules.
  • Benjamin Donner
  • Benjamin Donner's Avatar
11 Jul 2016 18:35
Items in multiple categories in K2 v3? was created by Benjamin Donner

Items in multiple categories in K2 v3?

Category: English K2 Community

Can someone tell me if K2 v3 will include the ability to assign K2 items to multiple K2 categories? This has not been possible in K2 x2.x withou extra plugins, and has caused problems with compatibility + for instance items showing up many times in search results and different kind of tag and multiple cateogry listings. I need thit function, and now have to ask for some coding if K2 v3 will not have it = I should try to wait some more for K2 v3.

Cheers,
Ben
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
08 Jul 2016 20:03
Replied by Krikor Boghossian on topic a list of catagories

a list of catagories

Category: English K2 Community

Hello,

This is custom template of the K2 Tools module.
You can actually download the demo site from here:
www.joomlaworks.net/joomla-templates/free-templates/takai
  • webkong1314
  • webkong1314's Avatar
08 Jul 2016 17:15
a list of catagories was created by webkong1314

a list of catagories

Category: English K2 Community

How do you display a list of catagories? Or display a catagories's list.

like this one: demo.getk2.org/catalog

like "K2 Categories list" ---> on this page demo.getk2.org/catalog . Thank you for you help.
  • ncy
  • ncy's Avatar
08 Jul 2016 09:00

Changing the image size in K2 item Search Results

Category: English K2 Community

Had this question too and came across this post in my search. Here's what I found:

Change the value in: K2 Parameters settings > Images tab > Item generic image width (in px). Used in user pages as well as tag, search & date listings.
  • Xlix
  • Xlix's Avatar
07 Jul 2016 18:50
Replied by Xlix on topic Tags redirect to homepage

Tags redirect to homepage

Category: English K2 Community

Thanks for the help. I am unable to disable the redirect plugin but I managed to find a workaround by editing the template item.php and hardcoding the URL path. Nevertheless, it is *not* ideal to do so.

I now manage to get tags list pages and the URL structure for it is:
domain.com/component/k2/tag/France

If I leave just 'tag' as the Prefix for tag URLs in advanced SEF settings, the above link type works
If I change the Prefix to 'component/k2/tag' then I get a 404 page. Seems there's still a conflict somewhere.
  • Franz Heine
  • Franz Heine's Avatar
07 Jul 2016 14:35
Replied by Franz Heine on topic Backend Extrafields "Default values"

Backend Extrafields "Default values"

Category: English K2 Community

the rating is calculated in the components/com_k2/templates/default/item.php
<!-- # New Rating System Start Here --> <?php if($this->item->params->get('itemRating')): ?> <?php if (count($this->item->extra_fields) > 0 && is_array($this->item->extra_fields)) { $dispArr = array(); $m=0; foreach ($this->item->extra_fields as $key=>$extraField) { if ($extraField->name == "Eco") { $dispArr[$m]['Name'] = $extraField->name; $dispArr[$m]['Value'] = $extraField->value; $m++; } } $tipVal = ''; if($this->item->params->get('itemExtraFields') && count($this->item->extra_fields)) { $tipVal .= '<div id="itemExtraFieldsToolTip" class="itemExtraFieldsToolTip">'; $tipVal .= '<label class="extra-title">'.$this->item->title.'</label>'; $cnt_dispArr = count($dispArr); $chkVal = 0; for ($v=0; $v<$cnt_dispArr; $v++) { if (is_array($dispArr[$v]['Value'])) { $cnt_valArr = count($dispArr[$v]['Value']); $tipVal .= '<div class="ratinglinedesc"><ul style="padding:0; margin:0;">'; //$tipVal .= '<div class="extra-desc-lbl">'.$dispArr[$v]['Value'][0]['GrpName'].'</div>'; $totalChkVal = $dispArr[$v]['Value'][0]['Total']; for ($m=0; $m<$cnt_valArr; $m++) { $strLabel = $dispArr[$v]['Value'][$m]['Label']; $chkVal += $dispArr[$v]['Value'][$m]['Value']; $tipVal .= '<li class="extra-desc-txt">'.$strLabel.'</li>'; } $tipVal .= '</ul></div>'; } else { $tipVal .= '<div style="margin-bottom:6px;width:100%;float:left;"><div class="extra-desc-lbl">'.$dispArr[$v]['Name'].'</div>'; $tipVal .= '<div class="extra-desc-txt">'.$dispArr[$v]['Value'].'</div></div>'; } } $tipVal .= '</div>'; } } ?> <!-- Item Rating --> <div class="itemRatingBlock"> <span><?php echo JText::_('K2_RATE_THIS_ITEM'); ?></span> <div class="itemRatingForm"> <ul class="itemRatingList"> <li class="itemCurrentRating" id="itemCurrentRating<?php echo $this->item->id; ?>" style="width:<?php echo $this->item->votingPercentage; ?>%;"></li> <li><a href="#" rel="<?php echo $this->item->id; ?>" title="" class="one-star">1</a></li> <li><a href="#" rel="<?php echo $this->item->id; ?>" title="" class="two-stars">2</a></li> <li><a href="#" rel="<?php echo $this->item->id; ?>" title="" class="three-stars">3</a></li> <li><a href="#" rel="<?php echo $this->item->id; ?>" title="" class="four-stars">4</a></li> <li><a href="#" rel="<?php echo $this->item->id; ?>" title="" class="five-stars">5</a></li> </ul> <div id="itemRatingLog<?php echo $this->item->id; ?>" class="itemRatingLog"><?php echo $this->item->numOfvotes; ?></div> <div class="clr"></div> </div> <div class="clr"></div> </div> <div class="itemRatingBlock" style="width:100%;float:left;"> <span><?php echo JText::_('Eco'); ?></span> <div style="float:left;" class="ratingK2analysis"> <?php $PercentSel = ($totalChkVal>0 && $totalChkVal !='')?floor((100*$chkVal)/$totalChkVal):0; $setAct = floor($PercentSel/20); $setClass=''; for ($m=0; $m<5; $m++) { if ($m < $setAct) { $setClass = ' active'; } else { $setClass = ''; } echo '<div class="rating-bg-div'.$setClass.'"></div>'; } ?> </div> </div> <?php endif; ?> <!-- # New Rating System End Here -->

at the bottom ive
<script type="text/javascript"> jQuery('document').ready(function(e) { jQuery('.ratingK2analysis').attr('title', '<?=$tipVal?>'); jQuery(".ratingK2analysis").tipTip(); }); </script>

it works fine with -->
<label class="extra-title">'.$this->item->title.'</label>

but i cannot get the values-->
if (is_array($dispArr[$v]['Value'])) { $cnt_valArr = count($dispArr[$v]['Value']); $tipVal .= '<div class="ratinglinedesc"><ul style="padding:0; margin:0;">'; //$tipVal .= '<div class="extra-desc-lbl">'.$dispArr[$v]['Value'][0]['GrpName'].'</div>'; $totalChkVal = $dispArr[$v]['Value'][0]['Total']; for ($m=0; $m<$cnt_valArr; $m++) { $strLabel = $dispArr[$v]['Value'][$m]['Label']; $chkVal += $dispArr[$v]['Value'][$m]['Value']; $tipVal .= '<li class="extra-desc-txt">'.$strLabel.'</li>'; } $tipVal .= '</ul></div>'; }
  • Francesca Comani
  • Francesca Comani's Avatar
06 Jul 2016 16:50
Replied by Francesca Comani on topic I can't show latest items in 3 cols - bug?

I can't show latest items in 3 cols - bug?

Category: English K2 Community

Krikor wrote: Since this is a visual issue (most likely CSS or unclosed tags) a link is needed.


Ah ok...here it is:
www.mapletimes.it/anna/
I installed k2 but I have not yet touched the css...
  • Xlix
  • Xlix's Avatar
06 Jul 2016 16:48
Replied by Xlix on topic Tags redirect to homepage

Tags redirect to homepage

Category: English K2 Community

K2 advanced SEF settings are enabled and I am not using any 3rd party extension I am aware of (I was thinking JSitemap could be the culprit but disabling it didn't help).

The same redirection issue still happens, even if I disable the K2 advanced SEF settings. I have also tried any possible setting change through the SEO Settings in the Joomla Global configuration panel. Finally I disabled the "System - SEF" plugin.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
06 Jul 2016 13:14
Replied by Krikor Boghossian on topic K2 FB APP ID & ADMINS ID

K2 FB APP ID & ADMINS ID

Category: English K2 Community

For the sake of consistency, for additional og:tags I always use a helper file which is loaded on top of the index.php file.

This way all the functionality is bundled (or bootstrapped) in one file and regardless of the extensions I am using the tags will always be present in one location.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
06 Jul 2016 13:02
Replied by Krikor Boghossian on topic Tags redirect to homepage

Tags redirect to homepage

Category: English K2 Community

Have you enabled K2's advanced SEF settings. or are you using a 3rd party SEF extension.

The /tag/pattern is only available if you are using K2's Advanced SEF or a 3rd party extension.
  • Xlix
  • Xlix's Avatar
05 Jul 2016 18:57
Replied by Xlix on topic Tags redirect to homepage

Tags redirect to homepage

Category: English K2 Community

Sorry for the late reply. Unfortunately I still haven't found the solution to this issue.
I am using K2 2.7.0 with Joomla 3.5.1

Also I have replaced my custom .htaccess file made with AdminTools with a minimal one but no luck either.
I am not using any redirect extensions either.
Any hints on possible other places to look at would help me. Thanks a lot.
  • Stamatis
  • Stamatis's Avatar
05 Jul 2016 14:24
H1 tags was created by Stamatis

H1 tags

Category: English K2 Community

Hello i want help

I use a temlpate and in index.php have this style set:

h1, h3, h1, h2, h3, h4, h5, h6,.itemAuthorLatest h3, .itemTagsBlock span, .itemRelated h3, .itemCommentsForm h3, div.itemCategory span, div.itemNavigation span.itemNavigationTitle, div.userItemCategory span, div.userItemTagsBlock span, div.tagItemCategory span, div.genericItemIntroText p, div.genericItemIntroText p span, .hd-left .catItemCommentsLink,#k2Container .itemTitle, div.tagItemHeader h2.tagItemTitle, #k2Container .itemTitle, div.tagItemHeader h2.tagItemTitle a, div.userItemHeader h3.userItemTitle, div.userItemHeader h3.userItemTitle a, div.catItemHeader h3.catItemTitle, div.catItemHeader h3.catItemTitle a, div.genericItemHeader h2.genericItemTitle, div.genericItemHeader h2.genericItemTitle a, div.catItemHeader span.catItemAuthor a,.breadcrumb a,.breadcrumb > li span,.pcolor h4 a,.pcolor h4,.pdark h4 a,div.itemCommentsForm p.itemCommentsFormNotes, div.itemCommentsForm form label.formComment, div.itemCommentsForm form label.formName, div.itemCommentsForm form input#submitCommentButton, div.itemCommentsForm form label.formEmail, div.itemCommentsForm form label.formUrl,.top-rate p a,.recent-news ul li p a,.recent-news ul li p,.gt-acc .accordion-heading a,.gt-acc .acc-right h5 a,.gt-acc .acc-right h5,.col-news-related ul li p a,.col-news-related ul li p a,.colnews-cap h3 a,.grd-news-related h3 a,#sp-main-menu ul.level-0 > li a,.camera_caption h2,.hnews .hd-intro a,.news-related ul li a.readmore,.news-related ul li p a,.news-related ul li h5 a,.colnews-cap,.grdn-date,.grdn-date ul li h3,.popu-num-d ,.popu-num-c,.gkTabsWrap.vertical ol li, .gkTabsWrap.horizontal ol li,.gkTabsWrap.vertical ol,.ac-date h3,.TDB-tweet-user strong,.TDB-tweet-user strong a,.TDB-tweet-text a,.TDB-tweet-text,.TDB-tweet-time,.rv_text,.gt-footer .cr-info a,div.itemHeader h2.itemTitle ,#facebox .content div>div,#facebox .content div>div,.pt-basic h2 ,.hnews ul li h3 a ,.ticker-content a,.mewstick-left,.dateontop ul li,#toolbar .searchbox input,.searchbox .results li.results-header, h3.header,#sp-sidebar-a .sbmod-tit h3

is this ok or not?

I ask you because i cant find h1, h2, h3 tag in my site www.athens-dayandnight.gr

Thank you
  • Niels Klint
  • Niels Klint's Avatar
05 Jul 2016 02:49 - 05 Jul 2016 14:42
Replied by Niels Klint on topic K2 FB APP ID & ADMINS ID

K2 FB APP ID & ADMINS ID

Category: English K2 Community

I know the question was asked about a year ago, but maybe somebody would like to see an answer how to add the App ID and some other Open Graph meta tags
You can make an override in of the templates - ex. category.php or item.php
Right after
// no direct access defined('_JEXEC') or die;

in the top of the file you can add the following code
// Added to get and add meta date - ex. $content = $doc->getMetaData( “tag-name” ); $doc =& JFactory::getDocument(); $config = JFactory::getConfig(); // Add metatags $doc->addCustomTag( ' <meta property="og:locale" content="da_DK" /> <meta property="og:locale:alternate" content="en_GB" /> <meta property="og:locale:alternate" content="de_DE" /> <meta property="og:site_name" content="'.$config->get( 'sitename' ).'"/> <meta property="fb:admins" content="admin number"/> <meta property="fb:app_id" content="app id number"/> ');
  • Franz Heine
  • Franz Heine's Avatar
04 Jul 2016 17:49
Replied by Franz Heine on topic Backend Extrafields "Default values"

Backend Extrafields "Default values"

Category: English K2 Community

Hi Krikor,

thank you for your advice. I could find the code in the components/com_k2/models folder.

Here is the code
else if ($rows[$i]->type=='multipleCheckbox'){ // checkboxlist: added whole "else if" $cnt_nm = count($json->decode($rows[$i]->value)); $total_val = 0; foreach ($json->decode($rows[$i]->value) as $option) { $total_val += $option->name; } $v=0; $tmpArr = array(); $GrpName = $rows[$i]->name; foreach ($json->decode($rows[$i]->value) as $option){ if (@in_array($option->value,$object->value)) { $values[$v++] = array("GrpName" => $GrpName, "Label" => $option->label_name, "Value" => $option->name, "Total" => $total_val); } } //$value = @implode(" ",$values); $value = $values; }


Unfortunately no effect in the backend.

Could it be, that ive to change more files in the adminisistrator/components/com_k2 folder?

And another question, if i select the Type "Multiselect-list" ill get in the "Deafult values" fields with the
<div id="exFieldsTypesDiv"
and the
<input type="text" name="option_name[]">


Do you know which file is responsible for this tags?
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
04 Jul 2016 14:17
Replied by Krikor Boghossian on topic Problem with Tag and Search pages/url

Problem with Tag and Search pages/url

Category: English K2 Community

Hello,

The most easy way to solve this and get nice URLs would be to create a K2 Categories empty menu item. Leave the category selection empty and call it eg: content. This way all tags and search/ date URLs will be rendered through that menu item.

Furthermore, are you using any 3rd party SEO extensions?
  • Gio Verticalife
  • Gio Verticalife's Avatar
01 Jul 2016 21:36
Problem with Tag and Search pages/url was created by Gio Verticalife

Problem with Tag and Search pages/url

Category: English K2 Community

Hi

I'm having a problem with Tag and Search pages.

For example if you click on the tag "trekking" in this page

www.verticalife.provahosting.it/index.php/it/trekking-nel-gran-paradiso

you will be redirect to home page with the 404 error page.

Also if you try to search in the module below the top menu, it will happen the same.

I tried to create a menu item for a specific tag, to understand if it works anyway, and it is working : www.verticalife.provahosting.it/index.php/it/tag

If I disable the System Sef, the K2 tag is working...but then other extensions are not working.

Can you please help me?

I can find any problem like this in the forum or on google and I'm quite stuck!

Thank you!

Gio
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
30 Jun 2016 11:59
Replied by Krikor Boghossian on topic url error on K2 content module

url error on K2 content module

Category: English K2 Community

Hello Sébastien,

Let's try the following.
Map each K2 category into a separate menu item, so each category has its own URLs and module placements.
Finally create a blank K2 categories menu item (leave the category selection empty) and call it eg: content so all orphan tags, users and date/search listing have their own URLs, menu item and modules.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
28 Jun 2016 18:25
Replied by Krikor Boghossian on topic Help with SEO / Pagination

Help with SEO / Pagination

Category: English K2 Community

Hello,

K2 uses Joomla!'s default pagination (eg: check the URLs in joomla.org www.joomla.org/announcements.html?start=6 )

If you want to change the pattern of these URLs to have it /page/number you will need an SEO extension, preferably one which support K2.

Now as for the URLs do the following:
a) Map each category into a separate menu item,
b) Create an empty K2 category menu item (leave the category selection empty) and call it eg: content to have all orphan tags and user render through that menu.

Or, if you decide to use an SEO extension which enforces new URL patterns, make sure it supports K2.
  • Lee Collings
  • Lee Collings's Avatar
28 Jun 2016 17:12
Help with SEO / Pagination was created by Lee Collings

Help with SEO / Pagination

Category: English K2 Community

Not sure how I can solve this, as documentation seems very sparse, and the community for K2 / Joomla doesn't seem to be anywhere near as large as Wordpress does.

Saying that, hopefully there's a simple way to solve my issues! I appreciate all kinds of help!

I'm trying to SEO optimise my website, using SEO Screaming Frog to show all missing/duplicated titles and meta descriptions.

Firstly, I've noticed that the pagination links at the bottom of the page generated by K2, are creating URL parameters to show different items on the page. These are going to /itemlist?start=4 etc. How can I make this appear SEO friendly like /page/2/ etc?

Next, to get rid of the duplicate meta tag descriptions, I'd like to append the page numbering to the end of the meta description and title tags. CAn I do this dynamically somehow?

Lastly, I have some K2 categories assigned to menu items, which give me a structured URL to use. But they also have their own, generated by K2. Can I get rid of these somehow? IT's very messy, and doesn't seem to be anywhere as nice as Wordpress' menu structure.
Displaying 1181 - 1200 out of 6582 results.

Powered by Kunena Forum