P
P
Pavel Shvedov2016-09-08 16:54:46
PHP
Pavel Shvedov, 2016-09-08 16:54:46

How to display the same resource at multiple urls in MODX?

Lord, welcome.
Such a question: there is a resource in modx, alias it has, for example, myresource . And it is available at:
mysite.ru/myresource
This page displays dynamic data. But there was a need to use the same display logic for other urls. These urls will look like:

http://mysite.ru/myresource/param1
http://mysite.ru/myresource/param2
http://mysite.ru/myresource/param3

And getting this or that param(1, 2, 3) would display different data. Of course, you can use GET type parameters:
http://mysite.ru/myresource?param=1
http://mysite.ru/myresource?param=2
http://mysite.ru/myresource?param=3

But I want beautiful urls, is it possible to somehow tell the resource to open at all urls like
http://mysite.ru/myresource/(.*)?
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolay, 2016-09-08
@iNickolay

CNC in the same ModX not suitable?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question