i didn't found nothing in current joomla options that can be setup to allow such scenario:
Labels |
Added:
?
|
Category | ⇒ | Authentication |
This issue should have the "Feature request" category.
Status | New | ⇒ | Discussion |
Category | Authentication | ⇒ | Authentication Feature Request |
@richard67 "Feature request" is set on Issue Tracker.
In addition to @richard67 suggestion you could also do a template override for the login module and add a link to your article explaining that registration is temp unavailable in there.
This is not something suitable for inclusion in the core of Joomla.
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-04-29 04:28:27 |
Closed_By | ⇒ | brianteeman |
@brianteeman well, the override he can't enable or disable from backend, with the redirect he can, that's why I proposed my solution. But with that solution it still requires 2 steps to disable registration: 1. disable registration, and 2. enable my redirect. So I think in fact it could be a useful feature to have a functionality similar to the offline message also for disabled registration, having a redirect from registration link URL to the disabled registration message only in case of disabled registration, being enabled or disabled by enable or disable registration. I just wanted to provide a workaround and think this here is a valid feature request.
@c3ph3us So the workaround is to add the article with the message text, then create a menu item for that, then add that menu item to an existing menu with option"display in menu" = No in the menu item, then add a redirect from registration URL to article URL in the redirect component, and then always when you disable registration you als enable that redirect.
@c3ph3us ah, well, @brianteeman is right, an override is the better solution: you can check with PHP code if registration is enabled or disabled in the overridden PHP script of the login module (or wherever your registration link appears), and depending on the result of that check let the URL of the registration link be the one of the registration page or the registration disabled message article. All done in that PHP code. The you have a 1 click solution: Disable or enable registration, no further action necessary in opposite to my (too complicated) workaround.
That's what I would try, I have not tested that yet. And maybe there is an easier way doing that without the hidden menu.
But I think that should work.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15636.