Skip to content

oarepo/oarepo-communities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5b9c33d · Oct 31, 2024
Sep 4, 2024
Oct 31, 2024
Oct 17, 2024
Sep 9, 2024
Sep 9, 2024
Sep 26, 2023
Sep 11, 2024
Nov 7, 2023
Aug 21, 2024
Oct 24, 2023
Sep 11, 2024
Sep 26, 2023
Aug 11, 2024
Oct 31, 2024
Sep 26, 2023

Repository files navigation

OARepo communities

Installation

To init custom fields, add them under COMMUNITIES_CUSTOM_FIELDS key to invenio.cfg, for example

from oarepo_communities.cf.permissions import PermissionsCF
from oarepo_communities.cf.aai import AAIMappingCF

COMMUNITIES_CUSTOM_FIELDS = [PermissionsCF("permissions"), AAIMappingCF("aai")]
COMMUNITIES_CUSTOM_FIELDS_UI = [{
     "section": "settings",
     "fields": [{
                 "field": "permissions",
                 "ui_widget": "Input",
                 "props": {
                             "label":"permissions dict",
                          }
                }]
 }]

and the init cli command: invenio communities custom-fields init