Structure Field Max repeatable component
Mitul Khamar
Data Modeling & Business Logic
Description
Problem
Creating a structure with “repeatable: true”, it enables content writer to add numerous content box as per requirement. But what if you want to restrict the number of content box & restrict the content writer with a specific number of content box.
Solution
Max Repeatable component provides the solution. With this component added you get the new setting option “max repeatable” while creating structure and you can set the appropriate value for that.
How to Configure:
- Add following property to portal-ext.properties file and restart server
xml.validation.enabled=false
- Paste the War file in deploy folder on Tomcat Server
- Set the value of “max repeatable” attribute on the repeatable field of structure element.
So now while creating content if the content writer tries to add more components or content box component then specified value it will restrict the user and display an appropriate notification as shown in screen shot.
Creating a structure with “repeatable: true”, it enables content writer to add numerous content box as per requirement. But what if you want to restrict the number of content box & restrict the content writer with a specific number of content box.
Solution
Max Repeatable component provides the solution. With this component added you get the new setting option “max repeatable” while creating structure and you can set the appropriate value for that.
How to Configure:
- Add following property to portal-ext.properties file and restart server
xml.validation.enabled=false
- Paste the War file in deploy folder on Tomcat Server
- Set the value of “max repeatable” attribute on the repeatable field of structure element.
So now while creating content if the content writer tries to add more components or content box component then specified value it will restrict the user and display an appropriate notification as shown in screen shot.
Liferay is trademark of Liferay, Inc., Liferay International Limited and/or Liferay Affiliate, registered in the United States and/or other countries.
Release Summary and Release Notes
Version | Change Log | Supported Framework Versions | Date Added |
---|---|---|---|
1.0 |
Liferay Portal 6.2 CE GA6+
Liferay Portal 6.2 EE GA1+
|
2017-03-16 |
DEVELOPER
Mitul Khamar
Published Date
Version
1.0
Supported Versions
6.2
Edition
EE, CE
Price
Free
Help & Support
Terms & Conditions
SHARE LINK
Installation Instructions
This is a Legacy App that is no longer available in the new App Marketplace. You are able to acquire it from your installed DXP or CE instance and install it by following the instructions below.
Acquiring this App through the legacy Liferay Portal Store
- Review app documentation for any specific installation instructions.
- Login to your Liferay Portal instance with administrative permissions.
- Navigate to the Control Panel, Marketplace (or Apps for 7.3 and prior), then Store.
- If needed, login to your Liferay.com account by choosing Sign In.
- Search for the app name in the Search dialog.
- Once the app is found, click on the app in the search results.
- On the app details page, choose to acquire the app by selecting the Free, Buy, or Trial button.
- Follow the instructions on the screen to complete the acquisition.
Installing this App through legacy Liferay Portal Purchased Apps
- After acquiring the app, login to your Liferay Portal instance with administrative permissions.
- Navigate to the Control Panel, Marketplace (or Apps for 7.3 and prior), then Purchased.
- If needed, login to your Liferay.com account by choosing Sign In.
- Click the Install button to install your app on your Liferay Portal instance.
See the legacy App Marketplace help documentation for more information.