@@ -136,20 +136,19 @@ Modifiers can be set up to modify the output of the feed.
136
136
137
137
Two types of modifiers are available:
138
138
139
- * EXCLUDE_IF_TITLE_NOT_CONTAINS: Removes entries from the feed if the title not contain the trigger word .
140
- * REPLACE_TITLE_IF_CONTAINS: Changes the title if it contains the trigger word .
139
+ * EXCLUDE_IF_TITLE_NOT_CONTAINS: Removes entries from the feed if the title does not contain the pattern .
140
+ * REPLACE_TITLE_IF_CONTAINS: Changes the title if it contains the pattern .
141
141
142
142
Parameters:
143
143
144
144
* type: EXCLUDE_IF_TITLE_NOT_CONTAINS or REPLACE_TITLE_IF_CONTAINS
145
145
* id: Unique identifier for the modifier.
146
146
* title: Display name when showing the modifier in the admin.
147
- * description: Help text for the modifier.
147
+ * description: Description of the modifier.
148
148
* activateInFeed: Should this filter be optional? If false the rule will always apply.
149
- * trigger: The string that should trigger the modifier.
150
- * replacement: The string to replace the title with.
151
149
* removeTrigger: Should the trigger word be filtered from the title?
152
- * caseSensitive: Should the trigger word be case-sensitive?
150
+ * pattern: The PCRE regular expression. See < https://www.php.net/manual/en/reference.pcre.pattern.syntax.php > .
151
+ * replacement: The string to replace the title with. See < https://www.php.net/manual/en/function.preg-replace.php > .
153
152
154
153
Examples of modifiers:
155
154
@@ -161,29 +160,26 @@ Examples of modifiers:
161
160
"title" : " Vis kun begivenheder med (liste) i titlen." ,
162
161
"description" : " Denne mulighed fjerner begivenheder, der IKKE har (liste) i titlen. Den fjerner også (liste) fra titlen." ,
163
162
"activateInFeed" : true ,
164
- "trigger" : " (liste)" ,
165
- "removeTrigger" : true ,
166
- "caseSensitive" : false
163
+ "pattern" : " \/\\ (liste\\ )\/ i" ,
164
+ "removeTrigger" : true
167
165
},
168
166
{
169
167
"type" : " REPLACE_TITLE_IF_CONTAINS" ,
170
- "id" : " replaceIfContainsOptaget" ,
171
168
"activateInFeed" : false ,
172
- "trigger" : " (optaget)" ,
169
+ "id" : " replaceIfContainsOptaget" ,
170
+ "pattern" : " \/\\ (optaget\\ )\/ i" ,
173
171
"replacement" : " Optaget" ,
174
- "removeTrigger" : true ,
175
- "caseSensitive" : false
172
+ "removeTrigger" : true
176
173
},
177
174
{
178
175
"type" : " REPLACE_TITLE_IF_CONTAINS" ,
179
- "id" : " onlyShowAsOptaget" ,
180
176
"activateInFeed" : true ,
177
+ "id" : " onlyShowAsOptaget" ,
181
178
"title" : " Overskriv alle titler med Optaget" ,
182
179
"description" : " Denne mulighed viser alle titler som Optaget." ,
183
- "trigger " : " " ,
180
+ "pattern " : " \/\/ " ,
184
181
"replacement" : " Optaget" ,
185
- "removeTrigger" : false ,
186
- "caseSensitive" : false
182
+ "removeTrigger" : false
187
183
}
188
184
]
189
185
```
0 commit comments