-
1. Re: How to add new properties to add new site ui in GateIn
hoang_to Aug 29, 2012 10:56 PM (in response to drwho)1 of 1 people found this helpfulSuch mapping does not work if PortalConfig class does not declare 'myfield' field. By the way, you could define addtional property to PortalConfig object via 'properties' field
<properties>
<entry key="myfield">myvalue</entry>
</properties>
-
2. Re: How to add new properties to add new site ui in GateIn
drwho Aug 30, 2012 8:14 AM (in response to hoang_to)Ming Hoang,
I added the field in PortalConfig to match the new property in biding.xml. In addition, I had to modify PortalData, MappedAttribute, Mapper, Element classes just to add additional properties for the site model which I think is excessive and not very programmer friendly. Has this been the experience with you as well?
Getting back to my original assumption, is this the only way we can add additional properties in the Add New Site UI? I have been combing thru the documentation to understand the extension mechanism as this approach required me to modify the exoplatfrom source directly and is not really the approach that I like. Any thoughts?
-
3. Re: How to add new properties to add new site ui in GateIn
drwho Aug 30, 2012 10:20 AM (in response to drwho)Another thought...
Since we want to customize the Add New Site UI maybe we can extend the UI Portal and UI Portal form to add a new tab or navigation to have our company specific configurations.
And instead of saving the properties to a portal under portal-system workspace we can save the configurations as properties in Users workspace. What do you think? Is this a good design. I am interested in hearing from all of you on this.
Thanks, Gordon
-
4. Re: How to add new properties to add new site ui in GateIn
julien_viet Aug 30, 2012 12:43 PM (in response to drwho)1 of 1 people found this helpfulThe most appropriate way would be to add a JCR mixin on mop:site nodes.
Such mixin would define the type you want to "attach" to a site node and contains the properties you want to describe.
Such mixins can be added and removed using the programmatic DataStorage interface but cannot be declared and I think it's not very friendly to use at the moment.
-
5. Re: How to add new properties to add new site ui in GateIn
drwho Aug 30, 2012 2:51 PM (in response to julien_viet)How about extending the UIPortal and UIPortalForm and add a tab to include my company's configurations? In the save action just save all properties under a top node that has the site name/identifier like
Site1
--->CompanyID
--->BusinessID
etc.? What do you think?
Gordon