Pages
Description
The Pages module is able to list pages within a site or within a category.
Attributes
| attribute | required | allowed values | default | description |
|---|---|---|---|---|
| category | no | name of an existing category | none | limits the listing to the specified category |
| details | no | "true" | none | print extra information about pages |
| preview | no | "true" | none | prints a short preview of the page |
| order | no | dateCreatedDesc dateCreatedAsc dateEditedDesc dateEditedAsc titleDesc titleAsc |
titleAsc | selects ordering of the pages |
| limit | no | any positive integer | none | how many pages to return; if you omit this all pages will be listed |
Examples
Print only pages from the _default category with details:
[[module Pages category="_default" details="true"]]
Print all pages with details and preview:
[[module Pages details="true" preview="true"]]
10 most recently edited pages
[[module Pages order="dateEditedDesc" limit="10"]]
10 most recently created pages
[[module Pages order="dateCreatedDesc" limit="10"]]
Comments
how to make it to list the pages as a bulleted list?
That would be through CSS, I believe.
I'll get back to you on that.
EDIT: Sorry, it would seem that adding bullets to this doesn't work, because it's done through divisions instead of a list.
/Socks
> how to make it to list the pages as a bulleted list?
Use module ListPages instead. E. g.
or, for a nested list (note the comment that is necessary due to parser quirk), use