Plugin Source: https://github.com/paulirish/infinite-scroll/
Automatic Scroll:
$('selector').infinitescroll(options);
Manual Scroll:
$('#scroll-container').infinitescroll(options);
$('#scroll-container').infinitescroll('unbind');
$('.view_more').click(function() {
$('#scroll-container').infinitescroll('retrieve');
return false;
});
Note:
You may have to add the manual trigger behavior if you are working with masonry or isotope in order to make it work. Just include manual-trigger.js after infinitescroll and pass the behavior by passing behavior: 'twitter' when calling the plugin.
Web Development Information [PHP, DRUPAL, MYSQL, MAGENTO, JQUERY, JAVASCRIPT, CSS, HTML5]
Thursday, December 4, 2014
Monday, October 27, 2014
GIT shows warning when pull
GIT shows warning when pull. If you are getting the below warning message when GIT pull
(gnome-ssh-askpass:29014): Gtk-WARNING **: cannot open display:
Please use "unset SSH_ASKPASS"
(gnome-ssh-askpass:29014): Gtk-WARNING **: cannot open display:
Please use "unset SSH_ASKPASS"
Friday, October 10, 2014
Show new products list on homepage in Magento
Please follow the below steps to showing the new products list on homepage in Magento.
1. Admin -> CMS -> Pages
2. Edit "Home page" content
3. Click "Content" tab
4. Press "Show/Hide editor"
5. Click "Insert Widget"
6. Choose "Catalog New Products List" from Widget type drop down
7. Ans choose "Widget Options"
8. Done. Insert Widget
1. Admin -> CMS -> Pages
2. Edit "Home page" content
3. Click "Content" tab
4. Press "Show/Hide editor"
5. Click "Insert Widget"
6. Choose "Catalog New Products List" from Widget type drop down
7. Ans choose "Widget Options"
8. Done. Insert Widget
Wednesday, October 8, 2014
Magento admin login not working
There is the problem with session cookie. So open the /app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file and comment out the line
//'domain' => $cookie->getConfigDomain(),
//'secure' => $cookie->isSecure(),
//'httponly' => $cookie->getHttponly()
//'domain' => $cookie->getConfigDomain(),
//'secure' => $cookie->isSecure(),
//'httponly' => $cookie->getHttponly()
Drupal8 Beta1 install problem
If you are getting PHP Extension while install problem in Drupal8 Beta1, Please uncomment extension=php_fileinfo.dll on php.ini file.
This will work.
This will work.
Subscribe to:
Posts (Atom)