toolbox org settings
module_toolbox_org_settings
This module can be activated by applying the tag module_toolbox_org_settings to a published basic subpage.
This is to only be used on the Members Toolbox custom subpage_layout landing page.
This tag will render an "Organisation Settings" module for each organisation that the user has a corresponding role tag for.
You can find the current buttons set up in the control panel here:
#Data mappings
For each nested basic page - we create a button with the following:
- Button Text = basic page headline
- Button URL = basic page content
Token Parameter Links
NOTE: If a button is using one of these it is best to not modify without assistance from For Purpose.
How these work is that in code we replace the token with the intended value. So we have `` configured to inject the current organisation ID - as this module gets rendered for every organisation that a given user has a org tag for.
Example 1: /create-event?org_id=
- /create-event - the URL for the create event form
- ?org_id= - the querystring parameter - as this form has been built to use passed-in org id values
- **** - the token which will be automatically replaced with the given organisation profile ID
Example 2: /?admin=renew-membership
- / - this will send the user to the given organisation profile - as profiles use the profile ID as URL
- ?admin= - the querystring parameter - this is used to take in passed-in values for "admin" which are wired to different forms
- renew-membership - the admin value which will then load the membership renewal form for the given organisation profile.
Visibility Restriction by role
By default - all individuals will be able to see all buttons here. However you can apply one of the following tags to restrict visibility.
role:admin- button will only be visible if user has atleast oneadmintag.role:editor- button will only be visible if user has atleast oneeditortag.role:connected- button will only be visible if user has atleast oneconnectedtag.
If a subpage has two tags - for example role:admin and role:editor - the user will only need to have one of these tags to see the button.
Visibility Restriction by membership type
By default - all individuals will be able to see all buttons here. However you can apply one of the following tags to restrict visibility.
org_member:associate- button will only be visible if organisation is an associate member.org_member:associate_school- button will only be visible if organisation is an associate school member.org_member:group- button will only be visible if organisation is an associate member.
If a subpage has two tags - for example org_member:associate_school and org_member:group - the button will be visible for both membership types.