Details
-
Type:
Story
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2
-
Fix Version/s: 6.2.0 CE M5
-
Component/s: Tools, Tools > Portal Taglibs
-
Labels:None
-
Technical Documentation Required:Needs Documentation
-
Epic/Theme:
-
Similar Issues:
Description
The liferay-ui:custom-attribute* tags are not really friendly for extension. They always go all-or-nothing: If you create extensions using custom attributes, you cannot use the tags "for all other fields, that you don't handle manually".
The change is to add an attribute "ignore" to the tags - all attributes named as "ignore" will not be displayed, e.g. for users_admin/user/custom_fields.jsp, this is what it looks like:
<liferay-ui:custom-attribute-list className="com.liferay.portal.model.User" classPK="<%= (selUser != null) ? selUser.getUserId() : 0 %>" editable="<%= true %>" label="<%= true %>" ignore="some-custom-attribute,another-custom-attribute" />
It will output all custom attributes apart from the ignored ones. Those can be handled separately, e.g. on a separate custom page while the others can still stay on the "custom fields" page.
(identical change proposed for liferay-ui:custom-attributes-available)

As we separately talked about... Where do I mark this as a quick win?
Sorry, it might have some work that's required to pass it through the bchan filter, also, a testsuite for util-taglib might need to be introduced: So far it isn't, and the accompanying test is not executed (I executed it manually)
Overall the code is meant to be the least intrusive to the existing codebase.