Customizing pages with Pods Item list
-
Hello,
I am using Pods for a small collection manager website, and created two pods named “Books” and “MusicRecords”. Each have dozen of entries. I created two pages and added the “Pods Item List” block on these pages. The block is customized with the following CUSTOM template:
<div> <a href="{@permalink}"> <h1 style="font-size:25px;font-weight: bold">{@post_title}</h1> </a> <a href="{@permalink}"> <p style="float: left; border: 2px solid #555;"><img src="{@book_cover._src.medium}" height="200px" border="1px"></p> </a> <table> <tr> <td width="130px"><strong>Publisher:</strong></td> <td width="250px">{@publisher}</td> </tr> <tr> <td width="130px"><strong>Book Author:</strong></td> <td width="250px">{@book_author}</td> </tr> <tr> <td width="130px"><strong>ISBN-13:</strong></td> <td width="250px">{@isbn}</td> </tr> <tr> <td width="130px"><strong>Publishing Date:</strong></td> <td width="250px">{@publishing_date}</td> </tr> <tr> <td width="130px"><strong>Purchase Year:</strong></td> <td width="250px">{@purchase_year}</td> </tr> <tr> <td width="130px"><strong>Genre(s):</strong></td> <td width="250px">{@genres}</td> </tr> <tr> <td width="130px"><strong>No. Pages:</strong></td> <td width="250px">{@no_pages}</td> </tr> <tr> <td width="130px"><strong>Article No.:</strong></td> <td width="250px"><strong>BKID-{@ID}</strong></td> </tr> </table> <hr style="height:2px;border-width:0;color:gray;background-color:gray"> </div>
I have also configured the Order by with “t.post_title ASC” and let the post number limit to 1000. I have ticked the “Enable pagination” and set it to “Before and after list”.
Good, the page displays all items in the Pods in alphabetic ascending order. The buttons for page numbers also shows up at the bottom of the page but if I click on No. 2, I get an empty page. I believe its because I only have 17 entries so far in this Pod, and the block is set to display up to 1000 items. However, changing the value to 10 (so each page displays 10 items), only displays the first 10 items on the first page, and the second page is still empty.
Pagination question:
How can I make it display a pre-defined number of entries per page? Lets say 10 per page until the end of the list (for example with 36 entries, page1=10, page2=10, page3=10, page4=6) ??Question regarding filtering
Eventually, I will end up with hundreds of entries in each Pod. Music records will probably have 1000+ entries… Needless to say, I need a way to search and filter. At the top of the pages, I would like to have a set of dropdown filters for some of the relationship fields. For example selecting “Psychology” in the Filter “Genre” would display psychology books (I am using relationship fields for the genre because I wanted to provide the users with a pre-defined list of genres to avoid cataloguing problems.).Question regarding searching
For searching, I’d like to have a search box at the top of the page to be able to select a search field (from the “plain text” fields), then enter a search criterion.Are these things possible? I experimented with the plugin Search & Filter based on Jim True’s recommendation on another forum post, but I could not really do anything useful with it. The best I could achieve for the search function is activate search “at large” which is too broad to be useful…
Sorry for the post length, and if some of you have an idea how to achieve these things I’m very curious to see how!
Thanks!
- The topic ‘Customizing pages with Pods Item list’ is closed to new replies.