Collection nodes are visible only to the author node and users with permission "bypass node access"
- File
capacitype_collection/capacitype_collection.moduleHookfunction capacitype_collection_node_access()responsible for implementing feature.
Feature : Allow sharing of Collection content
Provides a publicly viewable url for a collection node.
At event Author clicks at a collection share link, shows a modal dialog popup "Share" thats lists:
- Link to page
All lists items are "Call to action" links having the publicly viewable url of a collection node.
- File
capacitype_collection/capacitype_collection.installHookfunction capacitype_collection_schema(), adds backend table holding publicly viewable url parts (nid,uid,pass,etc..) - File
capacitype_collection/capacitype_collection.routing.ymldeclares custom routecapacitype_collection.public_viewaka the publicly viewable url for a collection node. - File
capacitype_collection/capacitype_collection.moduleHookfunction capacitype_collection_node_presave(), responsible for adding a publicly viewable url database record. - File
capacitype_collection/capacitype_collection.drush.incHookdrush_capacitype_collection_c5cc_create_public_collection_urls(),adds script drush c5cc-create-public-collection-urls, this script backfills any collection nodes without a publicly viewable url. - File
capacitype_collection/src/Controller/ShareCollectionControllermethodShareCollectionController::publicAccesshandles access control for routecapacitype_collection.public_view - File
capacitype_collection/src/Controller/ShareCollectionControllermethodShareCollectionController::publicViewview handler for routecapacitype_collection.public_view - File
themes/custom/capacitype/templates/content/node--collection--full.html.twigsectionshareable collection integrationadds modal dialog javascripts & sharelink to template. - File
themes/custom/capacitype/capacitype.themefunctioncapacitype_preprocess_nodesectionshareable collection integrationadds variableshareable_collection_linkfor template use innode--collection--full.html.twig