Page Break Not Functioning

dm
@dm
7 years ago
37 posts
I am using this code {jrCore_list module="jrAudio" template="jrAudio_item_list.tpl" pagebreak="10" pager=true} to display a list of songs on my index page, when I click on the next page button or the dropdown and choose a page, it shows the same 10 tracks from the first page.. any ideas?

updated by @dm: 11/12/17 06:00:40AM
SteveX
SteveX
@ultrajam
7 years ago
2,584 posts
You probably need to pass in the page number as well.

Probably page=$_post.p in your jrCore_list function.

Put {debug} in your template to see if the page number is set in $_post


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
michael
@michael
7 years ago
7,746 posts
^^ do what @ultrajam said for the page break issue.

You've got a couple of concepts mixed up in that code, clarifying:
{jrCore_list module="jrAudio" template="jrAudio_item_list.tpl" .....}

What you're asking for there is an audio list, which is fine, but you're specifying the template of the default over-ride.

If you JUST put this
{jrCore_list module="jrAudio"}
The template used for layout would be the default template which is:
/modules/jrAudio/templates/item_list.tpl

If you want to override item_list.tpl for the audio file, you copy that file to your skin at:
/skins/( YOUR SKIN )/jrAudio_item_list.tpl

and it will automatically override the default template with your skins template.

So in the code above, you dont need to have that template="" in there at all.

The time when you would want to use that tempate="" is when you don't want to override ALL the lists everywhere, but just want some different layout for one particular list, then you'd put in a template to use:
{jrCore_list module="jrAudio" template="my_special_audio_list.tpl" .....}

Just pointing that out. :)

Tags