← Alle Apps
Set Max Char to Content logo

Set Max Char to Content

von Nilang I Patel

Data Modeling, Process & Business LogicLiferay Self-HostedLiferay PaaS

Beschreibung

In most of the cases, web contents are created with the help of structure and template. While creating web content with structure and template, we can't restrict user to enter data with specific length. In other word, out of the box, there is no such facility to restrict user to enter predefined number of characters for structure element. This app facilitate this feature.

This app is comprises of one hook. After deploying this app, if we want to restrict user to add specific length of data then we need to set number of allowed characters in meta data (called 'noOfCharacterAllowed') of structur's element.

For example, let say there is one element in structure called 'component' and we want to set number of allowed characters to 100, then defined it in meta data as below

<dynamic-element name="component" type="text" index-type="" repeatable="false">
<meta-data>
<entry name="noOfCharacterAllowed"><![CDATA[100]]></entry>
</meta-data>
</dynamic-element>

After defining number of allowed character in meta data, label like "Maximum 100 Characters are allowed" will be visible after each such element on web content creation screen. When user tries to save / publish web content, JS error message will be displayed for each such element where user had entered more than allowed characters.

This way we can restrict number of allowed character dynamically and it is configurable through meta data.
Currently this feature is available to following types of elements

1. Text
2. Text-Box
3. Tex-Area(HTML)

For element of type Text-Area(HTML), the data will be stored in form of HTML. The No of character will be counted after filtering all html tags by this element, so it will count no of character which is actually entered by user.

Quelle: Liferays offizieller Marketplace

Weitere in Data Modeling, Process & Business Logic

Activiti Workflow Engine

von EmDev Limited

This plugin allows users and admins to use Activiti BPMN workflow engine for publication process (for example instead of default Kaleo). It almost fully supports BPMN 2.0 specification and may fully r

Address Validator

von Rivet Logic Corporation

The Address validator plugin enables the validation of addresses entered by the user. It uses some third party services or APIs for that purpose. The initial implementation uses Google Geocoding API,

Adobe Connect

von E2 Software India Pvt. Ltd

About Adobe Connect : Adobe Connect gives you complete control over the look and functionality of your virtual rooms. Create experiences that incorporate branding and content. Position functional pods

AdvicedAssets Portlet

von Tune IT

Portlet for Liferay that allows to show list of tematically-related content near every post in blog. Content list can include other blog posts, journal content articles and document library resources.

Weitere von Nilang I Patel

Show Pending Web Content

von Nilang I Patel

When any liferay web content is in workflow, no user can see the changes (from Web content Display Portlet) happening during workflow execution. For example, let say 4 levels of workflow has been conf