[Solved] Unable to set a Page Rule

Handle problems or report system bug
Post Reply
User avatar
francisco
Posts: 58
Joined: Tue Mar 07, 2023 1:48 pm
Location: Brazil
Contact:

[Solved] Unable to set a Page Rule

Post 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!
Last edited by francisco on Tue Feb 20, 2024 1:10 am, edited 1 time in total.
😴
User avatar
francisco
Posts: 58
Joined: Tue Mar 07, 2023 1:48 pm
Location: Brazil
Contact:

Re: Unable to set a Page Rule

Post 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;
😴
Post Reply