Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Reygoch
  • Reygoch's Avatar
31 Jul 2015 18:23

Where can I find tags page view / controller

Category: English K2 Community

Hi,

I want to modify how tags search (page that displays all articles related to certain tag) looks and I also want to add noindex meta tag to prevent tag pages from being indexed.

Main problem is that whole K2 (my version is for joomla 2.5) is so messy and I absolutely can't find where to modify view / controller for tag page. I have found something mildly related in
/components/com_k2/templates/default/tags.php /components/com_k2/views/itemlist/tmpl/tag.php

But that's not it. Please don't tell me it's incorporated with ifs and elses inside itemlist or something like that cos than we can throw whole MVC thing through the window.

Any help much appreciated!
  • Nick Wilmot
  • Nick Wilmot's Avatar
31 Jul 2015 16:52 - 31 Jul 2015 17:07
Replied by Nick Wilmot on topic Editing item: Selection based tagging does not work

Editing item: Selection based tagging does not work

Category: English K2 Community

If like me, you don't want to run the whole dev code in production, this is the update to fix the problem:

github.com/joomlaworks/k2/blob/f7bb8466d1acc745bd7fdb3c590b944c3383eb12/administrator/components/com_k2/k2.php

Obviously use at your own risk, seems to work without issue on my implementation - the only significant code change is the tag interface. Thanks @lefteris for the commit.
  • Happyflo
  • Happyflo's Avatar
31 Jul 2015 13:56 - 31 Jul 2015 14:08
Replied by Happyflo on topic K2 tags not working

K2 tags not working

Category: English K2 Community

Hi,Lefteris!Tags are published but not working. It give an error 500.
I do not know how to go on with K2...I wonder what to do to fix the error.
  • Lefteris
  • Lefteris's Avatar
30 Jul 2015 12:21
Replied by Lefteris on topic K2 tags not working

K2 tags not working

Category: English K2 Community

Are the tags published? Adding the language variable to the URL gives back an error that the tag cannot be found www.hisarlaka.com/bg/component/k2/itemlist/tag/diet . I am running out of ideas.
  • Nick Wilmot
  • Nick Wilmot's Avatar
29 Jul 2015 18:22
Replied by Nick Wilmot on topic Editing item: Selection based tagging does not work

Editing item: Selection based tagging does not work

Category: English K2 Community

Thanks for the update.

If there are no issues with the development version, it begs the question why it can't be released as the latest stable version!? I'm very reluctant to launch a site on beta software.

As someone new to K2 it seems as if development of the extension isn't a priority. Visiting getk2.org you could be forgiven for thinking the whole project was dead in the water - the last blog post on the homepage was early 8 months ago!

Beginning to wonder if committing a client to the long-term on K2 was a mistake?
  • Marc Solaris
  • Marc Solaris's Avatar
29 Jul 2015 15:14 - 29 Jul 2015 15:16

Stop Google from indexing 'tag' pages when tags are used ?

Category: English K2 Community

Hello,

I am using the tag functions in k2 and when I check what Google indexes from my website I see that it also indexes pages such as : This example URL

in item.php (line 298) of my (gavick.com Writer) template I tried doing the following to stop Google from indexing tag pages as follows:

<li> <a rel="nofollow" href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a> </li>

I added rel="nofollow" but it seems this isn't working.

Am I missing something ?
I basically don't want any links indexed by google which has the word "/tag/" in it, I just want my normal links to my pages, and no tag pages indexed.
  • Happyflo
  • Happyflo's Avatar
29 Jul 2015 13:28
Replied by Happyflo on topic K2 tags not working

K2 tags not working

Category: English K2 Community

Hi,Lefteris!
I do not use any extension for multilingual functionality.
  • Lefteris
  • Lefteris's Avatar
29 Jul 2015 12:20
Replied by Lefteris on topic K2 tags not working

K2 tags not working

Category: English K2 Community

Do you use any extension for multilingual functionality? Or just the core multilingual features?
  • Franz Heine
  • Franz Heine's Avatar
29 Jul 2015 08:14 - 29 Jul 2015 08:47
Rating in module position was created by Franz Heine

Rating in module position

Category: English K2 Community

Hi

im using the great k2 component for my hole site.
For the articles im using the k2 rating.
Is it possible to generate a rating for the hole category page or create a rating in a module position?

Thx

EDIT:

i put the following code into category.php. I can see the rating but without function

<?php if($this->params->get('catItemRating')): ?>
<!-- Item Rating -->
<div class="catItemRatingBlock">
<span><?php echo JText::_('K2_RATE_THIS_ITEM'); ?></span>
<div class="itemRatingForm">
<ul class="itemRatingList">
<li class="itemCurrentRating" id="itemCurrentRating<?php echo $this->category->id; ?>" style="width:<?php echo $this->category->votingPercentage; ?>%;"></li>
<li><a href="#" rel="<?php echo $this->category->id; ?>" title="<?php echo JText::_('K2_1_STAR_OUT_OF_5'); ?>" class="one-star">1</a></li>
<li><a href="#" rel="<?php echo $this->category->id; ?>" title="<?php echo JText::_('K2_2_STARS_OUT_OF_5'); ?>" class="two-stars">2</a></li>
<li><a href="#" rel="<?php echo $this->category->id; ?>" title="<?php echo JText::_('K2_3_STARS_OUT_OF_5'); ?>" class="three-stars">3</a></li>
<li><a href="#" rel="<?php echo $this->category->id; ?>" title="<?php echo JText::_('K2_4_STARS_OUT_OF_5'); ?>" class="four-stars">4</a></li>
<li><a href="#" rel="<?php echo $this->category->id; ?>" title="<?php echo JText::_('K2_5_STARS_OUT_OF_5'); ?>" class="five-stars">5</a></li>
</ul>
<div id="itemRatingLog<?php echo $this->category->id; ?>" class="itemRatingLog"><?php echo $this->category->numOfvotes; ?></div>
<div class="clr"></div>
</div>
<div class="clr"></div>
</div>
<?php endif; ?>
  • Kelsey Brookes
  • Kelsey Brookes's Avatar
29 Jul 2015 01:34
Replied by Kelsey Brookes on topic K2 Item Image Big Problem

K2 Item Image Big Problem

Category: English K2 Community

I'd say he's either left a tag unclosed (or forgotten to delete the closing tag after removing the opening) or accidentally duplicated the img tag.

The solution is really simple, and it's one that I have to deal with on almost every site I develop at the moment:

Templates using Bootstrap and K2 have a fundamental issue with the a tag in the image block of item.php. Because it uses the class of 'modal', the main item image of K2 will disappear: a.modal in Bootstrap has 'display: none;' set.

So as mentioned in an earlier post there are a couple of simple solutions:

1) Don't need the article image to be a modal?
Override the item.php template and remove the 'a' tag surrounding the item image.

2) Need modals, and are happy with the K2 modal?
Search all css files in your template for .modal - if it's based on Bootstrap, you'll find it in bootstrap.css, bootstrap.min.css or a combined.css file, depending on how the template authors have setup the template.

3) Need modals, but want to use the Bootstrap modal system throughout the site?
This is where it gets a bit trickier because you'll really need to disable the K2 modal system.

To do this I do the following:

- Override item.php with the necessary Bootstrap equivalent modal code
- Disable K2 css, jquery and any other options in K2 preferences - bear in mind this means you'll need to create the template styles yourself
- Disable Mootools by using the Mootools Enable/Disable plugin
- Strip out the SqueezeBox script in the site header which K2 instansiates and with Mootools gone will now cause js errors

The first step is the most complicated bit and if you're not comfortable with template overrides then you should probably avoid option #3 entirely. Get it right however and you can have all of your media in Bootstrap modals and strip out redundant systems.
  • Happyflo
  • Happyflo's Avatar
28 Jul 2015 21:58
Replied by Happyflo on topic K2 tags not working

K2 tags not working

Category: English K2 Community

Thank you for helping me Lefteris!
The site is not multilingual.The site is in Bulgarian.
I just gave an example with latin tags.
  • Lefteris
  • Lefteris's Avatar
28 Jul 2015 18:34

Editing item: Selection based tagging does not work

Category: English K2 Community

@Nick Wilmot

You should not have issues with the development version. Otherwise i am afraid that you will have to wait for the next release. All the commits are listed at github.com/joomlaworks/k2/commits/master but applying only one of them might break the extension.
  • Lefteris
  • Lefteris's Avatar
28 Jul 2015 18:17
Replied by Lefteris on topic K2 tags not working

K2 tags not working

Category: English K2 Community

There is no doubt that something is wrong with either your .htaccess file or the SEF extension you are using. Do you have a multilingual site? Why the language code is not present on the URL? Try to disable again the SEF extension that you are using. Make sure to also disable any system plugins related to that extension.
  • Happyflo
  • Happyflo's Avatar
28 Jul 2015 13:58
Replied by Happyflo on topic K2 tags not working

K2 tags not working

Category: English K2 Community

Hi,Lefteris!
Latin tags also not working.
www.hisarlaka.com/component/k2/item/42-how-to-lose-7kg-fast.html
  • Lefteris
  • Lefteris's Avatar
28 Jul 2015 12:21
Replied by Lefteris on topic K2 tags not working

K2 tags not working

Category: English K2 Community

There is no need to send me the file. You have to try some other things. Try to create a tag with latin characters and see if that works.
  • Happyflo
  • Happyflo's Avatar
28 Jul 2015 09:53
Replied by Happyflo on topic K2 tags not working

K2 tags not working

Category: English K2 Community

I would like to send you the htaccess file. How can I do this?
  • John Farouk
  • John Farouk's Avatar
27 Jul 2015 16:02
Replied by John Farouk on topic K2 Item Image Big Problem

K2 Item Image Big Problem

Category: English K2 Community

Kelsey Brookes wrote: This one is pretty easy and its one that's cropping up a lot with K2 and templates that use modals.

It's a conflict between the way Bootstrap (the 'framework' your template is based on) handles modals and the way K2 does.

The image is actually present, but the css of your template sets .modal to display:none.

You've got two ways of handling this:

1) Edit your bootstrap-rtl.css file, look for .modal and delete it. This will almost certainly cause other issues, but it should allow the image to be visible

2) If you don't care about being able to zoom in on the image, simply create a template override for the news item.php and strip out the entire <a> tag that surrounds the image.

If you REALLY want to have modals and #1 doesn't work, then you can go a bit further and try to implement modals in the Bootrap manner.

For this to work you need to:

1) Create a template override for news item.php to strip out the existing K2 modal code and replace it with Bootstrap's code
2) Use Mootools Enabler/Disabler to disable Mootools
3) Use NoNumber ReReplacer to get rid of the Squeezebox code in the header.

Regards,

Kelsey


I need to thank you for you reply and great help, I deleted all .modal inside the bootstrap-rtl.css folder all of them, i got the broken thumbnail of the image but the image still not showing for my bad luck.

Concerning the steps you asked me to do please i need your help i can't do it as i am beginner in that, so i can PM you login details and can you help me in that, i will be thankful to you Kelsey...waiting reply
  • Lefteris
  • Lefteris's Avatar
27 Jul 2015 12:31
Replied by Lefteris on topic K2 tags not working

K2 tags not working

Category: English K2 Community

@Happyflo

As i can see it works fine when you create menu links. As Krikor wrote something is wrong with your server's htaccess rewrites.
  • Lefteris
  • Lefteris's Avatar
27 Jul 2015 12:08
Replied by Lefteris on topic K2 FB APP ID & ADMINS ID

K2 FB APP ID & ADMINS ID

Category: English K2 Community

Hi,

This has nothing to do with K2. You need to either add those tags directly in your template's source code or look for a plugin that will do that.
  • Kelsey Brookes
  • Kelsey Brookes's Avatar
27 Jul 2015 07:52
Replied by Kelsey Brookes on topic K2 Item Image Big Problem

K2 Item Image Big Problem

Category: English K2 Community

This one is pretty easy and its one that's cropping up a lot with K2 and templates that use modals.

It's a conflict between the way Bootstrap (the 'framework' your template is based on) handles modals and the way K2 does.

The image is actually present, but the css of your template sets .modal to display:none.

You've got two ways of handling this:

1) Edit your bootstrap-rtl.css file, look for .modal and delete it. This will almost certainly cause other issues, but it should allow the image to be visible

2) If you don't care about being able to zoom in on the image, simply create a template override for the news item.php and strip out the entire <a> tag that surrounds the image.

If you REALLY want to have modals and #1 doesn't work, then you can go a bit further and try to implement modals in the Bootrap manner.

For this to work you need to:

1) Create a template override for news item.php to strip out the existing K2 modal code and replace it with Bootstrap's code
2) Use Mootools Enabler/Disabler to disable Mootools
3) Use NoNumber ReReplacer to get rid of the Squeezebox code in the header.

Regards,

Kelsey
Displaying 1761 - 1780 out of 6582 results.

Powered by Kunena Forum