Don't understand how to link a template to a resource

Never used modx, but red short description.

Previous developer did something this link template-resouse, they didn’t work together.

he just upload all code including content to template. And content from “resources” don’t work, there default demo.

Now, i have task a create some additional pages with diffilcult design, but can’t. Look, I create a new template:

And try to add content:

But they didn’t link. When I try to view the page, I get 404 error.

Is it possible to fix?

What you did looks ok!

When do you get the 404 error? When you click the “View” (“Посмотреть”) button in the upper right corner of the manager?

Do you use friendly URLs? Do the URLs of your site have the format or

Can you view the page when you just add the ID parameter to your domain in the browser? → For example

1 Like

Hi. Thanks for answer.
Yes, when I click “view”.
Using url “test”, but domain/test, or domain/test.html don’t work.
Your option: Тестируем is worked, it’s good, but I want more readble url.

  • Make sure that the system setting friendly_urls is set to Yes (and the setting request_param_alias is equal to q).

  • Test if you can successfully call your page by using the request parameter q

  • Locate the file .htaccess in the web root directory. Make sure that the following lines exists in the file and are uncommented. (These lines convert an URL like into

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
1 Like

Thanks for help. Previous developer braking too long time, I just yesterday get full access to ftp, and i’ve seen .htaccess not exist :))
loaded default file, and all working:)