I will answer my question because I’m sure that people will need it in the future, and my solution includes several rules of additional code, and then you can install each article, etc. .... Registered, and you will see a field login when the user is not logged in.
In your index.php templates, put this at the top, it gets the level of access to your article.
$article =& JTable::getInstance("content");
$article->load(JRequest::getVar('id'));
$cAccLevel = $article->get("access");
Then add the module position above the component and show it only when your required access level> 1
<?php if($cAccLevel > 1): ?>
<jdoc:include type="modules" name="LOGIN_MODULE_POSITION" />
<?php endif; ?>
Then add the registration module in the module manager to LOGIN_MODULE_POSITION.
Voila ... there is no need for routing, etc .... everything works out of the box, I chose the style for the exit window and action field as follows:
.logout-button,
.actions{
display:none;
}
Good luck