Message Boards

Setting default value for priority field

ghadeer raad, modified 3 Years ago.

Setting default value for priority field

Junior Member Posts: 51 Join Date: 6/2/20 Recent Posts
hi for all
i use liferay 7.2 ga2
i need to change the default value of priority field to be character value instead of number
for example put middel instead of 1
thumbnail
Olaf Kock, modified 3 Years ago.

RE: Setting default value for priority field

Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Posts
ghadeer raad:

hi for all
i use liferay 7.2 ga2
i need to change the default value of priority field to be character value instead of number
for example put middel instead of 1
The priority field (of web content) is numerical, and if you change it, something might break. If you need something separate from it, create a custom field. Or find where you want to display it and display something based on the number. But the database has a numerical field.
ghadeer raad, modified 3 Years ago.

RE: Setting default value for priority field

Junior Member Posts: 51 Join Date: 6/2/20 Recent Posts
thanks for answer me
so can i change the name of priority field to another name ? 
thumbnail
Olaf Kock, modified 3 Years ago.

RE: Setting default value for priority field

Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Posts
ghadeer raad:

so can i change the name of priority field to another name ? 

1. In the database: No! You would create an unmaintainable system that breaks with the next minor upgrade
2. In the UI translation: Yes: You can override any translation that appears on the user interface and name it as you like. There are blade-samples for that