Loading...
 
Skip to main content

Setting several categories in a module is broken

Status
Closed
Subject
Setting several categories in a module is broken
Version
27.x
28.x
Regression from 26.x to 27.x
Category
  • Bug
Feature
Category
Modules
Resolution status
Rejected
Submitted by
Bernard Sfez / Tiki Specialist
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Description

With a Tiki build-in module like logo.
In Visibility you can set a parameter to filter to have the module used with specific object categories.
For cat22 and cat23 you should add a semi-colon like this : "22:23".
On save the semi-columns are deleted and the filter is not working at all.

Image


See Solution (for the custom modules)

With a custom module you had to add a parameter per category to have the same behavior.

On a custom module in the parameter field if I set several category like this:
nobox=y&category=22&category=23

In the modules once saved it look like this as before.

Image

But only the last category entered will have the effect to display the module.
All previous categories will be omitted unlike before and this is a regression.

Solution

For custom modules you can use category[]=22&category[]=23 as mentioned by Luci in the comment.

You can also use &category1=22&category2=23 as explain here https://doc.tiki.org/Creating-Custom-Modules?latest=1#Edit_Create_Custom_ModuleQuestion



For Tiki module it is imperative to use semi-columns (and not columns)

Workaround
Importance
7
Easy to solve?
5
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8735
Created
Sunday 03 November, 2024 11:56:44 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Monday 04 November, 2024 14:12:03 UTC


Show PHP error messages