掲示板

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

thumbnail
10年前 に Surendra Pandey によって更新されました。

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

New Member 投稿: 11 参加年月日: 13/07/02 最新の投稿
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
10年前 に Ravi Kumar Gupta によって更新されました。

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

Liferay Legend 投稿: 1302 参加年月日: 09/06/24 最新の投稿
Try hooks. JSP hooks and service hook can help. See documentation for more help please.