Jump to content

Topic on Extension talk:DynamicPageList/Archive 03

OR-operator for category

8
SimonWpt (talkcontribs)

I can't figure out, how to use an OR Operator for the categories:

<DynamicPageList>
category = Category1
category = Category2
</DynamicPageList>

Output: DLP shows only items, which are in both categories. Category1 AND Category2

I wish to combine the out in this manner: Category1 OR Category2. Is there an OR-Operator?

He7d3r (talkcontribs)

I don't think that is possible with this extension.

Bawolff (talkcontribs)

Helder is correct, such a feature is not implemented in the Wikimedia version of this extension.

SimonWpt (talkcontribs)

Thank you for your answers. It is a pity. I use DLP for the frontpage of an business-wiki and want to show the last 5 entries of 3 categories.

Bawolff (talkcontribs)

Well if you're not overly concerned about order you could do something like:

<DynamicPageList>
category = Category1
</DynamicPageList>
<DynamicPageList>
category = Category2
</DynamicPageList>

and it will look like one list (you can even use limit and offset parameters to make the lists interleved). Very far from an ideal solution though.

He7d3r (talkcontribs)

And if you are interested in alphabetical order, you could use JavaScript to sort the resulting list.

SimonWpt (talkcontribs)

That's the way, I use it now:)

He7d3r (talkcontribs)
Reply to "OR-operator for category"