phpwcm133 paginate question

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
PHPmaster
Posts: 40
Joined: Sun 19. Mar 2006, 15:39

phpwcm133 paginate question

Post 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 :wink:
PHPmaster
Posts: 40
Joined: Sun 19. Mar 2006, 15:39

Re: phpwcm133 paginate question

Post 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:&laquo;previous}| page # |{NEXT:next&raquo;}</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 :mrgreen:
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: phpwcm133 paginate question

Post 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 :mrgreen:
PHPmaster
Posts: 40
Joined: Sun 19. Mar 2006, 15:39

Re: phpwcm133 paginate question

Post 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
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: phpwcm133 paginate question

Post 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:&laquo;} {NEXT:&raquo;} 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:&laquo;} {NEXT:&raquo;} 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 .... :arrow: :|

And this custom_settings has to be chosen in Backend ->Admin->youraliastoPaginate
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: phpwcm133 paginate question

Post 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:&laquo; zur&uuml;ck &laquo;}</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:&raquo; n&auml;chste &raquo;}</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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Post Reply