Jump to content

Examples/Parameter: hitemattr (example 2)

From DynamicPageList3 Manual
Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

Example

[edit source]

This selects pages in category Countries in Africa OR Countries in Europe, with an ordermethod of category,pagetouched. The headingmode set to unordered causes category headings to be bulleted and mode set to ordered makes the pages under them be numbered. The hlistattr parameter applies CSS to the heading content wrapping it in orange, where the hitemattr parameter sets CSS to wrap list items in red/pink. Results are limited to a count of 3.

Code
{{#dpl:
|category    = Countries in Africa¦Countries in Europe
|ordermethod = category,pagetouched
|headingmode = unordered
|mode        = ordered
|hlistattr   = id="dl-example" class="dpl-orange-background"
|hitemattr   = id="list-item-heading" class="list-item-heading"
|count       = 3
}}
Result
Cookies help us deliver our services. By using our services, you agree to our use of cookies.