Pagebreak Documentation
Suggestions
If am trying to do a pagebreak on a youtube video list.
currently this is what i have
<div class="row"> {jrCore_list module="jrYouTube" template="list_youtube.tpl" pagebreak="20"} </div>
But i would like to add a pagebreak to this list so i can view all of the videos.
so i tried adding
pagebreak=$_conf.mySkin_default_artist_pagebreak page=$_post.p}
and then tried realized just needed
pagebreak=20 page=$_post.p}
but it dosent create the arrows seperating the list.
so i added...
{if $info.total_pages > 1}
<div class="block">
<table style="width:100%;">
<tr>
<td style="width:25%;">
{if isset($info.prev_page) && $info.prev_page > 0}
<input type="button" value="{jrCore_lang module="jrCore" id=26 default="<"}" class="form_button" onclick="window.location='{$info.page_base_url}/p={$info.prev_page}'">
{/if}
</td>
<td style="width:50%;text-align:center;">
{if $info.total_pages <= 5 || $info.total_pages > 500}
{$info.page} / {$info.total_pages}
{else}
<form name="form" method="post" action="_self">
<select name="pagenum" class="form_select" style="width:60px;" onchange="var sel=this.form.pagenum.options[this.form.pagenum.selectedIndex].value;window.location='{$info.page_base_url}/p=' +sel">
{for $pages=1 to $info.total_pages}
{if $info.page == $pages}
<option value="{$info.this_page}" selected="selected"> {$info.this_page}</option>
{else}
<option value="{$pages}"> {$pages}</option>
{/if}
{/for}
</select> / {$info.total_pages}
</form>
{/if}
</td>
<td style="width:25%;text-align:right;">
{if isset($info.next_page) && $info.next_page > 1}
<input type="button" value="{jrCore_lang module="jrCore" id=27 default=">"}" class="form_button" onclick="window.location='{$info.page_base_url}/p={$info.next_page}'">
{/if}
</td>
</tr>
</table>
</div>
{/if}
{/if}
copied from an example i was using.
Quote: I tried looking for an example how to set up a pagebreak other then the code i was breaking apart and learning from.
Ill figure it out soon, this is easy to understand and work out.. I just dont know much yet about smarty and im still learning how it works.
The reason i posted this however was you were asking everyone if we could find suggestions for documentation and i was thinking that showing a user this process in more depth is a good way to break the ice as far as:
getting started with developing your Jamroom site. And it can also introduce the user to the power and functionality that Jamroom has.
updated by @developer-networks: 11/10/13 02:09:50AM