14 Posts
gomes
9 years ago
5
Topic

Good day!
As in "masonry" to implement "load more"?
Sorry for my English.

Get a VIP membership
14 Posts
gomes
9 years ago
0
Level 1

Hello gomes,

in the tab "configuration" of your search type, you must set the parameter "Show Pagination" on "Infinite => Click".


regards.

Lionel

34 Posts
Index
8 years ago
0
Level 1

A few more words to this topic wouldn't hurt, didn't found anything over google - so i figured it out by myself. It's native possible to do this with table- and list-view, or get the masonary template - BUT everyone wants to infinite their own customized blog views, right?

When you put on the pagination "Infinite => Click" like Lionel described, it wont work for your customized blog views -> because we're missing the class 'cck-loading-more'

Look on your browsers "Inspect Element", where this class is in the demo-page: exactly one div-container over the first single element of the displayed content type. So it's a box, that adds the loaded content in itself. If you overwrite a position and put the class in there, it wont work, because now it will load all the content in every single element, destroying the page. Unfortunately, i couldn't found a possibility to add the class directly on the div that embraces my single elements.

For me, it looked like this: first embracing div is the class 'cck_page_items' -> then the container, where the class 'cck-loading-more' needs to be: div id="cck1r" class="cck-f100 cck-pad-8"

I solved it by putting a little jQuery, that adds the class directly to the div. To do that, i just set up a module and placed it on a bottom position, so it can be load after the id 'cck1r' is already set:

*script* jQuery( "#cck1r" ).addClass( "cck-loading-more" ); */script*
(change the stars to the respective <> brackets, it wont display here otherwise)

That's it, enjoy infinite load on your personal blog view!

4229 Posts
Kadministrator
8 years ago
1
Level 1

Hi,

I made a pull to fix this in Seblod core

https://github.com/Octopoos/SEBLOD/pull/232

34 Posts
Index
8 years ago
0
Level 2

Ooh - this is a bug? Well that makes sense.^^

Get a Book for SEBLOD