VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

Portfolio Sub Categories (filtering) not working!
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Portfolio Sub Categories (filtering) not working!

Portfolio Sub Categories (filtering) not working! 02 May 2014 18:59 #4606

the subcategory filtering in portfolio section works well if the name of subcategory is composed by one word, if the name is composed in 2 or more words filtering fail and any article are displayed!!

Why??

  • Posts:6
  • Dennet
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Portfolio Sub Categories (filtering) not working! 10 May 2014 14:53 #4631

Hi! I've encountered the same bug, and I think it's due to the isotope plugin, which doesn't work correctly in joomla 3.
Please any suggestion?

  • Posts:4
  • lorello88
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Portfolio Sub Categories (filtering) not working! 10 May 2014 15:25 #4633

The problem is that the title of the category is used as class for the item element.
Hence the class selector .Class-Name doesn't work due to the spaces (example (°.Bla Bla°)).
My solution i sto add this line
value=value.replace(/ /g,".")
in templates/jf_creativia/html/com_k2/jf_creativia/category.php

 
// make option object dynamically, i.e. { filter: '.my-filter-class' }
var options = {},
key = $optionSet.attr('data-option-key'),
value = $this.attr('data-option-value');
// parse 'false' as false boolean
value = value === 'false' ? false : value;
value=value.replace(/ /g,".")
options[ key ] = value;
if ( key === 'layoutMode' && typeof changeLayoutMode === 'function' ) {
// changes in layout modes need extra logic
changeLayoutMode( $this, options )
} else {
// otherwise, apply new options
console.log(options);
$container.isotope( options );
}
 
The following user(s) said Thank You: kirelle, isupport, HelenaJ

  • Posts:4
  • lorello88
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Portfolio Sub Categories (filtering) not working! 11 May 2014 10:36 #4636

Works!!!!

Perfect solution.
Thank you very much!!

Mik

  • Posts:6
  • Dennet
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Portfolio Sub Categories (filtering) not working! 13 May 2014 21:52 #4650

Thank you so much! I had the same problem, only didn't realise it was because of space between words.

Once again thanks!

  • Posts:2
  • kirelle
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Portfolio Sub Categories (filtering) not working! 25 Nov 2014 15:35 #5856

Thenk you so much!!!!!!!

  • Posts:17
  • sgreco65
  • Fresh Boarder
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
Time to create page: 1.36 seconds
Sunday 26 May 2019

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.