Forums de discussion

Display Document Types and metadata in custom jsp in liferay 7

Anji E, modifié il y a 7 années.

Display Document Types and metadata in custom jsp in liferay 7

Junior Member Publications: 49 Date d'inscription: 18/11/14 Publications récentes
Hi All ,

I have a requirement where in i have to display Document types and metadata elements in custom jsp .
in liferay 7 .

Its quite easy in liferay 6.2 . But finding difficulties with display context in liferay 7 .

Do i need to write my own display context to fetch "ddmFormValues " or i can achieve by using display context provided in module "document-library-web" .

ddmFormValues = dlEditFileEntryDisplayContext.getDDMFormValues(fileEntryMetadata.getDDMStorageId());

<liferay-ddm:html
classNameId="<%= PortalUtil.getClassNameId(DDMStructure.class) %>"
classPK="<%= ddmStructure.getPrimaryKey() %>"
ddmFormValues="<%= ddmFormValues %>"
fieldsNamespace="<%= String.valueOf(ddmStructure.getPrimaryKey()) %>"
requestedLocale="<%= locale2 %>"
/>
srini vasulu, modifié il y a 6 années.

RE: Display Document Types and metadata in custom jsp in liferay 7

Regular Member Publications: 139 Date d'inscription: 22/02/11 Publications récentes
Anji E:
Hi All ,

I have a requirement where in i have to display Document types and metadata elements in custom jsp .
in liferay 7 .

Its quite easy in liferay 6.2 . But finding difficulties with display context in liferay 7 .

Do i need to write my own display context to fetch "ddmFormValues " or i can achieve by using display context provided in module "document-library-web" .

ddmFormValues = dlEditFileEntryDisplayContext.getDDMFormValues(fileEntryMetadata.getDDMStorageId());

<liferay-ddm:html
classNameId="<%= PortalUtil.getClassNameId(DDMStructure.class) %>"
classPK="<%= ddmStructure.getPrimaryKey() %>"
ddmFormValues="<%= ddmFormValues %>"
fieldsNamespace="<%= String.valueOf(ddmStructure.getPrimaryKey()) %>"
requestedLocale="<%= locale2 %>"
/>



Hi
i am also need to implement same functionality Please let me know how you have resolved this issue.