Is there a way to know if the current url being called is that of the Pages Module?

For example I'd like to do something like this:

{if pages_module =="TRUE"}
     This is a page generated from the pages module!
     This is not a page

I looked for an add-on though, maybe I'm missing it or maybe I'm missing a simple tag in the docs?


You should be able to do:

    {if page_uri} {!-- or {if pages_url} --}
         This is a page in the pages module
         This is not

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.