Advertisement

How to add a pagination to a Joomla 4 module?

For Joomla! 4.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
Geoge_A
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Tue Jul 28, 2020 3:09 pm

How to add a pagination to a Joomla 4 module?

Post by Geoge_A » Tue Oct 03, 2023 7:21 am

Hi there....
How to add a pagination to a Joomla 4 module?
(mod_articles_category)
Thanks...

Advertisement
Von Barron
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Fri Apr 08, 2016 9:19 am

Re: How to add a pagination to a Joomla 4 module?

Post by Von Barron » Tue Oct 03, 2023 9:50 am


Geoge_A
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Tue Jul 28, 2020 3:09 pm

Re: How to add a pagination to a Joomla 4 module?

Post by Geoge_A » Tue Oct 03, 2023 9:54 am

I know but it doesn't work...
Thanks...

MarkRS
Joomla! Explorer
Joomla! Explorer
Posts: 362
Joined: Thu Oct 29, 2009 8:28 am
Location: UK

Re: How to add a pagination to a Joomla 4 module?

Post by MarkRS » Tue Oct 03, 2023 11:23 am

Could you say a bit more than "it doesn't work" please.

If you say what exactly is happening then it's easier to help.
It's a community, the more we all contribute, the better it will be.

Geoge_A
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Tue Jul 28, 2020 3:09 pm

Re: How to add a pagination to a Joomla 4 module?

Post by Geoge_A » Tue Oct 03, 2023 11:46 am

MarkRS wrote: Tue Oct 03, 2023 11:23 am Could you say a bit more than "it doesn't work" please.

If you say what exactly is happening then it's easier to help.
It does not appear pagination in the module front page...

gws
Joomla! Champion
Joomla! Champion
Posts: 6132
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: How to add a pagination to a Joomla 4 module?

Post by gws » Tue Oct 03, 2023 1:46 pm

I think you need jquery for it to work and J4 doesn't load jquery by default.

Geoge_A
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Tue Jul 28, 2020 3:09 pm

Re: How to add a pagination to a Joomla 4 module?

Post by Geoge_A » Tue Oct 03, 2023 3:35 pm

gws wrote: Tue Oct 03, 2023 1:46 pm I think you need jquery for it to work and J4 doesn't load jquery by default.
It's a difficult issue and I've been trying for a long time...

MarkRS
Joomla! Explorer
Joomla! Explorer
Posts: 362
Joined: Thu Oct 29, 2009 8:28 am
Location: UK

Re: How to add a pagination to a Joomla 4 module?

Post by MarkRS » Tue Oct 03, 2023 4:18 pm

Look on the web for websites called things like "You probably don't need JQuery at all".

It's (often) not hard to modify code using jquery to not use it.
It's a community, the more we all contribute, the better it will be.

Geoge_A
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Tue Jul 28, 2020 3:09 pm

Re: How to add a pagination to a Joomla 4 module?

Post by Geoge_A » Tue Oct 03, 2023 4:23 pm

MarkRS wrote: Tue Oct 03, 2023 4:18 pm Look on the web for websites called things like "You probably don't need JQuery at all".

It's (often) not hard to modify code using jquery to not use it.
Is it possible to include Blog pagination to module?

Von Barron
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Fri Apr 08, 2016 9:19 am

Re: How to add a pagination to a Joomla 4 module?

Post by Von Barron » Tue Oct 03, 2023 7:59 pm

Here is another option based on JS with examples: https://github.com/obuisard/purePajinat ... mples.html

Geoge_A
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Tue Jul 28, 2020 3:09 pm

Re: How to add a pagination to a Joomla 4 module?

Post by Geoge_A » Wed Oct 04, 2023 6:05 am

Von Barron wrote: Tue Oct 03, 2023 7:59 pm Here is another option based on JS with examples: https://github.com/obuisard/purePajinat ... mples.html
It's hard to me to include it code in a module.
(Thanks for your answer)

Von Barron
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Fri Apr 08, 2016 9:19 am

Re: How to add a pagination to a Joomla 4 module?

Post by Von Barron » Wed Oct 04, 2023 6:28 am

The JS code isn't added in the module but in the "user.js" or "custom.js" file of your template.
Simply copy/paste it.

Geoge_A
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Tue Jul 28, 2020 3:09 pm

Re: How to add a pagination to a Joomla 4 module?

Post by Geoge_A » Wed Oct 04, 2023 6:48 am

Von Barron wrote: Wed Oct 04, 2023 6:28 am The JS code isn't added in the module but in the "user.js" or "custom.js" file of your template.
Simply copy/paste it.
I know about it, but I can't get it to work!

Von Barron
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Fri Apr 08, 2016 9:19 am

Re: How to add a pagination to a Joomla 4 module?

Post by Von Barron » Wed Oct 04, 2023 6:53 am

The first tutorial works, I've tested it.
So maybe the issue wasn't in the code.

It seems complicated to describe all the steps for such feature on a forum if you don't know code.
If there's no extension available on JED, maybe you should ask (and pay) someone to do it for you.

Geoge_A
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Tue Jul 28, 2020 3:09 pm

Re: How to add a pagination to a Joomla 4 module?

Post by Geoge_A » Wed Oct 04, 2023 7:14 am

Von Barron wrote: Wed Oct 04, 2023 6:53 am The first tutorial works, I've tested it.
I will try it again...

Advertisement

Post Reply

Return to “Joomla! 4.x Coding”