B
B
Big_person2016-01-20 12:28:16
MODX
Big_person, 2016-01-20 12:28:16

How to block access to a resource by URL in Modx Revo?

On the site on the main page, through PDOResurses, the contents of nested resources are displayed. The site also has a CNC set up. The problem is that resources are available separately also by URL.
How to close access so that a 404 error is generated when trying to open a page by URL, that is, so that the resource is available only through PDOResurses?
So far, the only option that comes to mind is to unpublish all resources and use the &showUnpublished=`0` parameter - Show unpublished resources, but in my opinion this is a crutch, because. I would like to keep the functionality of this option.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2016-01-22
@igamov

Maybe in the tpl (template) PDO remove the link tag so that it does not follow the link. Or perhaps I didn't understand the question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question