2007/12/18 10:35
<!-- 페이지 네비게이션 -->
<div class="pageNavigation">
<a href="{getUrl('page','','document_srl','')}" class="goToFirst"><img src="/images/bottomGotoFirst.gif" alt="{$lang->first_page}" width="7" height="5" /></a>
<!--@while($page_no = $page_navigation->getNextPage())-->
<!--@if($page == $page_no)-->
<span class="current">{$page_no}</span>
<!--@else-->
<a href="{getUrl('page',$page_no,'document_srl','')}">{$page_no}</a>
<!--@end-->
<!--@end-->
<a href="{getUrl('page',$page_navigation->last_page,'document_srl','')}" class="goToLast"><img src="/images/bottomGotoLast.gif" alt="{$lang->last_page}" width="7" height="5" /></a>
</div>
위는 페이지 네비게이션의 코드이다.
보통은 화면 아랫쪽에 페이지 네비게이션을 하나 두지만
위, 아래 각각해서 두개를 두는 경우도 있다.
하지만 처음 출력되는 페이지 네비게이션은 올바르게 출력이 되지만.
이후에 페이지 네비게이션은 출력이 되지 않는다.
그럴때는
아래와 같이 하면된다. 파란부분의 코드를 추가시켜주면 됩니다.
<!-- 페이지 네비게이션 -->
<div class="pageNavigation">
<a href="{getUrl('page','','document_srl','')}" class="goToFirst"><img src="/images/bottomGotoFirst.gif" alt="{$lang->first_page}" width="7" height="5" /></a>
{@$page_navigation->point = 0}
<!--@while($page_no = $page_navigation->getNextPage())-->
<!--@if($page == $page_no)-->
<span class="current">{$page_no}</span>
<!--@else-->
<a href="{getUrl('page',$page_no,'document_srl','')}">{$page_no}</a>
<!--@end-->
<!--@end-->
<a href="{getUrl('page',$page_navigation->last_page,'document_srl','')}" class="goToLast"><img src="/images/bottomGotoLast.gif" alt="{$lang->last_page}" width="7" height="5" /></a>
</div>




