Page 1 of 1
phpwcm133 paginate question
Posted: Wed 26. Dec 2007, 19:34
by PHPmaster
Hi, In Admin of version 133 you can choose to paginate articles. You can say: 5 articles but 2 articles per page. Well this is great but in frontend it shows like: {Vorige:«} {Volgende:»} pagina 1/2, resultaat 1-2, {NAV:1-3, ||}. Is this asn css issue that it doesn't work and looks like code? How can I solve it? is this solved in 135? I think it would be very nice to paginate articles.
Jeroen

Re: phpwcm133 paginate question
Posted: Thu 27. Dec 2007, 15:30
by PHPmaster
Hi, After making more articles I saw pagination works fine in 133 and 135.
A tip: use this in conf.template_default.inc
'<div><strong>{PREV:«previous}| page # |{NEXT:next»}</strong></div>';
It looks better than the default. Is there somebody who has tips to css this item as well? Would be nicer.
Thanks, Jeroen

Re: phpwcm133 paginate question
Posted: Thu 27. Dec 2007, 15:46
by juergen
Thats what I use:
Code: Select all
div.cpPagination {
margin: 10px 0 10px 0;
text-align: right;
}
a.cpPaginate, a.cpPaginateActive, a.cpPaginationPrev, a.cpPaginationNext {
padding: 0px 3px 1px 3px;
background-color: #FFFFFF;
color: #BBBBBB;
text-decoration: none;
font-weight: bold;
border: 1px solid #CBCBCB;
}
a.cpPaginateActive {
background-color: #CBCBCB;
color: #FFFFFF;
border: 1px inset #CBCBCB;
}
a.cpPaginationPrev:hover, a.cpPaginationNext:hover, a.cpPaginate:hover {
background-color: #DDDDDD;
color: #666666;
border: 1px inset #CBCBCB;
}
Think thats from the forum.. .or in parts... getting older, brain isn't that good anymore

Re: phpwcm133 paginate question
Posted: Sat 29. Dec 2007, 19:47
by PHPmaster
What you have here is cp= Content Part pagination? this is allready in the frontend.css supplied in the 133 package. What I'm looking for a way to css the article pagination.
Jeroen
Re: phpwcm133 paginate question
Posted: Sat 29. Dec 2007, 20:16
by juergen
Sorry for BS Answer
BUUUT : After switching on my little brain I found this :
Code: Select all
//$template_default['article_paginate_navi'] = '<div>{PREV:«} {NEXT:»} page #/##, result ###-####, {NAVI:1-3, |<span>|</span>}</div>'; //
//$template_default['article_paginate_show'] = 'top bottom rt{RT}'; //where should the navi be shown - possible values: top and/or bottom and/or rt:{RT}
This needs to be unblocked by removing "//" and I made itg like this;
Code: Select all
$template_default['article_paginate_navi'] = '<div class="cpPagination ">{PREV:«} {NEXT:»} page #/##, result ###-####, {NAVI:1-3, |<span>|</span>}</div>'; //
$template_default['article_paginate_show'] = 'top bottom rt{RT}'; //where should the navi be shown - possible values: top and/or bottom and/or rt:{RT}
This is the article pagination .. in ; template/inc_settings/template_default/custom_settings.php
Ok, I need these glasses or the <CTRL>+ Key ... since last months ....
And this custom_settings has to be chosen in Backend ->Admin->youraliastoPaginate
Re: phpwcm133 paginate question
Posted: Sat 29. Dec 2007, 20:23
by flip-flop
Hi, have a look to
cms.rit terhoff.de/index.php?buecher_1999-2001
conf.template_default.inc.php
Code: Select all
$template_default['article_paginate_navi'] = '<div class="article_paginate_navi"><div class="apn_prev">{PREV:« zurück «}</div><div class="apn_mid">Seite # von ##</div><div class="apn_navi">- {NAVI:123, - |<span style="color:#555">|</span>} -</div><div class="apn_next">{NEXT:» nächste »}</div></div><br class="clear" />'; //
$template_default['article_paginate_show'] = 'rt{ART_PAGI_NAV} top bottom'; // top bottom rt{RT} where should the navi be shown - possible values: top and/or bottom and/or rt:{RT}
CSS:
Code: Select all
/* --------- article pagination ----------- */
.article_paginate_navi {
font-family: verdana, arial, sans-serif;
font-size: 11px;
background: #fff url(../../picture/navi/article_navi.jpg) no-repeat left top ;
color: #444;
margin: 21px 0 0 0;
padding: 3px 15px 0 15px;
height: 20px;
}
.article_paginate_navi a {
color: #1E3F82;
font-weight: bold;
text-decoration: none;
}
.article_paginate_navi a:hover {
color: #D74600;
font-weight: bold;
text-decoration: none;
}
.apn_prev {
float: left;
color: #555;
margin: 0;
padding: 0 20px 0 0;
}
.apn_mid {
float: left;
color: #888;
margin: 0;
padding: 0 0px 0 30px;
}
.apn_navi {
float: left;
color: #D74600;
margin: 0;
padding: 0 0 0 60px;
}
.apn_next {
float: right;
color: #555;
margin: 0;
padding: 0 0px 0 20px;
}
[EDIT] Oh sorry Jürgen, I hadn´t seen it - too late. [/EDIT]
Knut