Pagination templates for "Load More" on TD Composer Blocks

Posted in: Newspaper
Post count: 15

What template is used after a user clicks the “Load More” button in a TD Composer Block?? I am using Block 5 on a page and have customized its corresponding td_module_3.php in a child theme with some conditional logic. However, the “load more” pagination uses a different block/module.

Can anyone point me to where these other templates are located within the theme?

Post count: 23312

Hello jciview,

Notice that the Load More pagination is just a type of block pagination which can be added for each block, from here -> https://www.screencast.com/t/zdjbYGcn9U6 If is not what you mean, please provide more details so I will be able to provide a more accurate response.

Thanks for your understanding!

Post count: 15

Thanks for your reply.

I know where to activate it… and it’s activated. However, clicking “load more” button doesn’t seem to use the same php template as Block 5 (td_module_3.php).

Here’s the page with the problem:
https://www.farmflavor.com/recipes/

Post count: 20685

Hi,

Regardless of form of pagination, the block will always use the same module type. In your case the initially loaded modules are with problem, not the ones that are loaded with the load more button.
Block 5 looks like this – https://demo.tagdiv.com/newspaper/block-5/
I see there is a problem with the thumbnails used for the first 10 modules in that block, please regenerate them and check if the problem is solved
https://forum.tagdiv.com/thumbnails-fix-strange-looking-images-on-blocks/
Also I see you are using some CSS in the child theme I believe to set a minimum height of 324px to a thumbnail that by default is 235px in height (module 3)
https://www.screencast.com/t/isfQEWCRXdh
That would not a proper way to do it. Maybe try and use blocks which have a thumbnail size that works best for you, instead of that
https://forum.tagdiv.com/theme-thumbs/

Post count: 15

Thanks for your help but maybe I haven’t explained my problem.

I need to render 2 different displays depending on the current post’s category. Here’s part of the td_module_3.php code with my comments:


<div class="<?php echo $this->get_module_classes();?>">
<div class="td-module-image">
<!-- IF CURRENT POST IS IN RECIPE CATEGORY -->
<?php echo $this->get_image('td_324x324');?>
<!-- IF CURRENT POST IS NOT IN RECIPE CATEGORY -->
<?php echo $this->get_image('td_324x235');?>
<?php if (td_util::get_option('tds_category_module_3') == 'yes') { echo $this->get_category(); }?>
</div>
<?php echo $this->get_title();?>
</div>

I’m not sure how to pull the data like post ID from the “$this” array and check to see if it’s top parent category is “recipe.”

Post count: 20685

That may not work with the modules, each block uses predefined modules with predefined thumbnail sizes, the design is based on that. Why not use multiple types of blocks for different results, instead of conditioning the same block modules.
I have never tried something like that, can’t say if it would work properly or not, it seems to not work. There are design problems, for example the article titles are not visible for some modules doe to the extra CSS.

Maybe review your modifications if you want to keep using them, or try other modifications. Or simply use different types of blocks, that would be much easier.

Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.