Foros de discusión

LFR6.2 how to add custom fields to structure

Gangi Nandyala, modificado hace 9 años.

LFR6.2 how to add custom fields to structure

New Member Mensajes: 3 Fecha de incorporación: 17/10/12 Mensajes recientes
Does any one have complete list of steps/process to define new custom fields? I tried to add custom fields using dynamicdatamapping/main.js and custom_fields.jspf. But it didn't work.

I need to develop a realtor field ( similar to related assets), using that I can associate other web content. Is any one did this kind of customization. Please throw some thoughts.
Gangi Nandyala, modificado hace 9 años.

RE: LFR6.2 how to add custom fields to structure

New Member Mensajes: 3 Fecha de incorporación: 17/10/12 Mensajes recientes
i tried adding field using Forum but its not working i am getting below JavaScript error.
Error: TypeError: n.getFieldClass(...) is not a constructor

any idea?
thumbnail
Christoph Rabel, modificado hace 9 años.

RE: LFR6.2 how to add custom fields to structure

Liferay Legend Mensajes: 1554 Fecha de incorporación: 24/09/09 Mensajes recientes
Hi,

while it is possible to resolve the javascript errors, but you will get stuck afterwards. In short: Without an ext plugin it is not possible to add this functionality.
I made a feature request a while ago related to the issue.
https://issues.liferay.com/browse/LPS-41908

Even if you create a custom form field, you won't be able to store your new field type in the database.