Table with Pagination

I’m wondering how Could I create a table with pagination on it.

From what i can see the slider seems to be the only module capable of handling something like this, but i was wondering if there was a way to do it with just loopers and a pagination?

  1. I’m missing is how to “link” the pagination with the looper if that’s something possible without custom coding or a slider. is there any way or documentation I can use for this purpose?

  2. Is there any way I can link a “search” element to the content of the looper?

Hey @franticape,

Regarding the table, there’s no table element available so that would require custom development.

To your question:

The Pagination element will only display in an Archive Layout so I’ll assume you’re working on an archive layout possibly the search results page as you mentioned the search element.

In the Search Archive, you’ll only need the Looper Consumer. This means you should not have a Looper Provider for the consumer to return the result based on the search term.

If that didn’t answer your question, please clarify or give us specifics regarding the layout and/or page you’re trying to build.

Thanks.

Hi

I read the current documentation and it seems that out of a slider or an archive, it’s not possible to have what I want but I wanted to ask for clarification anyway:

  1. I want to have a page, not an archive or anything, just a page where I build a table with pagination and search function. I actually have one already with custom coding but I wanted to pass it into a native way with themeco

  2. With loopers I can get the content

  3. With a bit of CSS and who knows even a condition (if the index is odd or even) i could get the styling (question: is there a way to check if the index is odd or even in themeco?)

  4. I guess the search has to be entirely custom to handle the table from themeco, is that correct, is there no other way?

  5. Is there any way i can add pagination to a looper at all?

If something from this is not available, then could I ask that you add it as a feature request? something like a table element or the tools to make killer tables instead of relying in custom coding or plugins for it?

Hello @franticape,

1.) You can use FacetWP to have a paginated post item when using the Looper on a normal page. You may check out this video on how to work with FacetWP:
https://www.youtube.com/watch?v=b0QCo8T-3cU

You can also use the “By Page” option in the Looper Provider Query Builder:

3.) Yes, you can use the Looper Index condition, where you can then check if the item is first, last, odd or even.

image

image

4.) There isn’t a feature in the builder that allows you to add a search and be able to filter the items in the table. I would recommend that you use FacetWP instead. There should be a feature for this. Alternatively, you can integrate Isotope JS into your page and add custom JS to make it work. This is beyond the scope of our support though.

5.) The Pagination element will only work when used in the Archive layout. For normal pages, you will have to add your custom pagination or use FacetWP.

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.