[pmwiki-users] Is there any way to make a Pmwiki frontpage to look like this?

Tamara Temple tamouse.lists at gmail.com
Wed Jul 6 12:23:28 CDT 2011

On Jul 6, 2011, at 12:31 AM, adm wrote:

> I want front page of the wiki to look like this:
> http://www.khanacademy.org/
> All the articles and categories on one page. Is this possible? And  
> how to implement it?

Fascinating idea. Here's how I would approach it:

Organize topics as Groups rather than Categories:


and so on.

Then you can use a page list format (http://www.pmwiki.org/wiki/PmWiki/PageListTemplates 
) to produce the required markup. In addition, to get the 3 columns  
across, you can include the recipe MarkupExprPlus (http://www.pmwiki.org/wiki/Cookbook/MarkupExprPlus 
) which adds the ability to some basic math:

In Site.LocalTemplates, add something like this:

(:if false:)
(:template first {=$Group}:)
!![[{=$Group}/]] {(setq grouppagecount 0)}
(:table width=100%:)
(:cellnr width=30%:)
(:template each:)
[[{=$Group}/{=$Name}]] {(setq grouppagecount (add {$grouppagecount} 1))}
(:if2 equal {(mod {$grouppagecount} 3)} 0 :)
(:cellnr width=30%:)
(:cell width=30%:)
(:template last {=$Group}:)

Then, in your front page, you can put the following markup:

(:pagelist fmt=#threecol list=normal:)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20110706/2d2d8f33/attachment.html>

More information about the pmwiki-users mailing list