Page 1 of 1

[Solved] Unable to set a Page Rule

Posted: Sun May 21, 2023 10:40 am
by francisco
Hello!

I'm trying to set a Page Rule for the "articles" page of my site, but when I click "Set" the rule is not applied and the text field returns empty with the message "No rules found". I'm using the following code for the Page Rule, I don't see anything wrong with it that could be causing the problem:

Code: Select all

{{VAR(article_id)@IFSET@THEN@VALUE( prefix="og: http://ogp.me/ns#")@SET(HTML_STUFF)@NULL@ELSE@NULL}}
Image

Any idea how to solve this problem?
Thanks in advance!

Re: Unable to set a Page Rule

Posted: Sun May 21, 2023 10:53 am
by francisco
So I ended up discovering the solution to the problem after seeing other pages that I had defined a Page Rule: the old code syntax for Page Rules is being used, that is ":" instead of "{{", "; " instead of "}}" and "." instead of "@". The code becomes:

Code: Select all

:VAR(article_id).IFSET.THEN.VALUE( prefix="og: http://ogp.me/ns#").SET(HTML_STUFF).NULL.ELSE.NULL;