Sunday, 24 August 2014
Liferay App : Set Max Char Content
Nilang Patel
Sunday, August 24, 2014
Liferay App
,
Liferay Development
,
Max chars allowed
,
No of Allowed Chars
,
Structure Element
,
Web Content
2 comments
:
In most of the cases, web contents are created with the help of structure and template.
To know more about Web contents in Liferay, please refer following blogs.
I have created new Liferay App which provides this facility. This free app is available on Liferay Marketplace (App name is Set Max Char to Content)
Liferay App :- Set Max Content
This app is comprises of one liferay 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
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 as per below screenshot.
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 as below screenshot
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.
So try this app and give your vote and (positive) feedback to me. Add any comments / questions / queries in Liferay Marketplace.(You need to create Liferay Marketplace account before putting comment).
I would recommend looking at index page 'A Complete Liferay Guide' to browse all topics about liferay.
To know more about Web contents in Liferay, please refer following blogs.
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.
I have created new Liferay App which provides this facility. This free app is available on Liferay Marketplace (App name is Set Max Char to Content)
Liferay App :- Set Max Content
This app is comprises of one liferay 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 as per below screenshot.
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 as below screenshot
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.
So try this app and give your vote and (positive) feedback to me. Add any comments / questions / queries in Liferay Marketplace.(You need to create Liferay Marketplace account before putting comment).
I would recommend looking at index page 'A Complete Liferay Guide' to browse all topics about liferay.
Saturday, 9 August 2014
Liferay App : Show Pending Content
Nilang Patel
Saturday, August 09, 2014
Liferay App
,
Liferay Development
,
Pending Content
,
Web Content
,
Workflow
No comments
:
Liferay provides workflow capabilities by integrating KALEO workflow engine. To know more about the workflow in liferay, refere this liferay wiki page
In Liferay, we can apply workflow to various entities like web content,blog, forum etc.
When any liferay web content is in workflow, no user can see the changes (from Web content Display Portlet) happening during workflow execution as per below screenshot.
For example, let say 4 levels of workflow has been configured for webcontent in some site. When any user creates the web content, it will start workflow and reach to each level. At each level, a user who is part of that level, may update web content and send it further. No user can see these interim changes happening during workflow from Web Content Display Portlet.
Many time Business users who owns the content want to see on going changes done through workflow. Out of the box, Liferay will not provide this facility.
I have created free Lifera app which will help to avoid this limitation. This app is available in Liferay market place. Browse below link to explore it.
Liferay App :- Show Pending Web Content
This app is comprises of EXT and one hook. This app provides dynamic mechanism which allow users to see on going changes during workflow execution by introducing special role. This role is declared in portal-ext.properties(included in EXT plugin) file as below.
role.to.see.pending.content=SHOW_PENDING_CONTENT_ROLE
So after deploying this app, you need to just create one regular role called 'SHOW_PENDING_CONTENT_ROLE' and assign it to user who wants to see on going changes as per below screenshot.
This way they can see on going changes without explicitly going to Control Panel.
So try this app and give (positive) feedback and vote it.
I would recommend looking at index page 'A Complete Liferay Guide' to browse all topics about liferay.
In Liferay, we can apply workflow to various entities like web content,blog, forum etc.
When any liferay web content is in workflow, no user can see the changes (from Web content Display Portlet) happening during workflow execution as per below screenshot.
For example, let say 4 levels of workflow has been configured for webcontent in some site. When any user creates the web content, it will start workflow and reach to each level. At each level, a user who is part of that level, may update web content and send it further. No user can see these interim changes happening during workflow from Web Content Display Portlet.
Many time Business users who owns the content want to see on going changes done through workflow. Out of the box, Liferay will not provide this facility.
I have created free Lifera app which will help to avoid this limitation. This app is available in Liferay market place. Browse below link to explore it.
Liferay App :- Show Pending Web Content
This app is comprises of EXT and one hook. This app provides dynamic mechanism which allow users to see on going changes during workflow execution by introducing special role. This role is declared in portal-ext.properties(included in EXT plugin) file as below.
role.to.see.pending.content=SHOW_PENDING_CONTENT_ROLE
So after deploying this app, you need to just create one regular role called 'SHOW_PENDING_CONTENT_ROLE' and assign it to user who wants to see on going changes as per below screenshot.
This way they can see on going changes without explicitly going to Control Panel.
So try this app and give (positive) feedback and vote it.
I would recommend looking at index page 'A Complete Liferay Guide' to browse all topics about liferay.
Subscribe to:
Posts
(
Atom
)






