>Date: Thu, 17 Jul 2008 12:21:03 +0200 >From: Christian Ridderstr?m <[EMAIL PROTECTED]> > [1] We have one page with news items at http://www.lyx.org/News. > The appearance of that page is as follows: > <Header-text> > <date> > <text-body-of-news> > > <Header> > <date> > <text-body-of-news> > > ... > [2] At the bottom of the home page, http://www.lyx.org/Home, we > display the recent news, i.e. the five latest news items: > * <Header-text> (date) > * <Header-text> (date) > ... > >What recipes/solutions are there for implementing the above in a way >that's more 'pmwikiish'? The only requirements are really that: > >[3] Be able to list the recent news headers on a another page >[4] Preferably store all the news items in a single page > One option would be to use one of the commentbox recipes, that post "stories" to a designated wiki page. This will meet requirements [1] and [4] (numbers added to original post).
The key thing about these recipes, which will let you meet requirements [2] and [3], is that they wrap the components of the posted comments in >>div<< blocks. This makes it a straightforward task to read the news page, explode the contents into a structured array of news items, and display the first 5 as a list of headers and dates. The most flexible solution is probably CommentBoxPlus; and CommentBox would work too but has fewerfeatures. JR -- John Rankin Affinity Limited T 64 4 495 3737 F 64 4 473 7991 021 RANKIN [EMAIL PROTECTED] www.affinity.co.nz _______________________________________________ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users