-
- 90 Posts
I need an current state in getpage pagination on this page
http://modx.hurby.com/nieuws.html?page=1, does anybody now how to implement?
Is t better to make a pagination menu in wayfinder?
Thanx
Hurby
Adding this to the getpage snippit doesn’t do the trick;
$properties['pageCurrentTpl'] = empty($pageCurrentTpl) ? "<li class=\"control\"><a[[+title]] href=\"[[+href]]\">>></a></li>" : $pageCurrentTpl;
[[!getPage?
&elementClass=`modSnippet`
&element=`getResources`
&parents=`14`
&depth=`3`
&limit=`1`
&pageVarKey=`page`
&includeTVs=`1`
&includeContent=`1`
&tpl=`chk_nieuws-item`
]]
<div class="pagination">
<ul class="pagination">
[[!+page.nav]] </ul>
</div>
/
*pagination*/
.pagination {
margin-top: 15px;
float: left;
}
.pagination ul li a:hover {
color: #bf3131;
}
.pagination ul li a.current{
color: #bf3131;
}
.pagination ul li {
float: left;
padding: 0;
margin: 0;
margin-right: 10px;
background: none;
list-style-type: none;
}
.pagination ul li a {
float: left;
display: block;
padding: 6px 8px;
color: #fff;
border: 1px solid #464646;
background: url(../images/bgbox.png);
}
Sommige mensen hebben aan een half woord genoeg
See the newest release which now provides a separate property for the "active" or "current" page, adding class="active" by default.