user1787834
user1787834

Reputation: 3

Showing display time calculated fields in alfresco 4.2c share

For a custom model type I need to show some display time calculated fields on the share interface. Is there any way of showing information in share without linking it to a field in the backing model?

I have tried creating a field with both empty and filled in id in the field-visibility/appearance share configuration but both seem to be ignored on render time. Or is the only way of doing it adding a custom template to another field/form/set just to be able to add the extra field I need.

Upvotes: 0

Views: 237

Answers (2)

Zlatko
Zlatko

Reputation: 19569

You can either add custom template, like Jeff said - but you could go another route. I'm not sure, but from your question you are trying to do some calculation and then show it.

If that's the case, you can do the following:

  1. Extend the metadata component, specifically just make it calculate the extra data and put that into the model, for your custom content type.
  2. Then you also extend the client-side javascript and make it show this extra info by creating markup.

Would that work for you?

Upvotes: 0

Jeff Potts
Jeff Potts

Reputation: 10538

Custom template is the approach I've used in the past.

Upvotes: 1

Related Questions