- added feature switch "user_registraion_in_index" which controls whether the registration page is in index (true) or own page (false).
- please put your index stuff in guest_index.tpl for now
- maybe later this will be changed to a datbase-driven CMS?
Signed-off-by: Roland Häder <roland@mxchange.org>
BUTTON_USER_CHANGE_PASSWORD=Passwort \u00e4ndern
ADMIN_LINK_SHOW_CONTACT_DATA=Kontaktdaten anzeigen
ERROR_USER_PASSWORD_TO_WEAK=Das eingegebene Passwort ist zu schwach. Bitte geben Sie Bustaben, Zahlen und Sonderzeichen ein, um ein sicheres Passwort zu erstellen.
+ERROR_GUEST_REGISTRATION_IN_INDEX_ENABLED=Fehler: Anmeldeseite ist die Eingangsseite, nicht die Anmeldeseite.
BUTTON_USER_CHANGE_PASSWORD=Change password
ADMIN_LINK_SHOW_CONTACT_DATA=Show contact data
ERROR_USER_PASSWORD_TO_WEAK=Your entered password is to weak. Please enter letters, numbers and special characters to create a secure password.
+ERROR_GUEST_REGISTRATION_IN_INDEX_ENABLED=Error: Registration page is index, not the registration page.
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
+
+ Here goes your content.
+</ui:composition>
<param-name>min_user_password_score</param-name>
<param-value>50</param-value>
</context-param>
+ <context-param>
+ <description>Whether user registration page is in index or own page.</description>
+ <param-name>is_feature_user_registraion_in_index_enabled</param-name>
+ <param-value>false</param-value>
+ </context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<h:outputText value="#{msg.CONTENT_TITLE_USER_REGISTER}" />
</ui:define>
- <ui:define name="content">
+ <ui:define name="content" rendered="#{not featureController.isFeatureEnabled('user_registraion_in_index')}">
<ui:fragment rendered="#{featureController.isFeatureEnabled('user_registration')}">
<ui:fragment rendered="#{featureController.isFeatureEnabled('user_name_required')}">
<div class="para">
</ui:include>
</ui:fragment>
</ui:define>
+
+ <ui:define name="content" rendered="#{featureController.isFeatureEnabled('user_registraion_in_index')}">
+ <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
+ <ui:param name="message" value="#{msg.ERROR_GUEST_REGISTRATION_IN_INDEX_ENABLED}" />
+ <ui:param name="styleClass" value="errors" />
+ </ui:include>
+ </ui:define>
</ui:composition>
</html>
<h:outputText value="#{msg.CONTENT_TITLE_INDEX_WELCOME}" />
</ui:define>
- <ui:define name="content">
- <div class="para">
- <h:outputText value="#{msg.CONTENT_PAGE_INDEX_PARA1}" />
- </div>
-
- <div class="para">
- <h:outputText value="#{msg.CONTENT_PAGE_INDEX_PARA2}" />
- </div>
+ <ui:define name="content" rendered="#{featureController.isFeatureEnabled('user_registraion_in_index')}">
+ <div class="registration_form">
+ <ui:fragment rendered="#{featureController.isFeatureEnabled('user_register_multiple_page')}">
+ <ui:include src="/WEB-INF/templates/guest/user/register/guest_form_register_page1.tpl" />
+ </ui:fragment>
<div class="para">
<h:outputText value="#{msg.CONTENT_PAGE_INDEX_PARA3}" />
</div>
</ui:define>
+
+ <ui:define name="content" rendered="#{not featureController.isFeatureEnabled('user_registraion_in_index')}">
+ <ui:include src="/WEB-INF/templates/guest/guest_index.tpl" />
+ </ui:define>
</ui:composition>
</html>