I am currently encountering an issue with inserting the member ID into another data collection once the user signed up through a reference field. Specifically, I have attempted to use the afterGet hook based on the PrivateMembersData collection, but it appears to be ineffective.
Upon further experimentation, I added the same code to an onClick button and found that it worked successfully. However, I am still unable to determine the source of the error in the initial implementation.
I would greatly appreciate any assistance you can provide in identifying where the mistake may lie.
Also, if every unique system member must have no more than one record in the AvailableForWork collection, I suggest to use the system member._id as the _id in the second collection as well (this way you can guaranty the system will not let you insert a certain user twice by accident) . Something like:
Apologies for any confusion caused. To enable customization of member areas, I have created separate public and private member collections. However, these collections are still linked to the default member collection “PrivateMembersData” through a reference field.
Currently, the issue I am facing pertains to changing the user profile slug across all Wix Apps. Specifically, the profile button on the Wix Forum App is linked to the previous profile page URL (/profile/{user name}/profile), which cannot be edited through the editor interface.
Thus, I am seeking guidance on how to modify the member profile slug across all Wix Apps.