rules
Jahia 8
Jahia 7.3
Rules for a specific site
Question
How to to set rules for jnt:page
node inside a specific site.
Answer
A way to define a specific site can be to check in the path the name of the page:
// Select page with a specific sitename
rule "site name selection"
when
A new node is created
- the node has the type jnt:page
- the path has "ACMESPACE"
then
Log "Name of page created in ACMESPACE: " + node.getName()
end
The condition created for the path has
(This must be inside the rules.dsl):
[condition][]- the path has {value}=path contains {value}