PAGING OF ARTICLES?

Use GitHub to post feature requests for phpwcms.
Locked
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

PAGING OF ARTICLES?

Post by jsw_nz »

I wanted to ask if others have come across this topic on forums. I think I remember reading about this, but cannot backtrack/remember where I read it. I have a situation on website where notices are going to be posted. It is likely that over a period of time there may be as many as 100 at any given time.

The client has asked if there is any ability to page results. For example each page would show the listing of say 20 notices (articles) with a next button to view notices 21-40...and so on.

Is there anyone can point me in right direction?
Thanks in advance..
:D
1996 328ti
Posts: 317
Joined: Mon 19. Apr 2004, 06:10
Location: Greenville, SC USA
Contact:

Post by 1996 328ti »

Are you looking for the BROWSE tag?
http://www.phpwcms-docu.de/index.php?id=76,40,0,0,1,0
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post by StudioZ »

very cool idea :wink: :wink: :wink:
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Post by jsw_nz »

Hi '96,

Yes something similar to the browse....
As far as I understand the {BROWSE:NEXT:1} tag is for incrementally paging (one article at a time). I am looking for the paging of article listings

.........20 at a time.........

Wee bit different. I do remember reading something about this, but cannot remember where. anyway thanks for the response. :D

Thinking a custom reptag might accomplish this.
1996 328ti
Posts: 317
Joined: Mon 19. Apr 2004, 06:10
Location: Greenville, SC USA
Contact:

Post by 1996 328ti »

How about the teaser tag?
I am using it on my site for a calendar of events.
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post by StudioZ »

1996 328ti wrote:How about the teaser tag?
I am using it on my site for a calendar of events.
Yep. Indeed. Good idea! That could do the job. :)
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
1996 328ti
Posts: 317
Joined: Mon 19. Apr 2004, 06:10
Location: Greenville, SC USA
Contact:

Post by 1996 328ti »

Only problem with the teaser tag is that I can't do one column. Articles do not word wrap. :(
1996 328ti
Posts: 317
Joined: Mon 19. Apr 2004, 06:10
Location: Greenville, SC USA
Contact:

Post by 1996 328ti »

StudioZ wrote: Yep. Indeed. Good idea! That could do the job. :)
I finally was able to help someone. :lol:
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post by StudioZ »

1996 328ti wrote:Only problem with the teaser tag is that I can't do one column. Articles do not word wrap. :(
hmmm... with the teaser tag... "can't do one colum" ?
Sure you can Steven :)
Remember:
{TEASER_EX:category_alias|count[;category_aliasx|countx]:articles_per_page:sortfield|sortdir:show_cat_name:pagelink_text:columns:exclude_articles}
Am I off field...? :roll: :)
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
1996 328ti
Posts: 317
Joined: Mon 19. Apr 2004, 06:10
Location: Greenville, SC USA
Contact:

Post by 1996 328ti »

:oops: :oops: :oops:
I tried it as one column and the text was as if it was set to NOWRAP.
I just did it again to demonstrate but it is working as 1 column.
I'm glad I cam across this thread or I wouldn't havetried it again.
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Post by jsw_nz »

Hey, thanks for the heads up on this....
Never really studied teaser tag...now will....will post my results.

Thanks guys :D :D
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post by StudioZ »

1996 328ti wrote::oops: :oops: :oops:
I tried it as one column and the text was as if it was set to NOWRAP.
I just did it again to demonstrate but it is working as 1 column.
I'm glad I cam across this thread or I wouldn't havetried it again.
I have the feeling that it is something in your list template that needs a tweak... :?

This is what I use and it works both ways: One or Two columns:

Code: Select all

[SPACE]<hr>[/SPACE]
<div>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<!-- <td width="150" valign="top">
[IMAGE]<div><a href="{ARTICLELINK}">{IMAGE}</a></div>[/IMAGE]
[CAPTION]<div align="center">{CAPTION}</div>[/CAPTION]
</td>
<td width="10"><img src="img/leer.gif" border="0" width="10" height="1" alt=""></td> -->
<td width="100%" valign="top">
[TITLE]<span class="articleList_tophead"><a href="{ARTICLELINK}">{TITLE}</a></span>[/TITLE]<br />
[SUB]<span class="articleList_topsubhead"><a href="{ARTICLELINK}">{SUB}</a></span>[/SUB]
[SUMMARY]<span class="articleList_toptext"><p style="margin:0">{SUMMARY}</p>[/SUMMARY]
[MORE]<a href="{ARTICLELINK}">{MORE}</a>[/MORE]</span>
</td>
</tr>
</table>
</div>
Cheers,
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
Locked