Hello,
Our company wants to extend Share Collaboration Sites by adding an aspect to the site which contains custom properties. I've done so by defining an aspect called "project" in siteModel.xml. I have successfully modified sites.post.json.js so that when the user creates a site via the default dashlet, if they choose the project preset from the dropdown, the project aspect is added to the site immediately after creation. This aspect contains various fields which I intend to pull into a modified site-profile dashlet.
The problem is that when I get the site using the siteservice.getSite(shortName), I am unable to view/update the custom properties. Looking at the node browser I can see that the aspect has been added to the site, but I cannot see the custom properties. I know that they haven't been set, so perhaps this is part of the problem.
Sites appear to be different from other nodes. For instance you modify a site directly by changing site.visibility instead of site.properties["st:visibility"] or something along those lines. So far I've been referencing custom properties by assigning values to site.node.properties["st:myProjectDept"] and site.getNode().properties["projectStatus"], etc. I see no errors, but then nothing is inserted and no properties become visible - even after calling site.node.save() or site.getNode().save().
Please help! Thanks in advance.