how can i add pagination feature to course page .
CONTRIB-967 can help in adding pagination to target and report .
does it help for course???
how can i add pagination feature to course page .
CONTRIB-967 can help in adding pagination to target and report .
does it help for course???
Hi Nirav,
Your first post links to a module and the second post links to pagination on the front page. Where are you attempting to add the code to? A course format?
Also, what version of Moodle are you using? And is it different to that shown in the patches?
Gareth
hi Gareth,
i am trying to add code for providing pagination to the list of course on the front page.
yes it is for course .
i am using moodle 2.3.
in the patch.txt what does -2173,7 +2203,15 means?
does it means that from line 2173 delete 7 line and from line 2203 add 15 lines from patch.txt file to datalib.php file?
Hi Nirav,
Ok, if its for the list of courses on the front page, then this is a theme issue. I'll see how things go and if need be, move the post to that forum where there will be people with theme knowledge (including me).
Moodle 2.3 is unsupported now, so if you are developing something new then I'd recommend upgrading as soon as possible.
The '-' means line removed and the '+' means line added. The patches were for M1.9 so I would guess for the most part will not work in M2.x because the theme code was completely re-written for it. This also means that the patches will not make much sense. So, get a copy of M1.9, apply the patches there and learn what it does and how it does it. Then you will be able take the concept and called functions and patch them in M2.x somehow.
Cheers,
Gareth
Hi ,
by making changes in 1)admin->setting-> appearance.php 2) my->index.php 3) lang->en->admin.php i am able to apply pagination to course page .
now i need to apply pagination to course categories page as shown in the attachment .
can i do pagination on this page by making changes in appearance.php , admin.php and course->index.php?
where can i add pagination code in index.php for course category page???
in my->index.php i added pagination code after
if
(!$currentpage->userid) {
$context = get_context_instance(CONTEXT_SYSTEM);
// So we even see non-sticky blocks
}