Use own Categories as placement does not work Followup
It's not possible to use own category names as "placement" because in the database the relation is saved with "tx_macinabanners_categories:CAT_ID" in the placement field of the banner. And this is the field the select statement does check.
What you can actually do is a "placement" value like
plugin.tx_macinabanners_pi1.placement = tx_macinabanners_categories:1
But this will match all categories starting with 1. So you will also get banners from category 10, 11, 12 ....
#1 Updated by Timo Feuerstein almost 7 years ago
Attached a patch which changes relation in placement from "tx_macinabanners_categories:CAT_ID" to own name of categorie.
Works with fe-plugin, typoscript and typoscript included via fe-plugin. No checking whether placement name is unique.
Careful you have to adjust your old data records when using this patch.
#2 Updated by Arne-Kolja Bachstein about 6 years ago
The patch works for me. Thanks :-)
Additional note: Custom placements worked via TS before, but did not when placing a content element. This patch should be included in an immediate next update, though adjusting the old records may cause headaches for users who don't notice.