Fórum

Need to add some validation on page name while adding new page

thumbnail
Surendra Pandey, modificado 10 Anos atrás.

Need to add some validation on page name while adding new page

New Member Postagens: 11 Data de Entrada: 02/07/13 Postagens Recentes
I want to add some validation while adding new page from Add configuration >> Page in liferay in admin mode

There are two way

1. Direct add page from Add configuration mode and added page will appear as a text field to give some name.
2. After adding page when we are going in edit mode and after click on current page then again this page name open in text field

so I want to put the allow only 20 character enter in this text field and allow only character '_' and space
Here I am trying a lot to search is there any js code to override or something else but not able to find the solution.

Please help thanks in advance...

in firebug i find following code but i am not able to find out actual code where i have to changed

<li id="aui_3_4_0_1_588" class="selected lfr-nav-deletable lfr-nav-updateable yui3-dd-drop">
<a id="aui_3_4_0_1_212" href="http://surendrtowrc.nechclst.in:8080/en_GB/web/guest/dashboard" tabindex="0" class="aui-helper-hidden">
<span id="aui_3_4_0_1_3320" style="cursor: text;"> Dashboard</span>
</a>
<div id="aui_3_4_0_1_3368" class="yui3-widget aui-component aui-combobox aui-combobox-focused">
<div id="aui_3_4_0_1_3370" class="aui-combobox-content">
<span id="aui_3_4_0_1_3382" class="aui-field yui3-widget aui-component aui-textfield aui-field-text aui-textfield-focused">
<span id="aui_3_4_0_1_3384" class="aui-field-content aui-field-content aui-textfield-content">
<label class="aui-field-label aui-textfield-label" for="aui_3_4_0_1_3382"></label>
<input id="aui_3_4_0_1_3382" class="aui-field-input aui-field-input-text" type="text" name="aui_3_4_0_1_3382" autocomplete="off" tabindex="">
</span>
</span>
<span id="aui_3_4_0_1_3435" class="yui3-widget aui-component aui-toolbar aui-toolbar-horizontal">
</div>
</div>
</li>
thumbnail
Ravi Kumar Gupta, modificado 10 Anos atrás.

RE: Need to add some validation on page name while adding new page

Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
Try hooks. JSP hooks and service hook can help. See documentation for more help please.