faithcatholic / faith_subscriptions_lectionary
Provides lectionary entity type.
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:drupal-module
This package is auto-updated.
Last update: 2024-12-06 22:29:55 UTC
README
This module provides a new content entity: lectionary. Lectionaries are numbered lists of specific biblical readings that match a particular theme, which are standarzied across the Church. This information is usually displayed within the main site content.
This data is stored as an entity to improve re-usability. Lectionaries are a somewhat standard set of readings within the Church, and keeping this data in a separate entity allows easier modification in the future without jeopardizing functionality of other content. This model also avoids duplicating data that may prove troublesome.
How to use this module
- Verify that the prerequisite module will work with your website:
- drupal/auto_entitylabel
- Download the module from packagist using composer:
$ composer require faithcatholic/faith_subscriptions_lectionary
- Enable the module via drush or within the administration area:
$ drush en faith_subscriptions_lectionary
- Navigate to the content overview page at
Admin > Content
in the administrator toolbar. - Find the new tab above the content area called
Lectionaries
. This tab loads a page that shows a full list of existing lectionaries that have been saved to the website. - Choose a content type in which to add lectionary functionality. Using the admin toolbar, go to
Admin > Structure > Content Types > My Type
. On the next screen, clickManage Fields
and add a reference field:- Click the
+ Add field
button. - Select
Reference > Other...
in theAdd a new field
dropdown and provide a label for the field. - On the next page, choose the
Lectionary
option under theType of item to reference
dropdown list. - Make sure
Allowed number of values
is set to1
.
- Click the
- Now select the
Manage Form Display
tab for your content type, and set the form widget to beInline entity form - Complex
in the dropdown form.- Set the form display. Set options by clicking the gear icon on the far right-hand side of the applicable field in the list of fields.
- Leave the form default settings as-is except those below:
- ☑
Allow users to add new nodes.
- ☑
Allow users to add existing nodes.
Leave widget to add existing nodes asAutocomplete
- ☑
Allow users to edit existing nodes.
Leave autocomplete matching asContains
.
- ☑
- Set
Keep or delete unreferenced nodes
toKeep always
.
- Under the
Manage Display
tab of your content type, move the field display if necessary and choose the label option. - That's it! You're ready to add lectionaries.
- Best practice is to set up a content type, add an entity reference field for lectionaries as described in steps 6 and 7, and save the field. Then create content of that type and add a lectionary directly within the node add/edit form.
- You can also create/edit/delete lectionaries on its admin overview page. Go to
Admin > Content > Lectionaries
and click the+ Add lectionary
button.