Page 1 of 1

test isStatic

Posted: Mon May 05, 2025 2:47 am
by arfa
Hi all,

I have been using: if ($page->isStatic()) and wonder if there is a similar test for sticky pages? I tried
if ($page->isSticky)) but it failed.
Searching the forum for isStatic has results but nothing for isSticky

I checked documentation but missed seeing anything.

How to test if a page is sticky?

thx - kusalo

Re: test isStatic

Posted: Mon May 05, 2025 5:51 am
by indocreativemedia
Hi,

This should work:

Code: Select all

if ($page->sticky())
Please give it a try.

Re: test isStatic

Posted: Mon May 05, 2025 11:10 pm
by arfa
Yo the man! Appreciate the quick reply - and, of course... a solution.

Thank you.
Kusalo