diff options
Diffstat (limited to 'modules')
283 files changed, 14472 insertions, 316 deletions
diff --git a/modules/bhavika/admission_program/admission_program.info.yml b/modules/bhavika/admission_program/admission_program.info.yml index dcae984..44aeeef 100644 --- a/modules/bhavika/admission_program/admission_program.info.yml +++ b/modules/bhavika/admission_program/admission_program.info.yml @@ -13,4 +13,5 @@ dependencies: - drupal:path - ds:ds - pathauto:pathauto + - department:department diff --git a/modules/bhavika/clubs/clubs.info.yml b/modules/bhavika/clubs/clubs.info.yml index a705811..69d24cc 100644 --- a/modules/bhavika/clubs/clubs.info.yml +++ b/modules/bhavika/clubs/clubs.info.yml @@ -1,6 +1,6 @@ -name: 'welcome' +name: 'clubs' type: module -description: 'this module shows welcome message to logged in user.' +description: 'this module is for clubs content type.' core: 8.x package: 'Custom' # dependencies: diff --git a/modules/bhavika/company/config/install/compimage.style.compimg.yml b/modules/bhavika/company/config/install/compimage.style.compimg.yml new file mode 100644 index 0000000..46243fd --- /dev/null +++ b/modules/bhavika/company/config/install/compimage.style.compimg.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + enforced: + module: + - company +name: compimg +label: 'CompanyImage (100×100)' +effects: + 1cfec298-8620-4749-b100-ccb6c4500779: + uuid: 1cfec298-8620-4749-b100-ccb6c4500779 + id: image_scale + weight: 0 + data: + width: 100 + height: 100 + upscale: false diff --git a/modules/bhavika/company/config/install/compimage.style.thumbnail.yml b/modules/bhavika/company/config/install/compimage.style.thumbnail.yml new file mode 100644 index 0000000..46243fd --- /dev/null +++ b/modules/bhavika/company/config/install/compimage.style.thumbnail.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + enforced: + module: + - company +name: compimg +label: 'CompanyImage (100×100)' +effects: + 1cfec298-8620-4749-b100-ccb6c4500779: + uuid: 1cfec298-8620-4749-b100-ccb6c4500779 + id: image_scale + weight: 0 + data: + width: 100 + height: 100 + upscale: false diff --git a/modules/bhavika/company/config/install/core.entity_form_display.node.companies.default.yml b/modules/bhavika/company/config/install/core.entity_form_display.node.companies.default.yml index d8dc6ea..ea038ad 100644 --- a/modules/bhavika/company/config/install/core.entity_form_display.node.companies.default.yml +++ b/modules/bhavika/company/config/install/core.entity_form_display.node.companies.default.yml @@ -5,7 +5,7 @@ dependencies: - field.field.node.companies.body - field.field.node.companies.field_company_link - field.field.node.companies.field_logo - - image.style.thumbnail + - image.style.compimg - node.type.companies module: - image @@ -47,7 +47,7 @@ content: weight: 8 settings: progress_indicator: throbber - preview_image_style: thumbnail + preview_image_style: compimg third_party_settings: { } type: image_image region: content diff --git a/modules/bhavika/company/config/install/core.entity_view_mode.node.teaser.yml b/modules/bhavika/company/config/install/core.entity_view_mode.node.teaser.yml deleted file mode 100644 index 6114f1f..0000000 --- a/modules/bhavika/company/config/install/core.entity_view_mode.node.teaser.yml +++ /dev/null @@ -1,12 +0,0 @@ -langcode: en -status: true -dependencies: - module: - - node - enforced: - module: - - company -id: node.teaser -label: Teaser -targetEntityType: node -cache: true diff --git a/modules/bhavika/company/config/install/field.storage.node.body.yml b/modules/bhavika/company/config/install/field.storage.node.body.yml deleted file mode 100644 index e9f95b6..0000000 --- a/modules/bhavika/company/config/install/field.storage.node.body.yml +++ /dev/null @@ -1,25 +0,0 @@ -langcode: en -status: true -dependencies: - module: - # - field_permissions - - node - - text - enforced: - module: - - company -# third_party_settings: -# field_permissions: -# permission_type: public -id: node.body -field_name: body -entity_type: node -type: text_with_summary -settings: { } -module: text -locked: false -cardinality: 1 -translatable: true -indexes: { } -persist_with_no_fields: true -custom_storage: false diff --git a/modules/bhavika/department/config/install/core.entity_form_display.node.department.default.yml b/modules/bhavika/department/config/install/core.entity_form_display.node.department.default.yml index bfaccb6..e00e6f5 100644 --- a/modules/bhavika/department/config/install/core.entity_form_display.node.department.default.yml +++ b/modules/bhavika/department/config/install/core.entity_form_display.node.department.default.yml @@ -7,7 +7,7 @@ dependencies: - field.field.node.department.field_dept_mission - field.field.node.department.field_facilities - field.field.node.department.field_placements - - image.style.thumbnail + - image.style.deptimg - node.type.department module: - image @@ -40,7 +40,7 @@ content: weight: 9 settings: progress_indicator: throbber - preview_image_style: thumbnail + preview_image_style: deptimg third_party_settings: { } type: image_image region: content diff --git a/modules/bhavika/department/config/install/core.entity_view_mode.node.teaser.yml b/modules/bhavika/department/config/install/core.entity_view_mode.node.teaser.yml deleted file mode 100644 index 22f411b..0000000 --- a/modules/bhavika/department/config/install/core.entity_view_mode.node.teaser.yml +++ /dev/null @@ -1,12 +0,0 @@ -langcode: en -status: true -dependencies: - module: - - node - enforced: - module: - - department -id: node.teaser -label: Teaser -targetEntityType: node -cache: true diff --git a/modules/bhavika/department/config/install/image.style.thumbnail.yml b/modules/bhavika/department/config/install/deptimage.style.deptimg.yml index 2eda95b..bcf3210 100644 --- a/modules/bhavika/department/config/install/image.style.thumbnail.yml +++ b/modules/bhavika/department/config/install/deptimage.style.deptimg.yml @@ -4,8 +4,8 @@ dependencies: enforced: module: - department -name: thumbnail -label: 'Thumbnail (100×100)' +name: deptimg +label: 'DeptImg (100×100)' effects: 1cfec298-8620-4749-b100-ccb6c4500779: uuid: 1cfec298-8620-4749-b100-ccb6c4500779 diff --git a/modules/bhavika/department/config/install/deptimage.style.thumbnail.yml b/modules/bhavika/department/config/install/deptimage.style.thumbnail.yml new file mode 100644 index 0000000..bcf3210 --- /dev/null +++ b/modules/bhavika/department/config/install/deptimage.style.thumbnail.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + enforced: + module: + - department +name: deptimg +label: 'DeptImg (100×100)' +effects: + 1cfec298-8620-4749-b100-ccb6c4500779: + uuid: 1cfec298-8620-4749-b100-ccb6c4500779 + id: image_scale + weight: 0 + data: + width: 100 + height: 100 + upscale: false diff --git a/modules/bhavika/department/department.info.yml b/modules/bhavika/department/department.info.yml index 50cb4df..54faa20 100644 --- a/modules/bhavika/department/department.info.yml +++ b/modules/bhavika/department/department.info.yml @@ -15,4 +15,5 @@ dependencies: - drupal:file - ds:ds - pathauto:pathauto + diff --git a/modules/esha/achievements/config/install/core.entity_view_mode.node.teaser.yml b/modules/esha/achievements/config/install/core.entity_view_mode.node.teaser.yml deleted file mode 100644 index 83ada37..0000000 --- a/modules/esha/achievements/config/install/core.entity_view_mode.node.teaser.yml +++ /dev/null @@ -1,15 +0,0 @@ -uuid: eae4e8eb-df75-49ff-b350-c4bd59679b36 -langcode: en -status: true -dependencies: - module: - - node - enforced: - module: - - achievements -_core: - default_config_hash: Mz9qWr1kUYK0mjRAGDsr5XS6PvtZ24en_7ndt-pyWe4 -id: node.teaser -label: Teaser -targetEntityType: node -cache: true diff --git a/modules/esha/achievements/config/install/views.view.achieve.yml b/modules/esha/achievements/config/install/views.view.achieve.yml new file mode 100644 index 0000000..2ce6513 --- /dev/null +++ b/modules/esha/achievements/config/install/views.view.achieve.yml @@ -0,0 +1,242 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - node.type.achievements + - taxonomy.vocabulary.achievement + module: + - node + - taxonomy + - user +id: achieve +label: achieve +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: default + row: + type: 'entity:node' + options: + view_mode: teaser + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + label: '' + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + achievements: achievements + entity_type: node + entity_field: type + plugin_id: bundle + field_achievement_type_target_id: + id: field_achievement_type_target_id + table: node__field_achievement_type + field: field_achievement_type_target_id + relationship: none + group_type: group + admin_label: '' + operator: or + value: { } + group: 1 + exposed: true + expose: + operator_id: field_achievement_type_target_id_op + label: 'Achievement Type (field_achievement_type)' + description: '' + use_operator: false + operator: field_achievement_type_target_id_op + identifier: field_achievement_type_target_id + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + reduce_duplicates: false + type: select + limit: true + vid: achievement + hierarchy: false + error_message: true + plugin_id: taxonomy_index_tid + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: achieve + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: achieve + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/modules/esha/achievements/templates/achievements.html.twig b/modules/esha/achievements/templates/achievements.html.twig deleted file mode 100644 index 91e43c8..0000000 --- a/modules/esha/achievements/templates/achievements.html.twig +++ /dev/null @@ -1 +0,0 @@ -<!-- Add you custom twig html here -->
\ No newline at end of file diff --git a/modules/esha/corporate/config/install/core.entity_form_display.node.corporate_advisory_board.default.yml b/modules/esha/corporate/config/install/core.entity_form_display.node.corporate_advisory_board.default.yml index d36c401..e76e9b5 100644 --- a/modules/esha/corporate/config/install/core.entity_form_display.node.corporate_advisory_board.default.yml +++ b/modules/esha/corporate/config/install/core.entity_form_display.node.corporate_advisory_board.default.yml @@ -6,7 +6,7 @@ dependencies: - field.field.node.corporate_advisory_board.field_company_website - field.field.node.corporate_advisory_board.field_designation - field.field.node.corporate_advisory_board.field_member_image - - image.style.thumbnail + - image.style.cabimg - node.type.corporate_advisory_board module: - image @@ -30,7 +30,7 @@ content: weight: 124 settings: progress_indicator: throbber - preview_image_style: thumbnail + preview_image_style: cabimg third_party_settings: { } type: image_image region: content diff --git a/modules/esha/corporate/config/install/core.entity_view_mode.node.teaser.yml b/modules/esha/corporate/config/install/core.entity_view_mode.node.teaser.yml deleted file mode 100644 index 4632edd..0000000 --- a/modules/esha/corporate/config/install/core.entity_view_mode.node.teaser.yml +++ /dev/null @@ -1,15 +0,0 @@ -uuid: eae4e8eb-df75-49ff-b350-c4bd59679b36 -langcode: en -status: true -dependencies: - module: - - node - enforced: - module: - - corporate -_core: - default_config_hash: Mz9qWr1kUYK0mjRAGDsr5XS6PvtZ24en_7ndt-pyWe4 -id: node.teaser -label: Teaser -targetEntityType: node -cache: true diff --git a/modules/esha/corporate/config/install/image.style.thumbnail.yml b/modules/esha/corporate/config/install/image.style.cabimg.yml index 7389c76..8657f2c 100644 --- a/modules/esha/corporate/config/install/image.style.thumbnail.yml +++ b/modules/esha/corporate/config/install/image.style.cabimg.yml @@ -1,4 +1,3 @@ -uuid: 253400b6-2e54-4c6a-92ba-9ccb091444e2 langcode: en status: true dependencies: @@ -7,8 +6,8 @@ dependencies: - corporate _core: default_config_hash: cCiWdBHgLwj5omG35lsKc4LkW4MBdmcctkVop4ol5x0 -name: thumbnail -label: 'Thumbnail (100×100)' +name: cabimg +label: 'CAB img (100×100)' effects: 1cfec298-8620-4749-b100-ccb6c4500779: uuid: 1cfec298-8620-4749-b100-ccb6c4500779 diff --git a/modules/esha/corporate/templates/corporate.html.twig b/modules/esha/corporate/templates/corporate.html.twig deleted file mode 100644 index 91e43c8..0000000 --- a/modules/esha/corporate/templates/corporate.html.twig +++ /dev/null @@ -1 +0,0 @@ -<!-- Add you custom twig html here -->
\ No newline at end of file diff --git a/modules/esha/lab/config/install/node.type.fac_page.yml b/modules/esha/lab/config/install/node.type.fac_page.yml deleted file mode 100644 index 47f8ffb..0000000 --- a/modules/esha/lab/config/install/node.type.fac_page.yml +++ /dev/null @@ -1,23 +0,0 @@ -uuid: b7471e78-83f0-4359-9512-d4a8f02c2218 -langcode: en -status: true -dependencies: - enforced: - module: - - acadmix_faculty - module: - - menu_ui -third_party_settings: - menu_ui: - available_menus: - - main - parent: 'main:' -_core: - default_config_hash: yZnGgm-oTEuH3Qz8VcW49f94qFn-pYOYZdrX601an0U -name: 'Faculty Page' -type: fac_page -description: 'Content template for opening Faculty Page' -help: '' -new_revision: true -preview_mode: 1 -display_submitted: false diff --git a/modules/esha/lab/config/install/views.view.lab_view.yml b/modules/esha/lab/config/install/views.view.lab_view.yml new file mode 100644 index 0000000..d8de977 --- /dev/null +++ b/modules/esha/lab/config/install/views.view.lab_view.yml @@ -0,0 +1,308 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.lab + module: + - node + - text + - user +id: lab_view +label: 'Lab View' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: default + options: + grouping: { } + row_class: '' + default_row_class: true + row: + type: fields + options: + default_field_elements: true + inline: { } + separator: '' + hide_empty: false + fields: + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: false + ellipsis: false + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: h3 + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: node + entity_field: title + plugin_id: field + body: + id: body + table: node__body + field: body + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: text_default + settings: { } + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + filters: + status: + id: status + table: node_field_data + field: status + relationship: none + group_type: group + admin_label: '' + operator: '=' + value: '1' + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + plugin_id: boolean + entity_type: node + entity_field: status + type: + id: type + table: node_field_data + field: type + value: + lab: lab + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Lab View' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.body' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: lab-view + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.body' diff --git a/modules/esha/lab/lab.info.yml b/modules/esha/lab/lab.info.yml index 8507cd7..ada0648 100644 --- a/modules/esha/lab/lab.info.yml +++ b/modules/esha/lab/lab.info.yml @@ -10,3 +10,4 @@ dependencies: - drupal:user - drupal:node - drupal:menu_ui + - acadmix_faculty:acadmix_faculty diff --git a/modules/esha/lab/templates/lab.html.twig b/modules/esha/lab/templates/lab.html.twig deleted file mode 100644 index 91e43c8..0000000 --- a/modules/esha/lab/templates/lab.html.twig +++ /dev/null @@ -1 +0,0 @@ -<!-- Add you custom twig html here -->
\ No newline at end of file diff --git a/modules/esha/lab/views.view.lab_manual.yml b/modules/esha/lab/views.view.lab_manual.yml new file mode 100644 index 0000000..705a7cd --- /dev/null +++ b/modules/esha/lab/views.view.lab_manual.yml @@ -0,0 +1,320 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_description + - field.storage.node.field_manual + - node.type.lab_manual + module: + - file + - node + - user +id: lab_manual +label: 'Lab Manual' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 20 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: table + row: + type: fields + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + label: Title + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + field_description: + id: field_description + table: node__field_description + field: field_description + relationship: none + group_type: group + admin_label: '' + label: Description + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: basic_string + settings: { } + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + field_manual: + id: field_manual + table: node__field_manual + field: field_manual + relationship: none + group_type: group + admin_label: '' + label: Manual + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: file_default + settings: + use_description_as_link_text: true + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + lab_manual: lab_manual + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Lab Manual' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_description' + - 'config:field.storage.node.field_manual' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: lab-manual + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_description' + - 'config:field.storage.node.field_manual' diff --git a/modules/esha/labmanual/config/install/core.entity_view_mode.node.teaser.yml b/modules/esha/labmanual/config/install/core.entity_view_mode.node.teaser.yml deleted file mode 100644 index ce0398e..0000000 --- a/modules/esha/labmanual/config/install/core.entity_view_mode.node.teaser.yml +++ /dev/null @@ -1,15 +0,0 @@ -uuid: eae4e8eb-df75-49ff-b350-c4bd59679b36 -langcode: en -status: true -dependencies: - module: - - node - enforced: - module: - - labmanual -_core: - default_config_hash: Mz9qWr1kUYK0mjRAGDsr5XS6PvtZ24en_7ndt-pyWe4 -id: node.teaser -label: Teaser -targetEntityType: node -cache: true diff --git a/modules/esha/labmanual/config/install/field.storage.node.field_description.yml b/modules/esha/labmanual/config/install/field.storage.node.field_description.yml index f272899..6efdf35 100644 --- a/modules/esha/labmanual/config/install/field.storage.node.field_description.yml +++ b/modules/esha/labmanual/config/install/field.storage.node.field_description.yml @@ -1,4 +1,3 @@ -uuid: 2607b4e4-518c-4aff-9b49-5f398e718487 langcode: en status: true dependencies: diff --git a/modules/esha/labmanual/config/install/field.storage.node.field_manual.yml b/modules/esha/labmanual/config/install/field.storage.node.field_manual.yml index 9070112..19b2ceb 100644 --- a/modules/esha/labmanual/config/install/field.storage.node.field_manual.yml +++ b/modules/esha/labmanual/config/install/field.storage.node.field_manual.yml @@ -1,4 +1,3 @@ -uuid: 9772805f-ffb2-443f-afdd-0bc6dfd48416 langcode: en status: true dependencies: diff --git a/modules/esha/labmanual/config/install/views.view.lab_manual.yml b/modules/esha/labmanual/config/install/views.view.lab_manual.yml new file mode 100644 index 0000000..705a7cd --- /dev/null +++ b/modules/esha/labmanual/config/install/views.view.lab_manual.yml @@ -0,0 +1,320 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_description + - field.storage.node.field_manual + - node.type.lab_manual + module: + - file + - node + - user +id: lab_manual +label: 'Lab Manual' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 20 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: table + row: + type: fields + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + label: Title + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + field_description: + id: field_description + table: node__field_description + field: field_description + relationship: none + group_type: group + admin_label: '' + label: Description + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: basic_string + settings: { } + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + field_manual: + id: field_manual + table: node__field_manual + field: field_manual + relationship: none + group_type: group + admin_label: '' + label: Manual + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: file_default + settings: + use_description_as_link_text: true + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + lab_manual: lab_manual + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Lab Manual' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_description' + - 'config:field.storage.node.field_manual' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: lab-manual + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_description' + - 'config:field.storage.node.field_manual' diff --git a/modules/esha/labmanual/templates/labmanual.html.twig b/modules/esha/labmanual/templates/labmanual.html.twig deleted file mode 100644 index 91e43c8..0000000 --- a/modules/esha/labmanual/templates/labmanual.html.twig +++ /dev/null @@ -1 +0,0 @@ -<!-- Add you custom twig html here -->
\ No newline at end of file diff --git a/modules/esha/onlinecourse/composer.json b/modules/esha/onlinecourse/composer.json index 9d4a149..c7aa5b1 100644 --- a/modules/esha/onlinecourse/composer.json +++ b/modules/esha/onlinecourse/composer.json @@ -1,7 +1,7 @@ { "name": "drupal/onlinecourse", "type": "drupal-module", - "description": "My Awesome Module", + "description": "Module for Content Type online_course", "keywords": ["Drupal"], "license": "GPL-2.0+", "homepage": "https://www.drupal.org/project/onlinecourse", diff --git a/modules/esha/onlinecourse/config/install/core.entity_form_display.node.online_course.default.yml b/modules/esha/onlinecourse/config/install/core.entity_form_display.node.online_course.default.yml index 86b561a..ef8ff26 100644 --- a/modules/esha/onlinecourse/config/install/core.entity_form_display.node.online_course.default.yml +++ b/modules/esha/onlinecourse/config/install/core.entity_form_display.node.online_course.default.yml @@ -9,6 +9,9 @@ dependencies: module: - link - path + enforced: + module: + online_course id: node.online_course.default targetEntityType: node bundle: online_course diff --git a/modules/esha/onlinecourse/config/install/core.entity_view_display.node.online_course.default.yml b/modules/esha/onlinecourse/config/install/core.entity_view_display.node.online_course.default.yml index a774ce8..659d2b2 100644 --- a/modules/esha/onlinecourse/config/install/core.entity_view_display.node.online_course.default.yml +++ b/modules/esha/onlinecourse/config/install/core.entity_view_display.node.online_course.default.yml @@ -9,6 +9,9 @@ dependencies: module: - link - user + enforced: + module: + online_course id: node.online_course.default targetEntityType: node bundle: online_course diff --git a/modules/esha/onlinecourse/config/install/core.entity_view_display.node.online_course.teaser.yml b/modules/esha/onlinecourse/config/install/core.entity_view_display.node.online_course.teaser.yml index 79dc5ec..4f1d50a 100644 --- a/modules/esha/onlinecourse/config/install/core.entity_view_display.node.online_course.teaser.yml +++ b/modules/esha/onlinecourse/config/install/core.entity_view_display.node.online_course.teaser.yml @@ -8,6 +8,9 @@ dependencies: - node.type.online_course module: - user + enforced: + module: + online_course id: node.online_course.teaser targetEntityType: node bundle: online_course diff --git a/modules/esha/onlinecourse/config/install/core.entity_view_mode.node.teaser.yml b/modules/esha/onlinecourse/config/install/core.entity_view_mode.node.teaser.yml deleted file mode 100644 index fb7a35a..0000000 --- a/modules/esha/onlinecourse/config/install/core.entity_view_mode.node.teaser.yml +++ /dev/null @@ -1,12 +0,0 @@ -uuid: eae4e8eb-df75-49ff-b350-c4bd59679b36 -langcode: en -status: true -dependencies: - module: - - node -_core: - default_config_hash: Mz9qWr1kUYK0mjRAGDsr5XS6PvtZ24en_7ndt-pyWe4 -id: node.teaser -label: Teaser -targetEntityType: node -cache: true diff --git a/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_faculty_name.yml b/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_faculty_name.yml index c5ea1a1..c1d3513 100644 --- a/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_faculty_name.yml +++ b/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_faculty_name.yml @@ -5,6 +5,9 @@ dependencies: - field.storage.node.field_faculty_name - node.type.fac_page - node.type.online_course + enforced: + module: + online_course id: node.online_course.field_faculty_name field_name: field_faculty_name entity_type: node diff --git a/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_link_to_cour.yml b/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_link_to_cour.yml index fddd4ed..74e3531 100644 --- a/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_link_to_cour.yml +++ b/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_link_to_cour.yml @@ -6,6 +6,9 @@ dependencies: - node.type.online_course module: - link + enforced: + module: + online_course id: node.online_course.field_link_to_cour field_name: field_link_to_cour entity_type: node diff --git a/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_offered_by.yml b/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_offered_by.yml index 973b204..08fac16 100644 --- a/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_offered_by.yml +++ b/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_offered_by.yml @@ -4,6 +4,9 @@ dependencies: config: - field.storage.node.field_offered_by - node.type.online_course + enforced: + module: + online_course id: node.online_course.field_offered_by field_name: field_offered_by entity_type: node diff --git a/modules/esha/onlinecourse/config/install/field.storage.node.field_faculty_name.yml b/modules/esha/onlinecourse/config/install/field.storage.node.field_faculty_name.yml index d7653f8..5cd1b7a 100644 --- a/modules/esha/onlinecourse/config/install/field.storage.node.field_faculty_name.yml +++ b/modules/esha/onlinecourse/config/install/field.storage.node.field_faculty_name.yml @@ -4,6 +4,9 @@ status: true dependencies: module: - node + enforced: + module: + online_course id: node.field_faculty_name field_name: field_faculty_name entity_type: node diff --git a/modules/esha/onlinecourse/config/install/field.storage.node.field_link_to_cour.yml b/modules/esha/onlinecourse/config/install/field.storage.node.field_link_to_cour.yml index 86d2592..58eb169 100644 --- a/modules/esha/onlinecourse/config/install/field.storage.node.field_link_to_cour.yml +++ b/modules/esha/onlinecourse/config/install/field.storage.node.field_link_to_cour.yml @@ -5,6 +5,9 @@ dependencies: module: - link - node + enforced: + module: + online_course id: node.field_link_to_cour field_name: field_link_to_cour entity_type: node diff --git a/modules/esha/onlinecourse/config/install/field.storage.node.field_offered_by.yml b/modules/esha/onlinecourse/config/install/field.storage.node.field_offered_by.yml index 6cf5567..83d4cac 100644 --- a/modules/esha/onlinecourse/config/install/field.storage.node.field_offered_by.yml +++ b/modules/esha/onlinecourse/config/install/field.storage.node.field_offered_by.yml @@ -4,6 +4,9 @@ status: true dependencies: module: - node + enforced: + module: + online_course id: node.field_offered_by field_name: field_offered_by entity_type: node diff --git a/modules/esha/onlinecourse/config/install/node.type.fac_page.yml b/modules/esha/onlinecourse/config/install/node.type.fac_page.yml deleted file mode 100644 index 47f8ffb..0000000 --- a/modules/esha/onlinecourse/config/install/node.type.fac_page.yml +++ /dev/null @@ -1,23 +0,0 @@ -uuid: b7471e78-83f0-4359-9512-d4a8f02c2218 -langcode: en -status: true -dependencies: - enforced: - module: - - acadmix_faculty - module: - - menu_ui -third_party_settings: - menu_ui: - available_menus: - - main - parent: 'main:' -_core: - default_config_hash: yZnGgm-oTEuH3Qz8VcW49f94qFn-pYOYZdrX601an0U -name: 'Faculty Page' -type: fac_page -description: 'Content template for opening Faculty Page' -help: '' -new_revision: true -preview_mode: 1 -display_submitted: false diff --git a/modules/esha/onlinecourse/config/install/node.type.online_course.yml b/modules/esha/onlinecourse/config/install/node.type.online_course.yml index 4f492e6..9811a1b 100644 --- a/modules/esha/onlinecourse/config/install/node.type.online_course.yml +++ b/modules/esha/onlinecourse/config/install/node.type.online_course.yml @@ -3,6 +3,9 @@ status: true dependencies: module: - menu_ui + enforced: + module: + online_course third_party_settings: menu_ui: available_menus: diff --git a/modules/esha/onlinecourse/config/install/views.view.faculty_online_courses.yml b/modules/esha/onlinecourse/config/install/views.view.faculty_online_courses.yml new file mode 100644 index 0000000..75fe5d4 --- /dev/null +++ b/modules/esha/onlinecourse/config/install/views.view.faculty_online_courses.yml @@ -0,0 +1,298 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_faculty_name + - field.storage.node.field_link_to_cour + - field.storage.node.field_offered_by + - node.type.online_course + module: + - link + - node + - user +id: faculty_online_courses +label: 'Faculty Online Courses' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 15 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: table + row: + type: fields + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + label: Title + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + field_faculty_name: + id: field_faculty_name + table: node__field_faculty_name + field: field_faculty_name + relationship: none + group_type: group + admin_label: '' + label: 'Faculty name' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: true + group_column: target_id + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + field_link_to_cour: + id: field_link_to_cour + table: node__field_link_to_cour + field: field_link_to_cour + plugin_id: field + field_offered_by: + id: field_offered_by + table: node__field_offered_by + field: field_offered_by + plugin_id: field + filters: + status: + id: status + table: node_field_data + field: status + relationship: none + group_type: group + admin_label: '' + operator: '=' + value: '1' + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + plugin_id: boolean + entity_type: node + entity_field: status + type: + id: type + table: node_field_data + field: type + value: + online_course: online_course + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Faculty Online Courses' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_faculty_name' + - 'config:field.storage.node.field_link_to_cour' + - 'config:field.storage.node.field_offered_by' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: faculty-online-courses + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_faculty_name' + - 'config:field.storage.node.field_link_to_cour' + - 'config:field.storage.node.field_offered_by' diff --git a/modules/esha/onlinecourse/onlinecourse.info.yml b/modules/esha/onlinecourse/onlinecourse.info.yml index 91191b6..2074bbe 100644 --- a/modules/esha/onlinecourse/onlinecourse.info.yml +++ b/modules/esha/onlinecourse/onlinecourse.info.yml @@ -1,6 +1,6 @@ name: 'onlineCourse' type: module -description: 'My Awesome Module' +description: 'Module for Content Type online_course' core: 8.x package: 'Custom' dependencies: @@ -9,4 +9,5 @@ dependencies: - drupal:path - drupal:user - drupal:node - - drupal:menu_ui
\ No newline at end of file + - drupal:menu_ui + - acadmix_faculty:acadmix_faculty
\ No newline at end of file diff --git a/modules/esha/onlinecourse/templates/onlinecourse.html.twig b/modules/esha/onlinecourse/templates/onlinecourse.html.twig deleted file mode 100644 index 91e43c8..0000000 --- a/modules/esha/onlinecourse/templates/onlinecourse.html.twig +++ /dev/null @@ -1 +0,0 @@ -<!-- Add you custom twig html here -->
\ No newline at end of file diff --git a/modules/esha/onlinecourse/tests/src/Functional/LoadTest.php b/modules/esha/onlinecourse/tests/src/Functional/LoadTest.php deleted file mode 100644 index a25c263..0000000 --- a/modules/esha/onlinecourse/tests/src/Functional/LoadTest.php +++ /dev/null @@ -1,46 +0,0 @@ -<?php - -namespace Drupal\Tests\onlinecourse\Functional; - -use Drupal\Core\Url; -use Drupal\Tests\BrowserTestBase; - -/** - * Simple test to ensure that main page loads with module enabled. - * - * @group onlinecourse - */ -class LoadTest extends BrowserTestBase { - - /** - * Modules to enable. - * - * @var array - */ - public static $modules = ['onlinecourse']; - - /** - * A user with permission to administer site configuration. - * - * @var \Drupal\user\UserInterface - */ - protected $user; - - /** - * {@inheritdoc} - */ - protected function setUp() { - parent::setUp(); - $this->user = $this->drupalCreateUser(['administer site configuration']); - $this->drupalLogin($this->user); - } - - /** - * Tests that the home page loads with a 200 response. - */ - public function testLoad() { - $this->drupalGet(Url::fromRoute('<front>')); - $this->assertSession()->statusCodeEquals(200); - } - -} diff --git a/modules/esha/placements/config/install/core.entity_view_mode.node.teaser.yml b/modules/esha/placements/config/install/core.entity_view_mode.node.teaser.yml deleted file mode 100644 index f09eef8..0000000 --- a/modules/esha/placements/config/install/core.entity_view_mode.node.teaser.yml +++ /dev/null @@ -1,15 +0,0 @@ -uuid: eae4e8eb-df75-49ff-b350-c4bd59679b36 -langcode: en -status: true -dependencies: - module: - - node - enforced: - module: - - placements -_core: - default_config_hash: Mz9qWr1kUYK0mjRAGDsr5XS6PvtZ24en_7ndt-pyWe4 -id: node.teaser -label: Teaser -targetEntityType: node -cache: true diff --git a/modules/esha/placements/config/install/views.view.placement_details.yml b/modules/esha/placements/config/install/views.view.placement_details.yml new file mode 100644 index 0000000..d7bca8a --- /dev/null +++ b/modules/esha/placements/config/install/views.view.placement_details.yml @@ -0,0 +1,351 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_total_students_placed + - node.type.placements + - taxonomy.vocabulary.placement_year + content: + - 'taxonomy_term:placement_year:1d31f310-a1a3-41dc-9e57-f84689e615c1' + - 'taxonomy_term:placement_year:2d7f60dc-ca0d-4a03-b18b-fc8d0b061ab9' + - 'taxonomy_term:placement_year:4d8e9a66-e43e-4e97-b658-f1c701fc7716' + - 'taxonomy_term:placement_year:6b8cefa4-a0da-437a-8d63-28283f798011' + module: + - node + - taxonomy + - user +id: placement_details +label: 'Placement Details' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 25 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: table + row: + type: fields + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + label: Title + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + field_total_students_placed: + id: field_total_students_placed + table: node__field_total_students_placed + field: field_total_students_placed + relationship: none + group_type: group + admin_label: '' + label: 'Total Students Placed' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: number_integer + settings: + thousand_separator: '' + prefix_suffix: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + placements: placements + entity_type: node + entity_field: type + plugin_id: bundle + field_year_target_id: + id: field_year_target_id + table: node__field_year + field: field_year_target_id + relationship: none + group_type: group + admin_label: '' + operator: or + value: + 39: 39 + 40: 40 + 41: 41 + 42: 42 + group: 1 + exposed: true + expose: + operator_id: field_year_target_id_op + label: 'Year (field_year)' + description: '' + use_operator: false + operator: field_year_target_id_op + identifier: field_year_target_id + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + reduce_duplicates: false + type: select + limit: true + vid: placement_year + hierarchy: false + error_message: true + plugin_id: taxonomy_index_tid + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Placement Details' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: + field_year_target_id: + id: field_year_target_id + table: node__field_year + field: field_year_target_id + relationship: none + group_type: group + admin_label: '' + default_action: ignore + exception: + value: all + title_enable: false + title: All + title_enable: true + title: '' + default_argument_type: fixed + default_argument_options: + argument: '' + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + items_per_page: 25 + override: false + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: true + validate: + type: none + fail: 'not found' + validate_options: { } + break_phrase: false + not: false + plugin_id: numeric + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_total_students_placed' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: placement-details + exposed_block: false + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_total_students_placed' diff --git a/modules/esha/placements/templates/placements.html.twig b/modules/esha/placements/templates/placements.html.twig deleted file mode 100644 index 91e43c8..0000000 --- a/modules/esha/placements/templates/placements.html.twig +++ /dev/null @@ -1 +0,0 @@ -<!-- Add you custom twig html here -->
\ No newline at end of file diff --git a/modules/esha/programs/composer.json b/modules/esha/programs/composer.json index 9889ab7..c701dcc 100644 --- a/modules/esha/programs/composer.json +++ b/modules/esha/programs/composer.json @@ -1,7 +1,7 @@ { "name": "drupal/programs", "type": "drupal-module", - "description": "Module for Content Type Programs Offered", + "description": "Module for Content Type programs_offered", "keywords": ["Drupal"], "license": "GPL-2.0+", "homepage": "https://www.drupal.org/project/programs", diff --git a/modules/esha/programs/config/install/views.view.programs_offered_.yml b/modules/esha/programs/config/install/views.view.programs_offered_.yml new file mode 100644 index 0000000..0ab632d --- /dev/null +++ b/modules/esha/programs/config/install/views.view.programs_offered_.yml @@ -0,0 +1,191 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.full + - node.type.p + module: + - node + - user +id: programs_offered_ +label: 'Programs offered' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: default + row: + type: 'entity:node' + options: + view_mode: full + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + label: '' + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + p: p + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Programs offered' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: programs-offered + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/modules/esha/programs/programs.info.yml b/modules/esha/programs/programs.info.yml index 284cbaa..850830f 100644 --- a/modules/esha/programs/programs.info.yml +++ b/modules/esha/programs/programs.info.yml @@ -1,6 +1,6 @@ name: 'programs' type: module -description: 'Module for Content Type Programs Offered' +description: 'Module for Content Type programs_offered' core: 8.x package: 'Custom' dependencies: diff --git a/modules/esha/programs/templates/programs.html.twig b/modules/esha/programs/templates/programs.html.twig deleted file mode 100644 index 91e43c8..0000000 --- a/modules/esha/programs/templates/programs.html.twig +++ /dev/null @@ -1 +0,0 @@ -<!-- Add you custom twig html here -->
\ No newline at end of file diff --git a/modules/esha/sig/config/install/core.entity_view_mode.node.teaser.yml b/modules/esha/sig/config/install/core.entity_view_mode.node.teaser.yml deleted file mode 100644 index 138bd3c..0000000 --- a/modules/esha/sig/config/install/core.entity_view_mode.node.teaser.yml +++ /dev/null @@ -1,15 +0,0 @@ -uuid: eae4e8eb-df75-49ff-b350-c4bd59679b36 -langcode: en -status: true -dependencies: - module: - - node - enforced: - module: - - sig -_core: - default_config_hash: Mz9qWr1kUYK0mjRAGDsr5XS6PvtZ24en_7ndt-pyWe4 -id: node.teaser -label: Teaser -targetEntityType: node -cache: true diff --git a/modules/esha/sig/config/install/node.type.fac_page.yml b/modules/esha/sig/config/install/node.type.fac_page.yml deleted file mode 100644 index 5fd2e1e..0000000 --- a/modules/esha/sig/config/install/node.type.fac_page.yml +++ /dev/null @@ -1,26 +0,0 @@ -uuid: b7471e78-83f0-4359-9512-d4a8f02c2218 -langcode: en -status: true -dependencies: - enforced: - module: - - acadmix_faculty - module: - - menu_ui - enforced: - module: - - sig -third_party_settings: - menu_ui: - available_menus: - - main - parent: 'main:' -_core: - default_config_hash: yZnGgm-oTEuH3Qz8VcW49f94qFn-pYOYZdrX601an0U -name: 'Faculty Page' -type: fac_page -description: 'Content template for opening Faculty Page' -help: '' -new_revision: true -preview_mode: 1 -display_submitted: false diff --git a/modules/esha/sig/config/install/views.view.sig.yml b/modules/esha/sig/config/install/views.view.sig.yml new file mode 100644 index 0000000..dfcfa11 --- /dev/null +++ b/modules/esha/sig/config/install/views.view.sig.yml @@ -0,0 +1,289 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_faculty_head + - field.storage.node.field_sig_members + - node.type.special_interest_groups + module: + - node + - user +id: sig +label: SIG +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: table + row: + type: fields + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + label: Title + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + field_faculty_head: + id: field_faculty_head + table: node__field_faculty_head + field: field_faculty_head + relationship: none + group_type: group + admin_label: '' + label: 'Faculty Head' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: true + group_column: target_id + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + field_sig_members: + id: field_sig_members + table: node__field_sig_members + field: field_sig_members + plugin_id: field + filters: + status: + id: status + table: node_field_data + field: status + relationship: none + group_type: group + admin_label: '' + operator: '=' + value: '1' + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + plugin_id: boolean + entity_type: node + entity_field: status + type: + id: type + table: node_field_data + field: type + value: + special_interest_groups: special_interest_groups + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: SIG + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_faculty_head' + - 'config:field.storage.node.field_sig_members' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: sig + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_faculty_head' + - 'config:field.storage.node.field_sig_members' diff --git a/modules/esha/sig/sig.info.yml b/modules/esha/sig/sig.info.yml index 94c6b38..386ebed 100644 --- a/modules/esha/sig/sig.info.yml +++ b/modules/esha/sig/sig.info.yml @@ -8,3 +8,4 @@ dependencies: - drupal:node - drupal:user - drupal:menu_ui + - acadmix_faculty:acadmix_faculty
\ No newline at end of file diff --git a/modules/esha/sig/templates/sig.html.twig b/modules/esha/sig/templates/sig.html.twig deleted file mode 100644 index 91e43c8..0000000 --- a/modules/esha/sig/templates/sig.html.twig +++ /dev/null @@ -1 +0,0 @@ -<!-- Add you custom twig html here -->
\ No newline at end of file diff --git a/modules/fahad/academic_calendar_content/config/install/migrate_plus.migration.academic_calendar.yml b/modules/fahad/academic_calendar_content/config/install/migrate_plus.migration.academic_calendar.yml new file mode 100644 index 0000000..861da64 --- /dev/null +++ b/modules/fahad/academic_calendar_content/config/install/migrate_plus.migration.academic_calendar.yml @@ -0,0 +1,51 @@ +langcode: en +status: true +dependencies: { } +id: academic_calendar +class: null +field_plugin_method: null +cck_plugin_method: null +migration_tags: null +migration_group: null +label: 'Custom Content migration from CSV for Academic Calendar' +source: + plugin: csv + path: /var/www/html/project/docroot/calendar.csv + header_row_count: 1 + keys: + - id + constants: + file_source: /var/www/html/project/docroot/fac_images + file_dest: 'public://fac_images/' +process: + type: + plugin: default_value + default_value: academic_calendar_content + source_path_two: + - + plugin: skip_on_empty + method: process + source: file + - + plugin: concat + delimiter: / + source: + - constants/file_source + - file + title: title + body: body + field_calender_file: + plugin: file_import + source: '@source_path_two' + destination: constants/file_dest + field_calender_type: + - + plugin: entity_lookup + entity_type: taxonomy_term + bundle: academic_calender + source: type +destination: + plugin: 'entity:node' +migration_dependencies: + required: { } + optional: { } diff --git a/modules/fahad/academic_calendar_content/config/install/views.view.academic_calendar.yml b/modules/fahad/academic_calendar_content/config/install/views.view.academic_calendar.yml new file mode 100644 index 0000000..e5dd8d0 --- /dev/null +++ b/modules/fahad/academic_calendar_content/config/install/views.view.academic_calendar.yml @@ -0,0 +1,202 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.full + - node.type.academic_calendar_content + - system.menu.main + module: + - node + - user +id: academic_calendar +label: 'Academic Calendar' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: default + row: + type: 'entity:node' + options: + relationship: none + view_mode: full + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + label: '' + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + academic_calendar_content: academic_calendar_content + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Academic Calendar' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: academic-calendar + menu: + type: normal + title: Calendar + description: '' + expanded: true + parent: 'menu_link_content:f22943a5-ddf8-4836-9e21-c522d862b8f5' + weight: 0 + context: '0' + menu_name: main + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/modules/fahad/bog_meetings/config/install/migrate_plus.migration.bog_meetings.yml b/modules/fahad/bog_meetings/config/install/migrate_plus.migration.bog_meetings.yml new file mode 100644 index 0000000..34490ce --- /dev/null +++ b/modules/fahad/bog_meetings/config/install/migrate_plus.migration.bog_meetings.yml @@ -0,0 +1,53 @@ +langcode: en +status: true +dependencies: { } +id: bog_meetings +class: null +field_plugin_method: null +cck_plugin_method: null +migration_tags: null +migration_group: null +label: 'Bog Meetings' +source: + plugin: csv + path: /var/www/html/project/docroot/bog_meetings.csv + header_row_count: 1 + keys: + - id + constants: + file_source: /var/www/html/project/docroot/fac_images + file_dest: 'public://fac_images/' +process: + type: + plugin: default_value + default_value: bog_meetings + source_path: + - + plugin: skip_on_empty + method: process + source: bog_file + - + plugin: concat + delimiter: / + source: + - constants/file_source + - bog_file + title: title + body: body + field_bog_date_time: + - + plugin: format_date + from_format: 'd/m/Y H:i:s' + to_format: 'Y-m-d\TH:i:s' + from_timezone: Asia/Kolkata + to_timezone: UTC + source: bog_date_time + field_bog_file: + plugin: file_import + source: '@source_path' + destination: constants/file_dest +destination: + plugin: 'entity:node' +migration_dependencies: + required: { } + optional: { } diff --git a/modules/fahad/bog_meetings/config/install/views.view.bog_meetings.yml b/modules/fahad/bog_meetings/config/install/views.view.bog_meetings.yml new file mode 100644 index 0000000..46fc123 --- /dev/null +++ b/modules/fahad/bog_meetings/config/install/views.view.bog_meetings.yml @@ -0,0 +1,201 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - node.type.bog_meetings + - system.menu.main + module: + - node + - user +id: bog_meetings +label: 'Bog Meetings' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: default + row: + type: 'entity:node' + options: + view_mode: teaser + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + label: '' + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + bog_meetings: bog_meetings + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Bog Meetings' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: bog-meetings + menu: + type: normal + title: 'Bog Meet' + description: '' + expanded: false + parent: 'menu_link_content:feea89d0-7c4d-492d-bc5e-42ae502ecc4b' + weight: 0 + context: '0' + menu_name: main + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/modules/fahad/clubs/config/install/migrate_plus.migration.clubs.yml b/modules/fahad/clubs/config/install/migrate_plus.migration.clubs.yml new file mode 100644 index 0000000..90bec4a --- /dev/null +++ b/modules/fahad/clubs/config/install/migrate_plus.migration.clubs.yml @@ -0,0 +1,47 @@ +langcode: en +status: true +dependencies: { } +id: clubs +class: null +field_plugin_method: null +cck_plugin_method: null +migration_tags: null +migration_group: null +label: 'Custom Content migration from CSV for Clubs' +source: + plugin: csv + path: /var/www/html/project/docroot/test_migration_trail.csv + header_row_count: 1 + keys: + - id +process: + type: + plugin: default_value + default_value: clubs + title: title + body: body + field_class: class + field_student_volunteer: student_volunteer + field_club_category: + - + plugin: entity_lookup + entity_type: taxonomy_term + bundle: club_category + source: category + field_faculty_incharge: + - + plugin: entity_lookup + entity_type: node + bundle: fac_page + source: faculty_incharge + field_club_department: + - + plugin: entity_lookup + entity_type: node + bundle: department + source: department +destination: + plugin: 'entity:node' +migration_dependencies: + required: { } + optional: { } diff --git a/modules/fahad/clubs/config/install/views.view.clubs.yml b/modules/fahad/clubs/config/install/views.view.clubs.yml new file mode 100644 index 0000000..ecef89d --- /dev/null +++ b/modules/fahad/clubs/config/install/views.view.clubs.yml @@ -0,0 +1,201 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.full + - node.type.clubs + - system.menu.main + module: + - node + - user +id: clubs +label: Clubs +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: default + row: + type: 'entity:node' + options: + view_mode: full + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + label: '' + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + clubs: clubs + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: Clubs + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: clubs + menu: + type: normal + title: Clubs + description: 'IIITT Clubs' + expanded: false + parent: '' + weight: -47 + context: '0' + menu_name: main + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/modules/fahad/department/config/install/migrate_plus.migration.Department.yml b/modules/fahad/department/config/install/migrate_plus.migration.Department.yml new file mode 100644 index 0000000..f5c0f4e --- /dev/null +++ b/modules/fahad/department/config/install/migrate_plus.migration.Department.yml @@ -0,0 +1,28 @@ + +langcode: en +status: true +dependencies: { } +id: Department +class: null +field_plugin_method: null +cck_plugin_method: null +migration_tags: null +migration_group: null +label: Deaprtment +source: + plugin: csv + path: /var/www/html/project/docroot/Department.csv + header_row_count: 1 + keys: + - id +process: + type: + plugin: default_value + default_value: department + title: title + body: body +destination: + plugin: 'entity:node' +migration_dependencies: + required: { } + optional: { } diff --git a/modules/fahad/fac_page/config/install/node.type.department.yml b/modules/fahad/department/config/install/node.type.department.yml index 51a955e..51a955e 100644 --- a/modules/fahad/fac_page/config/install/node.type.department.yml +++ b/modules/fahad/department/config/install/node.type.department.yml diff --git a/modules/fahad/department/config/install/views.view.department.yml b/modules/fahad/department/config/install/views.view.department.yml new file mode 100644 index 0000000..5dc7192 --- /dev/null +++ b/modules/fahad/department/config/install/views.view.department.yml @@ -0,0 +1,201 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - node.type.department + - system.menu.main + module: + - node + - user +id: department +label: Department +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: default + row: + type: 'entity:node' + options: + view_mode: teaser + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + label: '' + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + department: department + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: Department + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: department + menu: + type: normal + title: Departments + description: '' + expanded: false + parent: 'menu_link_content:f22943a5-ddf8-4836-9e21-c522d862b8f5' + weight: 0 + context: '0' + menu_name: main + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/modules/fahad/fac_page/config/install/migrate_plus.migration.FACULTY MIGRATIONS.yml b/modules/fahad/fac_page/config/install/migrate_plus.migration.FACULTY MIGRATIONS.yml new file mode 100644 index 0000000..82de622 --- /dev/null +++ b/modules/fahad/fac_page/config/install/migrate_plus.migration.FACULTY MIGRATIONS.yml @@ -0,0 +1,52 @@ +langcode: en +status: true +dependencies: { } +id: 'FACULTY MIGRATIONS' +class: null +field_plugin_method: null +cck_plugin_method: null +migration_tags: null +migration_group: null +label: 'Custom Content migration from CSV faculty' +source: + plugin: csv + path: /var/www/html/project/docroot/faculty.csv + header_row_count: 1 + keys: + - id + constants: + file_source: /var/www/html/project/docroot/fac_images + file_dest: 'public://fac_images/' +process: + type: + plugin: default_value + default_value: fac_page + source_path: + - + plugin: skip_on_empty + method: process + source: phuto + - + plugin: concat + delimiter: / + source: + - constants/file_source + - phuto + title: title + field_email_new: email + field_full_name: name + field_faculty_photo: + plugin: file_import + source: '@source_path' + destination: constants/file_dest + field_department: + - + plugin: entity_lookup + entity_type: node + bundle: department + source: entity_ref +destination: + plugin: 'entity:node' +migration_dependencies: + required: { } + optional: { } diff --git a/modules/fahad/fac_page/config/install/views.view.people.yml b/modules/fahad/fac_page/config/install/views.view.people.yml new file mode 100644 index 0000000..7fadad1 --- /dev/null +++ b/modules/fahad/fac_page/config/install/views.view.people.yml @@ -0,0 +1,201 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.full + - node.type.fac_page + - system.menu.main + module: + - node + - user +id: people +label: People +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: default + row: + type: 'entity:node' + options: + view_mode: full + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + label: '' + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + fac_page: fac_page + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: People + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: people + menu: + type: normal + title: People + description: 'Faculty and Staff' + expanded: true + parent: '' + weight: -37 + context: '0' + menu_name: main + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/modules/fahad/facility/config/install/migrate_plus.migration.facilities.yml b/modules/fahad/facility/config/install/migrate_plus.migration.facilities.yml new file mode 100644 index 0000000..37ea4de --- /dev/null +++ b/modules/fahad/facility/config/install/migrate_plus.migration.facilities.yml @@ -0,0 +1,46 @@ +langcode: en +status: true +dependencies: { } +id: facilities +class: null +field_plugin_method: null +cck_plugin_method: null +migration_tags: null +migration_group: null +label: 'Custom Content migration from CSV Facility' +source: + plugin: csv + path: /var/www/html/project/docroot/facility.csv + header_row_count: 1 + keys: + - id + constants: + file_source: /var/www/html/project/docroot/fac_images + file_dest: 'public://fac_images/' +process: + type: + plugin: default_value + default_value: facility + source_path: + - + plugin: skip_on_empty + method: process + source: phuto + - + plugin: concat + delimiter: / + source: + - constants/file_source + - phuto + title: title + body: body + field_facility_: email + field_facility_image: + plugin: file_import + source: '@source_path' + destination: constants/file_dest +destination: + plugin: 'entity:node' +migration_dependencies: + required: { } + optional: { } diff --git a/modules/fahad/facility/config/install/views.view.facilities.yml b/modules/fahad/facility/config/install/views.view.facilities.yml new file mode 100644 index 0000000..3049f64 --- /dev/null +++ b/modules/fahad/facility/config/install/views.view.facilities.yml @@ -0,0 +1,212 @@ +langcode: en +status: true +dependencies: + config: + - node.type.facility + - system.menu.main + module: + - node + - user + - views_bootstrap +id: facilities +label: Facilities +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: views_bootstrap_grid + options: + row_class: '' + default_row_class: true + uses_fields: false + alignment: horizontal + columns: '2' + col_xs: col-xs-6 + col_sm: col-sm-6 + col_md: col-md-6 + col_lg: col-lg-6 + row: + type: 'entity:node' + options: + relationship: none + view_mode: default + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + label: '' + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + facility: facility + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: Facilities + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: facilities + menu: + type: normal + title: Facilities + description: '' + expanded: true + parent: '' + weight: -38 + context: '0' + menu_name: main + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/modules/fahad/faq/config/install/migrate_plus.migration.faqs.yml b/modules/fahad/faq/config/install/migrate_plus.migration.faqs.yml new file mode 100644 index 0000000..5439881 --- /dev/null +++ b/modules/fahad/faq/config/install/migrate_plus.migration.faqs.yml @@ -0,0 +1,27 @@ +langcode: en +status: true +dependencies: { } +id: faqs +class: null +field_plugin_method: null +cck_plugin_method: null +migration_tags: null +migration_group: null +label: 'Custom Content migration from CSV for FAQS' +source: + plugin: csv + path: /var/www/html/project/docroot/FAQ.csv + header_row_count: 1 + keys: + - id +process: + type: + plugin: default_value + default_value: faq + title: title + body: body +destination: + plugin: 'entity:node' +migration_dependencies: + required: { } + optional: { } diff --git a/modules/fahad/faq/config/install/views.view.faqs.yml b/modules/fahad/faq/config/install/views.view.faqs.yml new file mode 100644 index 0000000..a138da1 --- /dev/null +++ b/modules/fahad/faq/config/install/views.view.faqs.yml @@ -0,0 +1,201 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.full + - node.type.faq + - system.menu.main + module: + - node + - user +id: faqs +label: FAQs +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: default + row: + type: 'entity:node' + options: + view_mode: full + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + label: '' + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + faq: faq + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: FAQs + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: faqs + menu: + type: normal + title: Faqs + description: '' + expanded: false + parent: 'menu_link_content:f22943a5-ddf8-4836-9e21-c522d862b8f5' + weight: 0 + context: '0' + menu_name: main + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/modules/fahad/festivals/config/install/migrate_plus.migration.festivals.yml b/modules/fahad/festivals/config/install/migrate_plus.migration.festivals.yml new file mode 100644 index 0000000..0493781 --- /dev/null +++ b/modules/fahad/festivals/config/install/migrate_plus.migration.festivals.yml @@ -0,0 +1,61 @@ +langcode: en +status: true +dependencies: { } +id: festivals +class: null +field_plugin_method: null +cck_plugin_method: null +migration_tags: null +migration_group: null +label: 'Custom Content migration from CSV FESTIVALS' +source: + plugin: csv + path: /var/www/html/project/docroot/festivals.csv + header_row_count: 1 + keys: + - id + constants: + file_source: /var/www/html/project/docroot/fac_images + file_dest: 'public://fac_images/' +process: + type: + plugin: default_value + default_value: festivals + source_path: + - + plugin: skip_on_empty + method: process + source: phuto + - + plugin: concat + delimiter: / + source: + - constants/file_source + - phuto + source_path_two: + - + plugin: skip_on_empty + method: process + source: file + - + plugin: concat + delimiter: / + source: + - constants/file_source + - file + title: title + body: body + field_fastival_link: link + field_festival_image: + plugin: file_import + source: '@source_path' + destination: constants/file_dest + field_festival_file: + plugin: file_import + source: '@source_path_two' + destination: constants/file_dest +destination: + plugin: 'entity:node' +migration_dependencies: + required: { } + optional: { } diff --git a/modules/fahad/festivals/config/install/views.view.festivals.yml b/modules/fahad/festivals/config/install/views.view.festivals.yml new file mode 100644 index 0000000..0d2e235 --- /dev/null +++ b/modules/fahad/festivals/config/install/views.view.festivals.yml @@ -0,0 +1,197 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.full + - node.type.festivals + - system.menu.main + module: + - node + - user +id: festivals +label: Festivals +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: default + row: + type: 'entity:node' + options: + view_mode: full + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + label: '' + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + festivals: festivals + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: Festivals + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: festivals + menu: + type: normal + title: Festivals + menu_name: main + weight: -44 + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/modules/fahad/industry_partners/config/install/migrate_plus.migration.industry_partners.yml b/modules/fahad/industry_partners/config/install/migrate_plus.migration.industry_partners.yml new file mode 100644 index 0000000..a578d3c --- /dev/null +++ b/modules/fahad/industry_partners/config/install/migrate_plus.migration.industry_partners.yml @@ -0,0 +1,46 @@ +langcode: en +status: true +dependencies: { } +id: industry_partners +class: null +field_plugin_method: null +cck_plugin_method: null +migration_tags: null +migration_group: null +label: 'Custom Content migration from CSV Industry Partners' +source: + plugin: csv + path: /var/www/html/project/docroot/industry.csv + header_row_count: 1 + keys: + - id + constants: + file_source: /var/www/html/project/docroot/fac_images + file_dest: 'public://fac_images/' +process: + type: + plugin: default_value + default_value: industry_partners + source_path: + - + plugin: skip_on_empty + method: process + source: phuto + - + plugin: concat + delimiter: / + source: + - constants/file_source + - phuto + title: title + body: body + field_company_website: link + field_company_logo: + plugin: file_import + source: '@source_path' + destination: constants/file_dest +destination: + plugin: 'entity:node' +migration_dependencies: + required: { } + optional: { } diff --git a/modules/fahad/industry_partners/config/install/views.view.industry_partners_view.yml b/modules/fahad/industry_partners/config/install/views.view.industry_partners_view.yml new file mode 100644 index 0000000..4d544e4 --- /dev/null +++ b/modules/fahad/industry_partners/config/install/views.view.industry_partners_view.yml @@ -0,0 +1,212 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.full + - node.type.industry_partners + - system.menu.main + module: + - node + - user + - views_bootstrap +id: industry_partners_view +label: 'Industry Partners' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: views_bootstrap_grid + options: + row_class: '' + default_row_class: true + uses_fields: false + alignment: horizontal + columns: '2' + col_xs: col-xs-6 + col_sm: col-sm-6 + col_md: col-md-6 + col_lg: col-lg-6 + row: + type: 'entity:node' + options: + view_mode: full + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + label: '' + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + industry_partners: industry_partners + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Industry Partners' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: industry-partners + menu: + type: normal + title: 'Industry Partners' + description: '' + expanded: false + parent: 'menu_link_content:feea89d0-7c4d-492d-bc5e-42ae502ecc4b' + weight: 0 + context: '0' + menu_name: main + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/modules/fahad/notification/config/install/migrate_plus.migration.notifications.yml b/modules/fahad/notification/config/install/migrate_plus.migration.notifications.yml new file mode 100644 index 0000000..9b2ff05 --- /dev/null +++ b/modules/fahad/notification/config/install/migrate_plus.migration.notifications.yml @@ -0,0 +1,59 @@ +langcode: en +status: true +dependencies: { } +id: notifications +class: null +field_plugin_method: null +cck_plugin_method: null +migration_tags: null +migration_group: null +label: 'Custom Content migration from CSV for Notifications' +source: + plugin: csv + path: /var/www/html/project/docroot/notification.csv + header_row_count: 1 + keys: + - id + constants: + file_source: /var/www/html/project/docroot/fac_images + file_dest: 'public://fac_images/' +process: + type: + plugin: default_value + default_value: notification + source_path_two: + - + plugin: skip_on_empty + method: process + source: file + - + plugin: concat + delimiter: / + source: + - constants/file_source + - file + title: title + body: body + field_notification_file: + plugin: file_import + source: '@source_path_two' + destination: constants/file_dest + field_notitfication_category: + - + plugin: entity_lookup + entity_type: taxonomy_term + bundle: notification_category + source: category + field_notification_date: + - + plugin: format_date + from_format: 'd/m/Y H:i:s' + to_format: 'Y-m-d\TH:i:s' + from_timezone: Asia/Kolkata + to_timezone: UTC + source: date +destination: + plugin: 'entity:node' +migration_dependencies: + required: { } + optional: { } diff --git a/modules/fahad/notification/config/install/views.view.notifications.yml b/modules/fahad/notification/config/install/views.view.notifications.yml new file mode 100644 index 0000000..1b9e631 --- /dev/null +++ b/modules/fahad/notification/config/install/views.view.notifications.yml @@ -0,0 +1,197 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - node.type.notification + - system.menu.main + module: + - node + - user +id: notifications +label: Notifications +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: default + row: + type: 'entity:node' + options: + view_mode: teaser + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + label: '' + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + notification: notification + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: Notifications + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: notifications + menu: + type: normal + title: Notifications + menu_name: main + weight: -42 + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/modules/fahad/staff/config/install/migrate_plus.migration.staff.yml b/modules/fahad/staff/config/install/migrate_plus.migration.staff.yml new file mode 100644 index 0000000..64c31e5 --- /dev/null +++ b/modules/fahad/staff/config/install/migrate_plus.migration.staff.yml @@ -0,0 +1,48 @@ +uuid: 636c412b-2d83-448e-be13-107ea9abbaaf +langcode: en +status: true +dependencies: { } +id: staff +class: null +field_plugin_method: null +cck_plugin_method: null +migration_tags: null +migration_group: null +label: 'Custom Content migration from CSV Staff' +source: + plugin: csv + path: /var/www/html/project/docroot/staff.csv + header_row_count: 1 + keys: + - id + constants: + file_source: /var/www/html/project/docroot/fac_images + file_dest: 'public://fac_images/' +process: + type: + plugin: default_value + default_value: staff + source_path: + - + plugin: skip_on_empty + method: process + source: phuto + - + plugin: concat + delimiter: / + source: + - constants/file_source + - phuto + title: title + body: body + field_staff_email: email + field_designation: designation + field_staff_image: + plugin: file_import + source: '@source_path' + destination: constants/file_dest +destination: + plugin: 'entity:node' +migration_dependencies: + required: { } + optional: { } diff --git a/modules/fahad/staff/config/install/views.view.staff.yml b/modules/fahad/staff/config/install/views.view.staff.yml new file mode 100644 index 0000000..577f945 --- /dev/null +++ b/modules/fahad/staff/config/install/views.view.staff.yml @@ -0,0 +1,201 @@ +langcode: en +status: true +dependencies: + config: + - node.type.staff + - system.menu.main + module: + - node + - user +id: staff +label: Staff +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: default + row: + type: 'entity:node' + options: + relationship: none + view_mode: default + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + label: '' + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + staff: staff + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: Staff + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: staff + menu: + type: normal + title: Staff + description: '' + expanded: false + parent: 'views_view:views.people.page_1' + weight: -50 + context: '0' + menu_name: main + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/modules/kalpesh/achivements/achivements.info.yml b/modules/kalpesh/achivements/achivements.info.yml new file mode 100644 index 0000000..39762be --- /dev/null +++ b/modules/kalpesh/achivements/achivements.info.yml @@ -0,0 +1,16 @@ +name: Achivements +type: module +description: 'This module store student achivements' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:file + - drupal:image + - drupal:path + - drupal:text + - ds:ds + - drupal:user + - drupal:node + + diff --git a/modules/kalpesh/achivements/achivements.install b/modules/kalpesh/achivements/achivements.install new file mode 100644 index 0000000..9ea9eb6 --- /dev/null +++ b/modules/kalpesh/achivements/achivements.install @@ -0,0 +1,26 @@ + +<?php +/** +* Implements hook_uninstall(). +*/ +function achivements_uninstall() { //<-- replace “welcome” with your module machine name + // Load services. + $queryFactory = \Drupal::service('entity.query'); + $nodeStorage = \Drupal::entityManager()->getStorage('node'); + + + + // Query all entity. + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + ->condition('type', 'achivements'); + $nids = $query->execute(); + + + + // Delete entities. + if (!empty($nids)) { + $entities = $nodeStorage->loadMultiple($nids); + $nodeStorage->delete($entities); + } +} diff --git a/modules/kalpesh/achivements/achivements.module b/modules/kalpesh/achivements/achivements.module new file mode 100644 index 0000000..0a48707 --- /dev/null +++ b/modules/kalpesh/achivements/achivements.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains achivements.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function achivements_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the achivements module. + case 'help.page.achivements': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('This module store student achivements') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function achivements_theme() { + return [ + 'achivements' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/achivements/composer.json b/modules/kalpesh/achivements/composer.json new file mode 100644 index 0000000..dc44524 --- /dev/null +++ b/modules/kalpesh/achivements/composer.json @@ -0,0 +1,13 @@ +{ + "name": "achivements", + "type": "drupal-module", + "description": "This module store student achivements", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/achivements", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/achivements", + "source": "http://cgit.drupalcode.org/achivements", + }, +} diff --git a/modules/kalpesh/achivements/config/install/core.base_field_override.node.achivements.promote.yml b/modules/kalpesh/achivements/config/install/core.base_field_override.node.achivements.promote.yml new file mode 100644 index 0000000..6e1888f --- /dev/null +++ b/modules/kalpesh/achivements/config/install/core.base_field_override.node.achivements.promote.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - node.type.achivements + enforced: + module: + - achivements +id: node.achivements.promote +field_name: promote +entity_type: node +bundle: achivements +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/modules/kalpesh/achivements/config/install/core.base_field_override.node.achivements.title.yml b/modules/kalpesh/achivements/config/install/core.base_field_override.node.achivements.title.yml new file mode 100644 index 0000000..4f4a69b --- /dev/null +++ b/modules/kalpesh/achivements/config/install/core.base_field_override.node.achivements.title.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + config: + - node.type.achivements + enforced: + module: + - achivements +id: node.achivements.title +field_name: title +entity_type: node +bundle: achivements +label: Title +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/achivements/config/install/core.entity_form_display.node.achivements.default.yml b/modules/kalpesh/achivements/config/install/core.entity_form_display.node.achivements.default.yml new file mode 100644 index 0000000..40a3a03 --- /dev/null +++ b/modules/kalpesh/achivements/config/install/core.entity_form_display.node.achivements.default.yml @@ -0,0 +1,113 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.achivements.body + - field.field.node.achivements.field_acadmic_year + - field.field.node.achivements.field_achivement_files + - field.field.node.achivements.field_achivement_image + - image.style.thumbnail + - node.type.achivements + module: + - file + - image + - path + - text + enforced: + module: + - achivements +id: node.achivements.default +targetEntityType: node +bundle: achivements +mode: default +content: + body: + type: text_textarea_with_summary + weight: 10 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + region: content + created: + type: datetime_timestamp + weight: 5 + region: content + settings: { } + third_party_settings: { } + field_acadmic_year: + weight: 0 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_achivement_files: + weight: 27 + settings: + progress_indicator: throbber + third_party_settings: { } + type: file_generic + region: content + field_achivement_image: + weight: 26 + settings: + progress_indicator: throbber + preview_image_style: thumbnail + third_party_settings: { } + type: image_image + region: content + langcode: + type: language_select + weight: 3 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 8 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 6 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 9 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 7 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: 1 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 4 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { } diff --git a/modules/kalpesh/achivements/config/install/core.entity_view_display.node.achivements.default.yml b/modules/kalpesh/achivements/config/install/core.entity_view_display.node.achivements.default.yml new file mode 100644 index 0000000..934d88f --- /dev/null +++ b/modules/kalpesh/achivements/config/install/core.entity_view_display.node.achivements.default.yml @@ -0,0 +1,167 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.achivements.body + - field.field.node.achivements.field_acadmic_year + - field.field.node.achivements.field_achivement_files + - field.field.node.achivements.field_achivement_image + - image.style.achievament_image_style + - node.type.achivements + module: + - ds + - file + - image + - text + - user + enforced: + module: + - achivements +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - field_acadmic_year + - body + - field_achivement_image + - field_achivement_files +id: node.achivements.default +targetEntityType: node +bundle: achivements +mode: default +content: + body: + label: hidden + type: text_default + weight: 102 + settings: { } + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw-el: 'div ' + lbw-cl: col-10 + lbw-at: '' + ow: true + ow-el: div + ow-cl: ' mt-20 col-sm-12' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi-el: '' + fi-cl: '' + fi-at: '' + suffix: '' + lbw: false + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi: false + fi-def-at: false + region: ds_content + field_acadmic_year: + weight: 101 + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: 'Acadmic year' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold ' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'mt-20 mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: col-sm-10 + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + field_achivement_files: + weight: 104 + label: above + settings: + use_description_as_link_text: true + third_party_settings: { } + type: file_default + region: ds_content + field_achivement_image: + weight: 103 + label: above + settings: + image_style: achievament_image_style + image_link: '' + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw-el: '' + lbw-cl: '' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'row col-sm-4' + ow-at: '' + fis: true + fis-el: div + fis-cl: 'col-sm-4 center-block' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-4 center-block' + fi-at: '' + suffix: '' + lbw: false + lb-col: false + ow-def-at: false + ow-def-cl: false + fis-def-at: false + fi-def-at: false + type: image + region: ds_content +hidden: + langcode: true + links: true diff --git a/modules/kalpesh/achivements/config/install/core.entity_view_display.node.achivements.teaser.yml b/modules/kalpesh/achivements/config/install/core.entity_view_display.node.achivements.teaser.yml new file mode 100644 index 0000000..ffca321 --- /dev/null +++ b/modules/kalpesh/achivements/config/install/core.entity_view_display.node.achivements.teaser.yml @@ -0,0 +1,33 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.achivements.body + - node.type.achivements + module: + - text + - user + enforced: + module: + - achivements +id: node.achivements.teaser +targetEntityType: node +bundle: achivements +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + region: content + links: + weight: 100 + settings: { } + third_party_settings: { } + region: content +hidden: + langcode: true diff --git a/modules/kalpesh/achivements/config/install/field.field.node.achivements.body.yml b/modules/kalpesh/achivements/config/install/field.field.node.achivements.body.yml new file mode 100644 index 0000000..929a58c --- /dev/null +++ b/modules/kalpesh/achivements/config/install/field.field.node.achivements.body.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.achivements + module: + - text + enforced: + module: + - achivements +id: node.achivements.body +field_name: body +entity_type: node +bundle: achivements +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary diff --git a/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_acadmic_year.yml b/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_acadmic_year.yml new file mode 100644 index 0000000..86f1b99 --- /dev/null +++ b/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_acadmic_year.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_acadmic_year + - node.type.achivements + enforced: + module: + - achivements +id: node.achivements.field_acadmic_year +field_name: field_acadmic_year +entity_type: node +bundle: achivements +label: 'Acadmic year' +description: 'ex 2019-2020' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_achivement_files.yml b/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_achivement_files.yml new file mode 100644 index 0000000..4788849 --- /dev/null +++ b/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_achivement_files.yml @@ -0,0 +1,29 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_achivement_files + - node.type.achivements + module: + - file + enforced: + module: + - achivements +id: node.achivements.field_achivement_files +field_name: field_achivement_files +entity_type: node +bundle: achivements +label: Files +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: 'txt pdf' + max_filesize: '' + description_field: false + handler: 'default:file' + handler_settings: { } +field_type: file diff --git a/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_achivement_image.yml b/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_achivement_image.yml new file mode 100644 index 0000000..7203373 --- /dev/null +++ b/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_achivement_image.yml @@ -0,0 +1,40 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_achivement_image + - node.type.achivements + module: + - image + enforced: + module: + - achivements +id: node.achivements.field_achivement_image +field_name: field_achivement_image +entity_type: node +bundle: achivements +label: Image +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: 'png gif jpg jpeg' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: true + alt_field_required: false + title_field: false + title_field_required: false + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + handler: 'default:file' + handler_settings: { } +field_type: image diff --git a/modules/kalpesh/achivements/config/install/field.storage.node.field_acadmic_year.yml b/modules/kalpesh/achivements/config/install/field.storage.node.field_acadmic_year.yml new file mode 100644 index 0000000..b1c9b8d --- /dev/null +++ b/modules/kalpesh/achivements/config/install/field.storage.node.field_acadmic_year.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - achivements +id: node.field_acadmic_year +field_name: field_acadmic_year +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/achivements/config/install/field.storage.node.field_achivement_files.yml b/modules/kalpesh/achivements/config/install/field.storage.node.field_achivement_files.yml new file mode 100644 index 0000000..c5366eb --- /dev/null +++ b/modules/kalpesh/achivements/config/install/field.storage.node.field_achivement_files.yml @@ -0,0 +1,25 @@ +langcode: en +status: true +dependencies: + module: + - file + - node + enforced: + module: + - achivements +id: node.field_achivement_files +field_name: field_achivement_files +entity_type: node +type: file +settings: + display_field: false + display_default: false + uri_scheme: public + target_type: file +module: file +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/achivements/config/install/field.storage.node.field_achivement_image.yml b/modules/kalpesh/achivements/config/install/field.storage.node.field_achivement_image.yml new file mode 100644 index 0000000..5b33c7d --- /dev/null +++ b/modules/kalpesh/achivements/config/install/field.storage.node.field_achivement_image.yml @@ -0,0 +1,32 @@ +langcode: en +status: true +dependencies: + module: + - file + - image + - node + enforced: + module: + - achivements +id: node.field_achivement_image +field_name: field_achivement_image +entity_type: node +type: image +settings: + uri_scheme: public + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + target_type: file + display_field: false + display_default: false +module: image +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/achivements/config/install/image.style.achievament_image_style.yml b/modules/kalpesh/achivements/config/install/image.style.achievament_image_style.yml new file mode 100644 index 0000000..af08183 --- /dev/null +++ b/modules/kalpesh/achivements/config/install/image.style.achievament_image_style.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + enforced: + module: + - achivements +name: achievament_image_style +label: 'Achievament image style' +effects: + a350664a-521a-4ffd-be52-84328a7e9a62: + uuid: a350664a-521a-4ffd-be52-84328a7e9a62 + id: image_scale_and_crop + weight: 1 + data: + width: 400 + height: 300 + anchor: center-center diff --git a/modules/kalpesh/achivements/config/install/node.type.achivements.yml b/modules/kalpesh/achivements/config/install/node.type.achivements.yml new file mode 100644 index 0000000..ae3b842 --- /dev/null +++ b/modules/kalpesh/achivements/config/install/node.type.achivements.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui + enforced: + module: + - achivements +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: Achivements +type: achivements +description: 'Achivements details of department' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/achivements/config/install/views.view.achivements.yml b/modules/kalpesh/achivements/config/install/views.view.achivements.yml new file mode 100644 index 0000000..c9b9b5e --- /dev/null +++ b/modules/kalpesh/achivements/config/install/views.view.achivements.yml @@ -0,0 +1,211 @@ +langcode: en +status: true +dependencies: + config: + - node.type.achivements + - system.menu.main + module: + - node + - user + - views_bootstrap + enforced: + module: + - achivements +id: achivements +label: Achivements +module: views +description: 'students Achivements' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: views_bootstrap_list_group + options: + grouping: { } + row_class: centar + default_row_class: true + title_field: '' + row: + type: fields + options: + default_field_elements: true + inline: + title: title + field_acadmic_year: field_acadmic_year + separator: '' + hide_empty: false + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + label: '' + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + achivements: achivements + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + field_acadmic_year_value: + id: field_acadmic_year_value + table: node__field_acadmic_year + field: field_acadmic_year_value + relationship: none + group_type: group + admin_label: '' + order: DESC + exposed: false + expose: + label: '' + plugin_id: standard + title: Achivements + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: achivements + menu: + type: normal + title: Achivements + description: '' + expanded: false + parent: '' + weight: -46 + context: '0' + menu_name: main + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/modules/kalpesh/achivements/templates/achivements.html.twig b/modules/kalpesh/achivements/templates/achivements.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/achivements/templates/achivements.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/esha/labmanual/tests/src/Functional/LoadTest.php b/modules/kalpesh/achivements/tests/src/Functional/LoadTest.php index e548812..e50c1f8 100644 --- a/modules/esha/labmanual/tests/src/Functional/LoadTest.php +++ b/modules/kalpesh/achivements/tests/src/Functional/LoadTest.php @@ -1,6 +1,6 @@ <?php -namespace Drupal\Tests\labmanual\Functional; +namespace Drupal\Tests\achivements\Functional; use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; @@ -8,7 +8,7 @@ use Drupal\Tests\BrowserTestBase; /** * Simple test to ensure that main page loads with module enabled. * - * @group labmanual + * @group achivements */ class LoadTest extends BrowserTestBase { @@ -17,7 +17,7 @@ class LoadTest extends BrowserTestBase { * * @var array */ - public static $modules = ['labmanual']; + public static $modules = ['achivements']; /** * A user with permission to administer site configuration. diff --git a/modules/kalpesh/club/club.info.yml b/modules/kalpesh/club/club.info.yml new file mode 100644 index 0000000..2dd4481 --- /dev/null +++ b/modules/kalpesh/club/club.info.yml @@ -0,0 +1,15 @@ +name: Club +type: module +description: 'My Awesome Module' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:path + - drupal:text + - ds:ds + - drupal:user + - drupal:node + - views_bootstrap:views_bootstrap + + diff --git a/modules/kalpesh/club/club.install b/modules/kalpesh/club/club.install new file mode 100644 index 0000000..c96c3a0 --- /dev/null +++ b/modules/kalpesh/club/club.install @@ -0,0 +1,26 @@ + +<?php +/** +* Implements hook_uninstall(). +*/ +function club_uninstall() { //<-- replace “welcome” with your module machine name + // Load services. + $queryFactory = \Drupal::service('entity.query'); + $nodeStorage = \Drupal::entityManager()->getStorage('node'); + + + + // Query all entity. + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + ->condition('type', 'club'); + $nids = $query->execute(); + + + + // Delete entities. + if (!empty($nids)) { + $entities = $nodeStorage->loadMultiple($nids); + $nodeStorage->delete($entities); + } +} diff --git a/modules/kalpesh/club/club.module b/modules/kalpesh/club/club.module new file mode 100644 index 0000000..152525d --- /dev/null +++ b/modules/kalpesh/club/club.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains club.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function club_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the club module. + case 'help.page.club': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('My Awesome Module') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function club_theme() { + return [ + 'club' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/club/composer.json b/modules/kalpesh/club/composer.json new file mode 100644 index 0000000..aa17c3e --- /dev/null +++ b/modules/kalpesh/club/composer.json @@ -0,0 +1,13 @@ +{ + "name": "club", + "type": "drupal-module", + "description": "My Awesome Module", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/club", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/club", + "source": "http://cgit.drupalcode.org/club", + }, +} diff --git a/modules/kalpesh/club/config/install/core.base_field_override.node.club.promote.yml b/modules/kalpesh/club/config/install/core.base_field_override.node.club.promote.yml new file mode 100644 index 0000000..c8155ed --- /dev/null +++ b/modules/kalpesh/club/config/install/core.base_field_override.node.club.promote.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - node.type.club + enforced: + module: + - club +id: node.club.promote +field_name: promote +entity_type: node +bundle: club +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/modules/kalpesh/club/config/install/core.base_field_override.node.club.title.yml b/modules/kalpesh/club/config/install/core.base_field_override.node.club.title.yml new file mode 100644 index 0000000..1a69ef1 --- /dev/null +++ b/modules/kalpesh/club/config/install/core.base_field_override.node.club.title.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + config: + - node.type.club + enforced: + module: + - club +id: node.club.title +field_name: title +entity_type: node +bundle: club +label: 'Academic Year' +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/club/config/install/core.entity_form_display.node.club.default.yml b/modules/kalpesh/club/config/install/core.entity_form_display.node.club.default.yml new file mode 100644 index 0000000..32161b8 --- /dev/null +++ b/modules/kalpesh/club/config/install/core.entity_form_display.node.club.default.yml @@ -0,0 +1,129 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.club.body + - field.field.node.club.field_committee_member + - field.field.node.club.field_president + - field.field.node.club.field_secretary + - field.field.node.club.field_treasurer + - field.field.node.club.field_vice_president + - node.type.club + module: + - path + - text + enforced: + module: + - club +id: node.club.default +targetEntityType: node +bundle: club +mode: default +content: + body: + type: text_textarea_with_summary + weight: 121 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + region: content + created: + type: datetime_timestamp + weight: 10 + region: content + settings: { } + third_party_settings: { } + field_committee_member: + weight: 126 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_president: + weight: 122 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_secretary: + weight: 124 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_treasurer: + weight: 125 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_vice_president: + weight: 123 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + langcode: + type: language_select + weight: 2 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 30 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 15 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 120 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 16 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: -5 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 5 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { } diff --git a/modules/kalpesh/club/config/install/core.entity_view_display.node.club.default.yml b/modules/kalpesh/club/config/install/core.entity_view_display.node.club.default.yml new file mode 100644 index 0000000..5f84bfb --- /dev/null +++ b/modules/kalpesh/club/config/install/core.entity_view_display.node.club.default.yml @@ -0,0 +1,231 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.club.body + - field.field.node.club.field_committee_member + - field.field.node.club.field_president + - field.field.node.club.field_secretary + - field.field.node.club.field_treasurer + - field.field.node.club.field_vice_president + - node.type.club + module: + - ds + - user + enforced: + module: + - club +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - field_president + - field_vice_president + - field_secretary + - field_treasurer + - field_committee_member +id: node.club.default +targetEntityType: node +bundle: club +mode: default +content: + field_committee_member: + weight: 106 + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: "Committee members\t" + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'mt-10 mb-10' + ow-at: '' + fis: true + fis-el: div + fis-cl: 'col-sm-10 mb-10 mt-10' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mt-10 mb-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + field_president: + weight: 102 + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: President + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: 'div ' + ow-cl: 'mt-10 mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mt-10 mb-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + field_secretary: + weight: 104 + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: Secretary + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: ' mt-10 mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mt-10 mb-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + field_treasurer: + weight: 105 + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: Treasurer + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'mt-10 mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mt-10 mb-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + field_vice_president: + weight: 103 + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: 'Vice president' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'mt-10 mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mt-10 mb-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content +hidden: + body: true + langcode: true + links: true diff --git a/modules/kalpesh/club/config/install/core.entity_view_display.node.club.teaser.yml b/modules/kalpesh/club/config/install/core.entity_view_display.node.club.teaser.yml new file mode 100644 index 0000000..db72154 --- /dev/null +++ b/modules/kalpesh/club/config/install/core.entity_view_display.node.club.teaser.yml @@ -0,0 +1,33 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.club.body + - node.type.club + module: + - text + - user + enforced: + module: + - club +id: node.club.teaser +targetEntityType: node +bundle: club +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + region: content + links: + weight: 100 + settings: { } + third_party_settings: { } + region: content +hidden: + langcode: true diff --git a/modules/kalpesh/club/config/install/field.field.node.club.body.yml b/modules/kalpesh/club/config/install/field.field.node.club.body.yml new file mode 100644 index 0000000..52ead56 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.field.node.club.body.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.club + module: + - text + enforced: + module: + - club +id: node.club.body +field_name: body +entity_type: node +bundle: club +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary diff --git a/modules/kalpesh/club/config/install/field.field.node.club.field_committee_member.yml b/modules/kalpesh/club/config/install/field.field.node.club.field_committee_member.yml new file mode 100644 index 0000000..ff47a8c --- /dev/null +++ b/modules/kalpesh/club/config/install/field.field.node.club.field_committee_member.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_committee_member + - node.type.club + enforced: + module: + - club +id: node.club.field_committee_member +field_name: field_committee_member +entity_type: node +bundle: club +label: 'Committee members' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/club/config/install/field.field.node.club.field_president.yml b/modules/kalpesh/club/config/install/field.field.node.club.field_president.yml new file mode 100644 index 0000000..e3bba6f --- /dev/null +++ b/modules/kalpesh/club/config/install/field.field.node.club.field_president.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_president + - node.type.club + enforced: + module: + - club +id: node.club.field_president +field_name: field_president +entity_type: node +bundle: club +label: President +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/club/config/install/field.field.node.club.field_secretary.yml b/modules/kalpesh/club/config/install/field.field.node.club.field_secretary.yml new file mode 100644 index 0000000..e45eb68 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.field.node.club.field_secretary.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_secretary + - node.type.club + enforced: + module: + - club +id: node.club.field_secretary +field_name: field_secretary +entity_type: node +bundle: club +label: Secretary +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/club/config/install/field.field.node.club.field_treasurer.yml b/modules/kalpesh/club/config/install/field.field.node.club.field_treasurer.yml new file mode 100644 index 0000000..99daf59 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.field.node.club.field_treasurer.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_treasurer + - node.type.club + enforced: + module: + - club +id: node.club.field_treasurer +field_name: field_treasurer +entity_type: node +bundle: club +label: Treasurer +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/club/config/install/field.field.node.club.field_vice_president.yml b/modules/kalpesh/club/config/install/field.field.node.club.field_vice_president.yml new file mode 100644 index 0000000..ba2e1bd --- /dev/null +++ b/modules/kalpesh/club/config/install/field.field.node.club.field_vice_president.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_vice_president + - node.type.club + enforced: + module: + - club +id: node.club.field_vice_president +field_name: field_vice_president +entity_type: node +bundle: club +label: 'Vice president' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/club/config/install/field.storage.node.field_committee_member.yml b/modules/kalpesh/club/config/install/field.storage.node.field_committee_member.yml new file mode 100644 index 0000000..817218e --- /dev/null +++ b/modules/kalpesh/club/config/install/field.storage.node.field_committee_member.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - club +id: node.field_committee_member +field_name: field_committee_member +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/club/config/install/field.storage.node.field_president.yml b/modules/kalpesh/club/config/install/field.storage.node.field_president.yml new file mode 100644 index 0000000..61eefa0 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.storage.node.field_president.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - club +id: node.field_president +field_name: field_president +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/club/config/install/field.storage.node.field_secretary.yml b/modules/kalpesh/club/config/install/field.storage.node.field_secretary.yml new file mode 100644 index 0000000..54ca5c5 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.storage.node.field_secretary.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - club +id: node.field_secretary +field_name: field_secretary +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/club/config/install/field.storage.node.field_treasurer.yml b/modules/kalpesh/club/config/install/field.storage.node.field_treasurer.yml new file mode 100644 index 0000000..6faa663 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.storage.node.field_treasurer.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - club +id: node.field_treasurer +field_name: field_treasurer +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/club/config/install/field.storage.node.field_vice_president.yml b/modules/kalpesh/club/config/install/field.storage.node.field_vice_president.yml new file mode 100644 index 0000000..6e725fd --- /dev/null +++ b/modules/kalpesh/club/config/install/field.storage.node.field_vice_president.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - club +id: node.field_vice_president +field_name: field_vice_president +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/club/config/install/node.type.club.yml b/modules/kalpesh/club/config/install/node.type.club.yml new file mode 100644 index 0000000..3366458 --- /dev/null +++ b/modules/kalpesh/club/config/install/node.type.club.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui + enforced: + module: + - club +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: Club +type: club +description: 'Student club committee and the activities arranged by club' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/club/config/install/views.view.club.yml b/modules/kalpesh/club/config/install/views.view.club.yml new file mode 100644 index 0000000..ce30093 --- /dev/null +++ b/modules/kalpesh/club/config/install/views.view.club.yml @@ -0,0 +1,297 @@ +langcode: en +status: true +dependencies: + config: + - node.type.club + - system.menu.main + module: + - node + - user + - views_bootstrap + enforced: + module: + - club +id: club +label: Club +module: views +description: 'About club' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: views_bootstrap_grid + options: + grouping: { } + row_class: center-block + default_row_class: true + alignment: horizontal + columns: '2' + col_xs: col-xs-6 + col_sm: col-sm-6 + col_md: col-md-6 + col_lg: col-lg-6 + row: + type: fields + options: + default_field_elements: true + inline: { } + separator: '' + hide_empty: false + fields: + nothing: + id: nothing + table: views + field: nothing + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: true + text: '<center><h3> Iteron club core commitee <h3></center>' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: false + plugin_id: custom + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: false + ellipsis: false + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: true + entity_type: node + entity_field: title + plugin_id: field + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + club: club + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Iteron Club' + header: + area: + id: area + table: views + field: area + relationship: none + group_type: group + admin_label: '' + empty: false + tokenize: false + content: + value: " <blockquote> The department has formed a student’s club named “ITERON” in the academic year 2002-2003. Activities such as seminars, workshops, industrial visits etc. are conducted by the ITERON club for the students. One of the most popular annual event conducted by ITeron club is the Technical Symposium “ITiazza”.\r\nThe student representation for the core team is in the form of President, Secretary, Treasurer and representatives from each class. This gives an opportunity to students to develop leadership and organizational skills. </blockquote>" + format: basic_html + plugin_id: text + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: club + menu: + type: normal + title: 'Iteron Club' + menu_name: main + description: '' + parent: 'menu_link_content:967e1206-74f4-466a-9ec8-62a46f7ecadb' + weight: -50 + expanded: true + enabled: true + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/modules/kalpesh/club/templates/club.html.twig b/modules/kalpesh/club/templates/club.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/club/templates/club.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/esha/sig/tests/src/Functional/LoadTest.php b/modules/kalpesh/club/tests/src/Functional/LoadTest.php index 8b87e58..e1c2530 100644 --- a/modules/esha/sig/tests/src/Functional/LoadTest.php +++ b/modules/kalpesh/club/tests/src/Functional/LoadTest.php @@ -1,6 +1,6 @@ <?php -namespace Drupal\Tests\sig\Functional; +namespace Drupal\Tests\club\Functional; use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; @@ -8,7 +8,7 @@ use Drupal\Tests\BrowserTestBase; /** * Simple test to ensure that main page loads with module enabled. * - * @group sig + * @group club */ class LoadTest extends BrowserTestBase { @@ -17,7 +17,7 @@ class LoadTest extends BrowserTestBase { * * @var array */ - public static $modules = ['sig']; + public static $modules = ['club']; /** * A user with permission to administer site configuration. diff --git a/modules/kalpesh/iteron_activities/composer.json b/modules/kalpesh/iteron_activities/composer.json new file mode 100644 index 0000000..6de3f29 --- /dev/null +++ b/modules/kalpesh/iteron_activities/composer.json @@ -0,0 +1,13 @@ +{ + "name": "iteron_activities", + "type": "drupal-module", + "description": "My Awesome Module", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/iteron_activities", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/iteron_activities", + "source": "http://cgit.drupalcode.org/iteron_activities", + }, +} diff --git a/modules/kalpesh/iteron_activities/config/install/core.base_field_override.node.iteron_activities.promote.yml b/modules/kalpesh/iteron_activities/config/install/core.base_field_override.node.iteron_activities.promote.yml new file mode 100644 index 0000000..523e418 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/core.base_field_override.node.iteron_activities.promote.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - node.type.iteron_activities + enforced: + module: + - iteron_activities +id: node.iteron_activities.promote +field_name: promote +entity_type: node +bundle: iteron_activities +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/modules/kalpesh/iteron_activities/config/install/core.base_field_override.node.iteron_activities.title.yml b/modules/kalpesh/iteron_activities/config/install/core.base_field_override.node.iteron_activities.title.yml new file mode 100644 index 0000000..40f09bb --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/core.base_field_override.node.iteron_activities.title.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + config: + - node.type.iteron_activities + enforced: + module: + - iteron_activities +id: node.iteron_activities.title +field_name: title +entity_type: node +bundle: iteron_activities +label: Topic +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/iteron_activities/config/install/core.entity_form_display.node.iteron_activities.default.yml b/modules/kalpesh/iteron_activities/config/install/core.entity_form_display.node.iteron_activities.default.yml new file mode 100644 index 0000000..372e233 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/core.entity_form_display.node.iteron_activities.default.yml @@ -0,0 +1,139 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.iteron_activities.body + - field.field.node.iteron_activities.field_activity_images + - field.field.node.iteron_activities.field_activity_report + - field.field.node.iteron_activities.field_date + - field.field.node.iteron_activities.field_nature_of_activity + - field.field.node.iteron_activities.field_remark + - field.field.node.iteron_activities.field_resource_person + - image.style.thumbnail + - node.type.iteron_activities + module: + - datetime + - file + - image + - path + - text + enforced: + module: + - iteron_activities +id: node.iteron_activities.default +targetEntityType: node +bundle: iteron_activities +mode: default +content: + body: + type: text_textarea_with_summary + weight: 11 + region: content + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + created: + type: datetime_timestamp + weight: 3 + region: content + settings: { } + third_party_settings: { } + field_activity_images: + weight: 12 + settings: + progress_indicator: throbber + preview_image_style: thumbnail + third_party_settings: { } + type: image_image + region: content + field_activity_report: + weight: 13 + settings: + progress_indicator: throbber + third_party_settings: { } + type: file_generic + region: content + field_date: + weight: 8 + settings: { } + third_party_settings: { } + type: datetime_default + region: content + field_nature_of_activity: + weight: 9 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_remark: + weight: 14 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_resource_person: + weight: 10 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + langcode: + type: language_select + weight: 1 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 6 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 4 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 7 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 5 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 2 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { } diff --git a/modules/kalpesh/iteron_activities/config/install/core.entity_view_display.node.iteron_activities.default.yml b/modules/kalpesh/iteron_activities/config/install/core.entity_view_display.node.iteron_activities.default.yml new file mode 100644 index 0000000..fb8b2ea --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/core.entity_view_display.node.iteron_activities.default.yml @@ -0,0 +1,144 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.iteron_activities.body + - field.field.node.iteron_activities.field_activity_images + - field.field.node.iteron_activities.field_activity_report + - field.field.node.iteron_activities.field_date + - field.field.node.iteron_activities.field_nature_of_activity + - field.field.node.iteron_activities.field_remark + - field.field.node.iteron_activities.field_resource_person + - node.type.iteron_activities + module: + - datetime + - ds + - file + - image + - text + - user + enforced: + module: + - iteron_activities +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - links + - field_date + - body + - field_activity_images + - field_activity_report +id: node.iteron_activities.default +targetEntityType: node +bundle: iteron_activities +mode: default +content: + body: + type: text_summary_or_trimmed + weight: 2 + region: ds_content + label: above + settings: + trim_length: 600 + third_party_settings: { } + field_activity_images: + weight: 3 + label: above + settings: + image_style: '' + image_link: '' + third_party_settings: { } + type: image + region: ds_content + field_activity_report: + weight: 4 + label: above + settings: + use_description_as_link_text: true + third_party_settings: { } + type: file_default + region: ds_content + field_date: + weight: 1 + label: above + settings: + timezone_override: '' + date_format: Y-m-d + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw-el: '' + lbw-cl: '' + lbw-at: '' + ow-el: '' + ow-cl: '' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi-el: '' + fi-cl: '' + fi-at: '' + suffix: '' + lbw: false + lb-col: false + ow: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi: false + fi-def-at: false + type: datetime_custom + region: ds_content + field_nature_of_activity: + weight: 5 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_remark: + weight: 7 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_resource_person: + weight: 6 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + links: + weight: 0 + region: ds_content + settings: { } + third_party_settings: { } +hidden: + langcode: true diff --git a/modules/kalpesh/iteron_activities/config/install/core.entity_view_display.node.iteron_activities.teaser.yml b/modules/kalpesh/iteron_activities/config/install/core.entity_view_display.node.iteron_activities.teaser.yml new file mode 100644 index 0000000..c42be16 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/core.entity_view_display.node.iteron_activities.teaser.yml @@ -0,0 +1,33 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.iteron_activities.body + - node.type.iteron_activities + module: + - text + - user + enforced: + module: + - iteron_activities +id: node.iteron_activities.teaser +targetEntityType: node +bundle: iteron_activities +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + region: content + links: + weight: 100 + settings: { } + third_party_settings: { } + region: content +hidden: + langcode: true diff --git a/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.body.yml b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.body.yml new file mode 100644 index 0000000..09c2fac --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.body.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.iteron_activities + module: + - text + enforced: + module: + - iteron_activities +id: node.iteron_activities.body +field_name: body +entity_type: node +bundle: iteron_activities +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary diff --git a/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_activity_images.yml b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_activity_images.yml new file mode 100644 index 0000000..0d0df11 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_activity_images.yml @@ -0,0 +1,40 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_activity_images + - node.type.iteron_activities + module: + - image + enforced: + module: + - iteron_activities +id: node.iteron_activities.field_activity_images +field_name: field_activity_images +entity_type: node +bundle: iteron_activities +label: 'Activity Images' +description: 'images of Activity' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: 'png gif jpg jpeg' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: true + alt_field_required: false + title_field: false + title_field_required: false + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + handler: 'default:file' + handler_settings: { } +field_type: image diff --git a/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_activity_report.yml b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_activity_report.yml new file mode 100644 index 0000000..5fbdf01 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_activity_report.yml @@ -0,0 +1,29 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_activity_report + - node.type.iteron_activities + module: + - file + enforced: + module: + - iteron_activities +id: node.iteron_activities.field_activity_report +field_name: field_activity_report +entity_type: node +bundle: iteron_activities +label: 'Activity Report' +description: 'Report of activity' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: 'txt pdf' + max_filesize: '' + description_field: false + handler: 'default:file' + handler_settings: { } +field_type: file diff --git a/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_date.yml b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_date.yml new file mode 100644 index 0000000..c96c9bf --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_date.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_date + - node.type.iteron_activities + module: + - datetime + enforced: + module: + - iteron_activities +id: node.iteron_activities.field_date +field_name: field_date +entity_type: node +bundle: iteron_activities +label: Date +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: datetime diff --git a/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_nature_of_activity.yml b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_nature_of_activity.yml new file mode 100644 index 0000000..d9e3a20 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_nature_of_activity.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_nature_of_activity + - node.type.iteron_activities + enforced: + module: + - iteron_activities +id: node.iteron_activities.field_nature_of_activity +field_name: field_nature_of_activity +entity_type: node +bundle: iteron_activities +label: 'Nature of activity' +description: 'ex meeting ,workshop ' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_remark.yml b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_remark.yml new file mode 100644 index 0000000..73ac203 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_remark.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_remark + - node.type.iteron_activities + enforced: + module: + - iteron_activities +id: node.iteron_activities.field_remark +field_name: field_remark +entity_type: node +bundle: iteron_activities +label: Remark +description: 'no of participant' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_resource_person.yml b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_resource_person.yml new file mode 100644 index 0000000..52cc375 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_resource_person.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_resource_person + - node.type.iteron_activities + enforced: + module: + - iteron_activities +id: node.iteron_activities.field_resource_person +field_name: field_resource_person +entity_type: node +bundle: iteron_activities +label: 'Resource person' +description: 'name of speaker' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_activity_images.yml b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_activity_images.yml new file mode 100644 index 0000000..b86d08a --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_activity_images.yml @@ -0,0 +1,32 @@ +langcode: en +status: true +dependencies: + module: + - file + - image + - node + enforced: + module: + - iteron_activities +id: node.field_activity_images +field_name: field_activity_images +entity_type: node +type: image +settings: + uri_scheme: public + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + target_type: file + display_field: false + display_default: false +module: image +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_activity_report.yml b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_activity_report.yml new file mode 100644 index 0000000..179af6f --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_activity_report.yml @@ -0,0 +1,25 @@ +langcode: en +status: true +dependencies: + module: + - file + - node + enforced: + module: + - iteron_activities +id: node.field_activity_report +field_name: field_activity_report +entity_type: node +type: file +settings: + display_field: false + display_default: false + uri_scheme: public + target_type: file +module: file +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_date.yml b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_date.yml new file mode 100644 index 0000000..6cc6744 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_date.yml @@ -0,0 +1,22 @@ +langcode: en +status: true +dependencies: + module: + - datetime + - node + enforced: + module: + - iteron_activities +id: node.field_date +field_name: field_date +entity_type: node +type: datetime +settings: + datetime_type: date +module: datetime +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_nature_of_activity.yml b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_nature_of_activity.yml new file mode 100644 index 0000000..b618696 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_nature_of_activity.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - iteron_activities +id: node.field_nature_of_activity +field_name: field_nature_of_activity +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_remark.yml b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_remark.yml new file mode 100644 index 0000000..2860069 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_remark.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - iteron_activities +id: node.field_remark +field_name: field_remark +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_resource_person.yml b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_resource_person.yml new file mode 100644 index 0000000..eca74ae --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_resource_person.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - iteron_activities +id: node.field_resource_person +field_name: field_resource_person +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/iteron_activities/config/install/node.type.iteron_activities.yml b/modules/kalpesh/iteron_activities/config/install/node.type.iteron_activities.yml new file mode 100644 index 0000000..96d6fda --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/node.type.iteron_activities.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui + enforced: + module: + - iteron_activities +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: 'Iteron Activities' +type: iteron_activities +description: 'activities conducted by iteron club' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/iteron_activities/config/install/views.view.activities.yml b/modules/kalpesh/iteron_activities/config/install/views.view.activities.yml new file mode 100644 index 0000000..c53f628 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/views.view.activities.yml @@ -0,0 +1,392 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - field.storage.node.field_date + - node.type.iteron_activities + - system.menu.main + module: + - datetime + - node + - text + - user + - views_bootstrap + enforced: + module: + - iteron_activities +id: activities +label: Activities +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: full + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + tags: + previous: ‹‹ + next: ›› + first: '« First' + last: 'Last »' + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + quantity: 9 + style: + type: views_bootstrap_grid + options: + row_class: mb-30 + default_row_class: true + uses_fields: false + alignment: horizontal + columns: '4' + col_xs: col-xs-12 + col_sm: col-sm-6 + col_md: col-md-3 + col_lg: col-lg-3 + row: + type: fields + options: + default_field_elements: true + inline: { } + separator: '' + hide_empty: false + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + label: '' + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + body: + id: body + table: node__body + field: body + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: text_default + settings: { } + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + field_date: + id: field_date + table: node__field_date + field: field_date + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: datetime_default + settings: + timezone_override: '' + format_type: medium + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + iteron_activities: iteron_activities + entity_type: node + entity_field: type + plugin_id: bundle + group: 1 + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: Activities + header: { } + footer: { } + empty: { } + relationships: { } + arguments: + created_year: + id: created_year + table: node_field_data + field: created_year + relationship: none + group_type: group + admin_label: '' + default_action: ignore + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: fixed + default_argument_options: + argument: '' + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + items_per_page: 25 + override: false + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + entity_type: node + plugin_id: date_year + display_extenders: { } + filter_groups: + operator: AND + groups: + 1: AND + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.body' + - 'config:field.storage.node.field_date' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: activities + menu: + type: normal + title: Activities + menu_name: main + weight: -49 + parent: 'menu_link_content:967e1206-74f4-466a-9ec8-62a46f7ecadb' + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.body' + - 'config:field.storage.node.field_date' diff --git a/modules/kalpesh/iteron_activities/iteron_activities.info.yml b/modules/kalpesh/iteron_activities/iteron_activities.info.yml new file mode 100644 index 0000000..89193fe --- /dev/null +++ b/modules/kalpesh/iteron_activities/iteron_activities.info.yml @@ -0,0 +1,17 @@ +name: Iteron_Activities +type: module +description: 'My Awesome Module' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:datetime + - drupal:file + - drupal:image + - drupal:path + - drupal:text + - ds:ds + - drupal:user + - drupal:node + - views_bootstrap:views_bootstrap + diff --git a/modules/kalpesh/iteron_activities/iteron_activities.install b/modules/kalpesh/iteron_activities/iteron_activities.install new file mode 100644 index 0000000..eea1ece --- /dev/null +++ b/modules/kalpesh/iteron_activities/iteron_activities.install @@ -0,0 +1,26 @@ + +<?php +/** +* Implements hook_uninstall(). +*/ +function iteron_activities_uninstall() { //<-- replace “welcome” with your module machine name + // Load services. + $queryFactory = \Drupal::service('entity.query'); + $nodeStorage = \Drupal::entityManager()->getStorage('node'); + + + + // Query all entity. + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + ->condition('type', 'iteron_activities'); + $nids = $query->execute(); + + + + // Delete entities. + if (!empty($nids)) { + $entities = $nodeStorage->loadMultiple($nids); + $nodeStorage->delete($entities); + } +} diff --git a/modules/kalpesh/iteron_activities/iteron_activities.module b/modules/kalpesh/iteron_activities/iteron_activities.module new file mode 100644 index 0000000..8328800 --- /dev/null +++ b/modules/kalpesh/iteron_activities/iteron_activities.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains iteron_activities.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function iteron_activities_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the iteron_activities module. + case 'help.page.iteron_activities': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('My Awesome Module') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function iteron_activities_theme() { + return [ + 'iteron_activities' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/iteron_activities/templates/iteron-activities.html.twig b/modules/kalpesh/iteron_activities/templates/iteron-activities.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/iteron_activities/templates/iteron-activities.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/kalpesh/iteron_activities/tests/src/Functional/LoadTest.php b/modules/kalpesh/iteron_activities/tests/src/Functional/LoadTest.php new file mode 100644 index 0000000..e506f28 --- /dev/null +++ b/modules/kalpesh/iteron_activities/tests/src/Functional/LoadTest.php @@ -0,0 +1,46 @@ +<?php + +namespace Drupal\Tests\iteron_activities\Functional; + +use Drupal\Core\Url; +use Drupal\Tests\BrowserTestBase; + +/** + * Simple test to ensure that main page loads with module enabled. + * + * @group iteron_activities + */ +class LoadTest extends BrowserTestBase { + + /** + * Modules to enable. + * + * @var array + */ + public static $modules = ['iteron_activities']; + + /** + * A user with permission to administer site configuration. + * + * @var \Drupal\user\UserInterface + */ + protected $user; + + /** + * {@inheritdoc} + */ + protected function setUp() { + parent::setUp(); + $this->user = $this->drupalCreateUser(['administer site configuration']); + $this->drupalLogin($this->user); + } + + /** + * Tests that the home page loads with a 200 response. + */ + public function testLoad() { + $this->drupalGet(Url::fromRoute('<front>')); + $this->assertSession()->statusCodeEquals(200); + } + +} diff --git a/modules/kalpesh/laboratory/composer.json b/modules/kalpesh/laboratory/composer.json new file mode 100644 index 0000000..59103d2 --- /dev/null +++ b/modules/kalpesh/laboratory/composer.json @@ -0,0 +1,13 @@ +{ + "name": "laboratory", + "type": "drupal-module", + "description": "This module store laboratories details", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/laboratory", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/laboratory", + "source": "http://cgit.drupalcode.org/laboratory", + }, +} diff --git a/modules/kalpesh/laboratory/config/install/core.base_field_override.node.laboratories.promote.yml b/modules/kalpesh/laboratory/config/install/core.base_field_override.node.laboratories.promote.yml new file mode 100644 index 0000000..29e16ca --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/core.base_field_override.node.laboratories.promote.yml @@ -0,0 +1,25 @@ +langcode: en +status: true +dependencies: + config: + - node.type.laboratories + enforced: + module: + - laboratories +id: node.laboratories.promote +field_name: promote +entity_type: node +bundle: laboratories +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean + diff --git a/modules/kalpesh/laboratory/config/install/core.base_field_override.node.laboratories.title.yml b/modules/kalpesh/laboratory/config/install/core.base_field_override.node.laboratories.title.yml new file mode 100644 index 0000000..7a98615 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/core.base_field_override.node.laboratories.title.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + config: + - node.type.laboratories + enforced: + module: + - laboratories +id: node.laboratories.title +field_name: title +entity_type: node +bundle: laboratories +label: Laboratory +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/laboratory/config/install/core.entity_form_display.node.laboratories.default.yml b/modules/kalpesh/laboratory/config/install/core.entity_form_display.node.laboratories.default.yml new file mode 100644 index 0000000..7d48de9 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/core.entity_form_display.node.laboratories.default.yml @@ -0,0 +1,122 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.laboratories.body + - field.field.node.laboratories.field_area + - field.field.node.laboratories.field_lab_equipment_cost + - field.field.node.laboratories.field_lab_image + - field.field.node.laboratories.field_utilisation_of_lab + - image.style.thumbnail + - node.type.laboratories + module: + - image + - path + - text + enforced: + module: + - laboratories +id: node.laboratories.default +targetEntityType: node +bundle: laboratories +mode: default +content: + body: + type: text_textarea_with_summary + weight: 11 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + region: content + created: + type: datetime_timestamp + weight: 6 + region: content + settings: { } + third_party_settings: { } + field_area: + weight: 1 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_lab_equipment_cost: + weight: 2 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_lab_image: + weight: 13 + settings: + progress_indicator: throbber + preview_image_style: thumbnail + third_party_settings: { } + type: image_image + region: content + field_utilisation_of_lab: + weight: 3 + settings: + rows: 5 + placeholder: '' + third_party_settings: { } + type: text_textarea + region: content + langcode: + type: language_select + weight: 4 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 9 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 7 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 10 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 8 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 5 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { } diff --git a/modules/kalpesh/laboratory/config/install/core.entity_view_display.node.laboratories.default.yml b/modules/kalpesh/laboratory/config/install/core.entity_view_display.node.laboratories.default.yml new file mode 100644 index 0000000..5e9ee22 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/core.entity_view_display.node.laboratories.default.yml @@ -0,0 +1,202 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.laboratories.body + - field.field.node.laboratories.field_area + - field.field.node.laboratories.field_lab_equipment_cost + - field.field.node.laboratories.field_lab_image + - field.field.node.laboratories.field_utilisation_of_lab + - node.type.laboratories + module: + - ds + - image + - text + - user + enforced: + module: + - laboratories +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - node_title + - field_lab_image + - field_area + - field_lab_equipment_cost + - field_utilisation_of_lab + fields: + node_title: + plugin_id: node_title + weight: 0 + label: hidden + formatter: default +id: node.laboratories.default +targetEntityType: node +bundle: laboratories +mode: default +content: + field_area: + type: string + weight: 2 + region: ds_content + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: 'Area ' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'fw-bold col-sm-3' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'row ' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: col-sm-5 + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + field_lab_equipment_cost: + type: string + weight: 3 + region: ds_content + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: 'Equipment cost' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-3 fw-bold' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'row mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: col-sm-5 + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + field_lab_image: + type: image + weight: 1 + region: ds_content + label: hidden + settings: + image_style: '' + image_link: '' + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: 'div ' + lbw-cl: ' fw-bold ' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'center-block mt-10 mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: 'div ' + fi-cl: ' center-block' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + field_utilisation_of_lab: + type: text_default + weight: 4 + region: ds_content + label: above + settings: { } + third_party_settings: + ds: + ft: + id: expert + settings: + lb: Utilisation + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-3 fw-bold ' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'row mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: col-sm-5 + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false +hidden: + body: true + langcode: true + links: true diff --git a/modules/kalpesh/laboratory/config/install/core.entity_view_display.node.laboratories.teaser.yml b/modules/kalpesh/laboratory/config/install/core.entity_view_display.node.laboratories.teaser.yml new file mode 100644 index 0000000..65f66bb --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/core.entity_view_display.node.laboratories.teaser.yml @@ -0,0 +1,33 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.laboratories.body + - node.type.laboratories + module: + - text + - user + enforced: + module: + - laboratories +id: node.laboratories.teaser +targetEntityType: node +bundle: laboratories +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + region: content + links: + weight: 100 + settings: { } + third_party_settings: { } + region: content +hidden: + langcode: true diff --git a/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.body.yml b/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.body.yml new file mode 100644 index 0000000..c2bdaa7 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.body.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.laboratories + module: + - text + enforced: + module: + - laboratories +id: node.laboratories.body +field_name: body +entity_type: node +bundle: laboratories +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary diff --git a/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_area.yml b/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_area.yml new file mode 100644 index 0000000..89b67b2 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_area.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_area + - node.type.laboratories + enforced: + module: + - laboratories +id: node.laboratories.field_area +field_name: field_area +entity_type: node +bundle: laboratories +label: Area +description: 'Area of lab' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_lab_equipment_cost.yml b/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_lab_equipment_cost.yml new file mode 100644 index 0000000..2f64ecf --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_lab_equipment_cost.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_lab_equipment_cost + - node.type.laboratories + enforced: + module: + - laboratories +id: node.laboratories.field_lab_equipment_cost +field_name: field_lab_equipment_cost +entity_type: node +bundle: laboratories +label: 'Lab Equipment cost' +description: 'cost of software and machines' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_lab_image.yml b/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_lab_image.yml new file mode 100644 index 0000000..6a9dc2c --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_lab_image.yml @@ -0,0 +1,40 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_lab_image + - node.type.laboratories + module: + - image + enforced: + module: + - laboratories +id: node.laboratories.field_lab_image +field_name: field_lab_image +entity_type: node +bundle: laboratories +label: 'Lab Image' +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: 'png gif jpg jpeg' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: true + alt_field_required: true + title_field: false + title_field_required: false + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + handler: 'default:file' + handler_settings: { } +field_type: image diff --git a/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_utilisation_of_lab.yml b/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_utilisation_of_lab.yml new file mode 100644 index 0000000..75ce44e --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_utilisation_of_lab.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_utilisation_of_lab + - node.type.laboratories + module: + - text + enforced: + module: + - laboratories +id: node.laboratories.field_utilisation_of_lab +field_name: field_utilisation_of_lab +entity_type: node +bundle: laboratories +label: 'Utilisation of lab' +description: 'Semiser wise use of lab in hours/week' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: text_long diff --git a/modules/kalpesh/laboratory/config/install/field.storage.node.field_area.yml b/modules/kalpesh/laboratory/config/install/field.storage.node.field_area.yml new file mode 100644 index 0000000..34e31e3 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/field.storage.node.field_area.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - laboratories +id: node.field_area +field_name: field_area +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/laboratory/config/install/field.storage.node.field_lab_equipment_cost.yml b/modules/kalpesh/laboratory/config/install/field.storage.node.field_lab_equipment_cost.yml new file mode 100644 index 0000000..dc60ebf --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/field.storage.node.field_lab_equipment_cost.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - laboratories +id: node.field_lab_equipment_cost +field_name: field_lab_equipment_cost +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/laboratory/config/install/field.storage.node.field_lab_image.yml b/modules/kalpesh/laboratory/config/install/field.storage.node.field_lab_image.yml new file mode 100644 index 0000000..f54354e --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/field.storage.node.field_lab_image.yml @@ -0,0 +1,32 @@ +langcode: en +status: true +dependencies: + module: + - file + - image + - node + enforced: + module: + - laboratories +id: node.field_lab_image +field_name: field_lab_image +entity_type: node +type: image +settings: + uri_scheme: public + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + target_type: file + display_field: false + display_default: false +module: image +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/esha/placements/config/install/field.storage.node.body.yml b/modules/kalpesh/laboratory/config/install/field.storage.node.field_utilisation_of_lab.yml index 821a97a..ec586d5 100644 --- a/modules/esha/placements/config/install/field.storage.node.body.yml +++ b/modules/kalpesh/laboratory/config/install/field.storage.node.field_utilisation_of_lab.yml @@ -1,4 +1,3 @@ -uuid: d15ccb4d-ffc3-42ae-abaa-012960942a15 langcode: en status: true dependencies: @@ -7,18 +6,16 @@ dependencies: - text enforced: module: - - placements -_core: - default_config_hash: EBUo7qOWqaiZaQ_RC9sLY5IoDKphS34v77VIHSACmVY -id: node.body -field_name: body + - laboratories +id: node.field_utilisation_of_lab +field_name: field_utilisation_of_lab entity_type: node -type: text_with_summary +type: text_long settings: { } module: text locked: false cardinality: 1 translatable: true indexes: { } -persist_with_no_fields: true +persist_with_no_fields: false custom_storage: false diff --git a/modules/kalpesh/laboratory/config/install/image.style.laboratory_image_style.yml b/modules/kalpesh/laboratory/config/install/image.style.laboratory_image_style.yml new file mode 100644 index 0000000..7f67910 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/image.style.laboratory_image_style.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + enforced: + module: + - laboratories +name: laboratory_image_style +label: 'laboratory image style' +effects: + c989a340-a271-4d7f-8475-32e97bbd71d5: + uuid: c989a340-a271-4d7f-8475-32e97bbd71d5 + id: image_scale_and_crop + weight: 1 + data: + width: 400 + height: 300 + anchor: center-center diff --git a/modules/kalpesh/laboratory/config/install/node.type.laboratories.yml b/modules/kalpesh/laboratory/config/install/node.type.laboratories.yml new file mode 100644 index 0000000..2763808 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/node.type.laboratories.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui + enforced: + module: + - laboratories +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: Laboratories +type: laboratories +description: 'Detail information about laboratories' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/laboratory/config/install/views.view.laboratories.yml b/modules/kalpesh/laboratory/config/install/views.view.laboratories.yml new file mode 100644 index 0000000..5e9ee22 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/views.view.laboratories.yml @@ -0,0 +1,202 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.laboratories.body + - field.field.node.laboratories.field_area + - field.field.node.laboratories.field_lab_equipment_cost + - field.field.node.laboratories.field_lab_image + - field.field.node.laboratories.field_utilisation_of_lab + - node.type.laboratories + module: + - ds + - image + - text + - user + enforced: + module: + - laboratories +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - node_title + - field_lab_image + - field_area + - field_lab_equipment_cost + - field_utilisation_of_lab + fields: + node_title: + plugin_id: node_title + weight: 0 + label: hidden + formatter: default +id: node.laboratories.default +targetEntityType: node +bundle: laboratories +mode: default +content: + field_area: + type: string + weight: 2 + region: ds_content + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: 'Area ' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'fw-bold col-sm-3' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'row ' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: col-sm-5 + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + field_lab_equipment_cost: + type: string + weight: 3 + region: ds_content + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: 'Equipment cost' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-3 fw-bold' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'row mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: col-sm-5 + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + field_lab_image: + type: image + weight: 1 + region: ds_content + label: hidden + settings: + image_style: '' + image_link: '' + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: 'div ' + lbw-cl: ' fw-bold ' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'center-block mt-10 mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: 'div ' + fi-cl: ' center-block' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + field_utilisation_of_lab: + type: text_default + weight: 4 + region: ds_content + label: above + settings: { } + third_party_settings: + ds: + ft: + id: expert + settings: + lb: Utilisation + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-3 fw-bold ' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'row mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: col-sm-5 + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false +hidden: + body: true + langcode: true + links: true diff --git a/modules/kalpesh/laboratory/laboratory.info.yml b/modules/kalpesh/laboratory/laboratory.info.yml new file mode 100644 index 0000000..1db207c --- /dev/null +++ b/modules/kalpesh/laboratory/laboratory.info.yml @@ -0,0 +1,14 @@ +name: laboratory +type: module +description: 'This module store laboratories details' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:image + - drupal:path + - drupal:text + - ds:ds + - drupal:user + - drupal:node + - drupal:file diff --git a/modules/kalpesh/laboratory/laboratory.install b/modules/kalpesh/laboratory/laboratory.install new file mode 100644 index 0000000..68dfe55 --- /dev/null +++ b/modules/kalpesh/laboratory/laboratory.install @@ -0,0 +1,64 @@ +<?php + + +/** + + +* Implements hook_uninstall(). + + +*/ + + +function laboratory_uninstall() { //<-- replace “welcome” with your module machine name + + + // Load services. + + + $queryFactory = \Drupal::service('entity.query'); + + + $nodeStorage = \Drupal::entityManager()->getStorage('node'); + + + + + + + + // Query all entity. + + + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + + + ->condition('type', 'laboratories'); + + + $nids = $query->execute(); + + + + + + + + // Delete entities. + + + if (!empty($nids)) { + + + $entities = $nodeStorage->loadMultiple($nids); + + + $nodeStorage->delete($entities); + + + } + + +} + diff --git a/modules/kalpesh/laboratory/laboratory.module b/modules/kalpesh/laboratory/laboratory.module new file mode 100644 index 0000000..5a9801f --- /dev/null +++ b/modules/kalpesh/laboratory/laboratory.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains laboratory.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function laboratory_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the laboratory module. + case 'help.page.laboratory': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('This module store laboratories details') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function laboratory_theme() { + return [ + 'laboratory' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/laboratory/templates/laboratory.html.twig b/modules/kalpesh/laboratory/templates/laboratory.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/laboratory/templates/laboratory.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/esha/placements/tests/src/Functional/LoadTest.php b/modules/kalpesh/laboratory/tests/src/Functional/LoadTest.php index fd19fb6..431de13 100644 --- a/modules/esha/placements/tests/src/Functional/LoadTest.php +++ b/modules/kalpesh/laboratory/tests/src/Functional/LoadTest.php @@ -1,6 +1,6 @@ <?php -namespace Drupal\Tests\placements\Functional; +namespace Drupal\Tests\laboratory\Functional; use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; @@ -8,7 +8,7 @@ use Drupal\Tests\BrowserTestBase; /** * Simple test to ensure that main page loads with module enabled. * - * @group placements + * @group laboratory */ class LoadTest extends BrowserTestBase { @@ -17,7 +17,7 @@ class LoadTest extends BrowserTestBase { * * @var array */ - public static $modules = ['placements']; + public static $modules = ['laboratory']; /** * A user with permission to administer site configuration. diff --git a/modules/kalpesh/members/composer.json b/modules/kalpesh/members/composer.json new file mode 100644 index 0000000..95e4284 --- /dev/null +++ b/modules/kalpesh/members/composer.json @@ -0,0 +1,13 @@ +{ + "name": "members", + "type": "drupal-module", + "description": "This modole store members details", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/members", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/members", + "source": "http://cgit.drupalcode.org/members", + }, +} diff --git a/modules/kalpesh/members/config/install/core.base_field_override.node.members.promote.yml b/modules/kalpesh/members/config/install/core.base_field_override.node.members.promote.yml new file mode 100644 index 0000000..f2a81bb --- /dev/null +++ b/modules/kalpesh/members/config/install/core.base_field_override.node.members.promote.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - node.type.members + enforced: + module: + - members +id: node.members.promote +field_name: promote +entity_type: node +bundle: members +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/modules/kalpesh/members/config/install/core.entity_form_display.node.members.default.yml b/modules/kalpesh/members/config/install/core.entity_form_display.node.members.default.yml new file mode 100644 index 0000000..7dca7b1 --- /dev/null +++ b/modules/kalpesh/members/config/install/core.entity_form_display.node.members.default.yml @@ -0,0 +1,158 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.members.body + - field.field.node.members.field_category + - field.field.node.members.field_designation + - field.field.node.members.field_email_members + - field.field.node.members.field_file_uploads_members + - field.field.node.members.field_full_name_members + - field.field.node.members.field_image_members + - field.field.node.members.field_location_members + - field.field.node.members.field_phone_no_members + - image.style.thumbnail + - node.type.members + module: + - file + - image + - name + - path + - text + enforced: + module: + - members +id: node.members.default +targetEntityType: node +bundle: members +mode: default +content: + body: + type: text_textarea_with_summary + weight: 121 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + region: content + created: + type: datetime_timestamp + weight: 10 + region: content + settings: { } + third_party_settings: { } + field_category: + weight: 123 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + third_party_settings: { } + type: entity_reference_autocomplete + region: content + field_designation: + weight: 124 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_email_members: + weight: 125 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: email_default + region: content + field_file_uploads_members: + weight: 127 + settings: + progress_indicator: throbber + third_party_settings: { } + type: file_generic + region: content + field_full_name_members: + weight: 122 + settings: { } + third_party_settings: { } + type: name_default + region: content + field_image_members: + weight: 126 + settings: + progress_indicator: throbber + preview_image_style: thumbnail + third_party_settings: { } + type: image_image + region: content + field_location_members: + weight: 128 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_phone_no_members: + weight: 129 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + langcode: + type: language_select + weight: 2 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 30 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 15 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 120 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 16 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: -5 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 5 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { } diff --git a/modules/kalpesh/members/config/install/core.entity_view_display.node.members.default.yml b/modules/kalpesh/members/config/install/core.entity_view_display.node.members.default.yml new file mode 100644 index 0000000..c8d2d9b --- /dev/null +++ b/modules/kalpesh/members/config/install/core.entity_view_display.node.members.default.yml @@ -0,0 +1,371 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.members.body + - field.field.node.members.field_category + - field.field.node.members.field_designation + - field.field.node.members.field_email_members + - field.field.node.members.field_file_uploads_members + - field.field.node.members.field_full_name_members + - field.field.node.members.field_image_members + - field.field.node.members.field_location_members + - field.field.node.members.field_phone_no_members + - image.style.group_research_area_image + - node.type.members + module: + - ds + - file + - image + - name + - text + - user + enforced: + module: + - members +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - links + - field_image_members + - body + - field_full_name_members + - field_email_members + - field_category + - field_designation + - field_location_members + - field_phone_no_members + - field_file_uploads_members +id: node.members.default +targetEntityType: node +bundle: members +mode: default +content: + body: + label: hidden + type: text_default + weight: 2 + settings: { } + third_party_settings: { } + region: ds_content + field_category: + weight: 5 + label: inline + settings: + link: true + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: 'div ' + lbw-cl: 'col-sm-2 fw-bold mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: entity_reference_label + region: ds_content + field_designation: + weight: 6 + label: inline + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + field_email_members: + weight: 4 + label: inline + settings: { } + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: 'div ' + lbw-cl: 'col-sm-2 fw-bold mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: basic_string + region: ds_content + field_file_uploads_members: + weight: 9 + label: inline + settings: + use_description_as_link_text: true + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: file_default + region: ds_content + field_full_name_members: + weight: 3 + label: inline + settings: + format: default + output: default + multiple: default + multiple_delimiter: ', ' + multiple_and: text + multiple_delimiter_precedes_last: never + multiple_el_al_min: '3' + multiple_el_al_first: '1' + markup: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: 'div ' + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis: true + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis-def-at: false + fi-def-at: false + type: name_default + region: ds_content + field_image_members: + weight: 1 + label: hidden + settings: + image_style: group_research_area_image + image_link: '' + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw-el: '' + lbw-cl: '' + lbw-at: '' + ow-el: '' + ow-cl: '' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi-el: '' + fi-cl: '' + fi-at: '' + suffix: '' + lbw: false + lb-col: false + ow: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi: false + fi-def-at: false + type: image + region: ds_content + field_location_members: + weight: 7 + label: inline + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + field_phone_no_members: + weight: 8 + label: inline + settings: + link_to_entity: false + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + links: + weight: 0 + region: ds_content + settings: { } + third_party_settings: { } +hidden: + langcode: true diff --git a/modules/kalpesh/members/config/install/core.entity_view_display.node.members.teaser.yml b/modules/kalpesh/members/config/install/core.entity_view_display.node.members.teaser.yml new file mode 100644 index 0000000..ccdd331 --- /dev/null +++ b/modules/kalpesh/members/config/install/core.entity_view_display.node.members.teaser.yml @@ -0,0 +1,33 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.members.body + - node.type.members + module: + - text + - user + enforced: + module: + - members +id: node.members.teaser +targetEntityType: node +bundle: members +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + region: content + links: + weight: 100 + settings: { } + third_party_settings: { } + region: content +hidden: + langcode: true diff --git a/modules/kalpesh/members/config/install/field.field.node.members.body.yml b/modules/kalpesh/members/config/install/field.field.node.members.body.yml new file mode 100644 index 0000000..4ae414b --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.body.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.members + module: + - text + enforced: + module: + - members +id: node.members.body +field_name: body +entity_type: node +bundle: members +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_category.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_category.yml new file mode 100644 index 0000000..66f5930 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_category.yml @@ -0,0 +1,31 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_category + - node.type.members + - taxonomy.vocabulary.category + enforced: + module: + - members +id: node.members.field_category +field_name: field_category +entity_type: node +bundle: members +label: Category +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + category: category + sort: + field: name + direction: asc + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_designation.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_designation.yml new file mode 100644 index 0000000..3ac8820 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_designation.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_designation + - node.type.members + enforced: + module: + - members +id: node.members.field_designation +field_name: field_designation +entity_type: node +bundle: members +label: Designation +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_email_members.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_email_members.yml new file mode 100644 index 0000000..43dd139 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_email_members.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_email_members + - node.type.members + enforced: + module: + - members +id: node.members.field_email_members +field_name: field_email_members +entity_type: node +bundle: members +label: Email +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: email diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_file_uploads_members.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_file_uploads_members.yml new file mode 100644 index 0000000..e2c81e4 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_file_uploads_members.yml @@ -0,0 +1,29 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_file_uploads_members + - node.type.members + enforced: + module: + - members + module: + - file +id: node.members.field_file_uploads_members +field_name: field_file_uploads_members +entity_type: node +bundle: members +label: 'File uploads' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: members + file_extensions: 'txt pdf' + max_filesize: '' + description_field: false + handler: 'default:file' + handler_settings: { } +field_type: file diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_full_name_members.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_full_name_members.yml new file mode 100644 index 0000000..7310e10 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_full_name_members.yml @@ -0,0 +1,56 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_full_name_members + - node.type.members + enforced: + module: + - members + module: + - name +id: node.members.field_full_name_members +field_name: field_full_name_members +entity_type: node +bundle: members +label: 'Full Name' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + size: + title: 6 + given: 20 + middle: 20 + family: 20 + generational: 5 + credentials: 35 + title_display: + title: description + given: description + middle: description + family: description + generational: description + credentials: description + field_type: + title: select + given: text + middle: text + family: text + generational: select + credentials: text + inline_css: + title: '' + given: '' + middle: '' + family: '' + generational: '' + credentials: '' + component_css: '' + component_layout: default + show_component_required_marker: false + credentials_inline: false + override_format: default +field_type: name diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_image_members.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_image_members.yml new file mode 100644 index 0000000..e45b868 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_image_members.yml @@ -0,0 +1,40 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_image_members + - node.type.members + module: + - image + enforced: + module: + - members +id: node.members.field_image_members +field_name: field_image_members +entity_type: node +bundle: members +label: Image +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: members + file_extensions: 'png gif jpg jpeg' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: true + alt_field_required: false + title_field: false + title_field_required: false + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + handler: 'default:file' + handler_settings: { } +field_type: image diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_location_members.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_location_members.yml new file mode 100644 index 0000000..7b59f13 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_location_members.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_location_members + - node.type.members + enforced: + module: + - members +id: node.members.field_location_members +field_name: field_location_members +entity_type: node +bundle: members +label: Location +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_phone_no_members.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_phone_no_members.yml new file mode 100644 index 0000000..60c6269 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_phone_no_members.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_phone_no_members + - node.type.members + enforced: + module: + - members +id: node.members.field_phone_no_members +field_name: field_phone_no_members +entity_type: node +bundle: members +label: 'Phone No ' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_category.yml b/modules/kalpesh/members/config/install/field.storage.node.field_category.yml new file mode 100644 index 0000000..325c8d3 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_category.yml @@ -0,0 +1,22 @@ +langcode: en +status: true +dependencies: + module: + - node + - taxonomy + enforced: + module: + - members +id: node.field_category +field_name: field_category +entity_type: node +type: entity_reference +settings: + target_type: taxonomy_term +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_designation.yml b/modules/kalpesh/members/config/install/field.storage.node.field_designation.yml new file mode 100644 index 0000000..5bb724b --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_designation.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - members +id: node.field_designation +field_name: field_designation +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_email_members.yml b/modules/kalpesh/members/config/install/field.storage.node.field_email_members.yml new file mode 100644 index 0000000..99c1f69 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_email_members.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - members +id: node.field_email_members +field_name: field_email_members +entity_type: node +type: email +settings: { } +module: core +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_file_uploads_members.yml b/modules/kalpesh/members/config/install/field.storage.node.field_file_uploads_members.yml new file mode 100644 index 0000000..bdc9bc0 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_file_uploads_members.yml @@ -0,0 +1,25 @@ +langcode: en +status: true +dependencies: + module: + - file + - node + enforced: + module: + - members +id: node.field_file_uploads_members +field_name: field_file_uploads_members +entity_type: node +type: file +settings: + display_field: false + display_default: false + uri_scheme: public + target_type: file +module: file +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_full_name_members.yml b/modules/kalpesh/members/config/install/field.storage.node.field_full_name_members.yml new file mode 100644 index 0000000..2334559 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_full_name_members.yml @@ -0,0 +1,91 @@ +langcode: en +status: true +dependencies: + module: + - name + - node + enforced: + module: + - members +id: node.field_full_name_members +field_name: field_full_name_members +entity_type: node +type: name +settings: + components: + title: true + given: true + middle: true + family: true + generational: true + credentials: true + minimum_components: + given: true + family: true + title: false + middle: false + generational: false + credentials: false + labels: + title: Title + given: Given + middle: 'Middle name(s)' + family: Family + generational: Generational + credentials: Credentials + max_length: + title: 31 + given: 63 + middle: 127 + family: 63 + generational: 15 + credentials: 255 + autocomplete_source: + title: + title: title + given: { } + middle: { } + family: { } + generational: + generational: '0' + credentials: { } + autocomplete_separator: + title: ' ' + given: ' -' + middle: ' -' + family: ' -' + generational: ' ' + credentials: ', ' + allow_family_or_given: false + title_options: + - '-- --' + - Mr. + - Mrs. + - Miss + - Ms. + - Dr. + - Prof. + generational_options: + - '-- --' + - Jr. + - Sr. + - I + - II + - III + - IV + - V + - VI + - VII + - VIII + - IX + - X + sort_options: + title: false + generational: false +module: name +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_image_members.yml b/modules/kalpesh/members/config/install/field.storage.node.field_image_members.yml new file mode 100644 index 0000000..84c6baa --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_image_members.yml @@ -0,0 +1,32 @@ +langcode: en +status: true +dependencies: + module: + - file + - image + - node + enforced: + module: + - members +id: node.field_image_members +field_name: field_image_members +entity_type: node +type: image +settings: + uri_scheme: public + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + target_type: file + display_field: false + display_default: false +module: image +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_location_members.yml b/modules/kalpesh/members/config/install/field.storage.node.field_location_members.yml new file mode 100644 index 0000000..1567014 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_location_members.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - members +id: node.field_location_members +field_name: field_location_members +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_phone_no_members.yml b/modules/kalpesh/members/config/install/field.storage.node.field_phone_no_members.yml new file mode 100644 index 0000000..e25b71c --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_phone_no_members.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - members +id: node.field_phone_no_members +field_name: field_phone_no_members +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/image.style.group_research_area_image.yml b/modules/kalpesh/members/config/install/image.style.group_research_area_image.yml new file mode 100644 index 0000000..09b645b --- /dev/null +++ b/modules/kalpesh/members/config/install/image.style.group_research_area_image.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + enforced: + module: + - members +name: group_research_area_image +label: 'Group Research area image' +effects: + 366cac20-7b38-410e-b508-129e23608539: + uuid: 366cac20-7b38-410e-b508-129e23608539 + id: image_scale_and_crop + weight: 1 + data: + width: 400 + height: 300 + anchor: center-center diff --git a/modules/kalpesh/members/config/install/node.type.members.yml b/modules/kalpesh/members/config/install/node.type.members.yml new file mode 100644 index 0000000..acefdd0 --- /dev/null +++ b/modules/kalpesh/members/config/install/node.type.members.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui + enforced: + module: + - members +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: Members +type: members +description: '' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/members/config/install/taxonomy.vocabulary.category.yml b/modules/kalpesh/members/config/install/taxonomy.vocabulary.category.yml new file mode 100644 index 0000000..d3d6ad7 --- /dev/null +++ b/modules/kalpesh/members/config/install/taxonomy.vocabulary.category.yml @@ -0,0 +1,11 @@ +langcode: en +status: true +dependencies: + enforced: + module: + - members +name: Category +vid: category +description: '' +hierarchy: 0 +weight: 0 diff --git a/modules/kalpesh/members/members.info.yml b/modules/kalpesh/members/members.info.yml new file mode 100644 index 0000000..a66ee20 --- /dev/null +++ b/modules/kalpesh/members/members.info.yml @@ -0,0 +1,19 @@ +name: Members +type: module +description: 'This modole store members details' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:file + - drupal:image + - drupal:name + - drupal:path + - drupal:text + - ds:ds + - drupal:user + - drupal:node + - drupal:taxonomy + + + diff --git a/modules/kalpesh/members/members.install b/modules/kalpesh/members/members.install new file mode 100644 index 0000000..bb3a6cf --- /dev/null +++ b/modules/kalpesh/members/members.install @@ -0,0 +1,26 @@ + +<?php +/** +* Implements hook_uninstall(). +*/ +function members_uninstall() { //<-- replace “welcome” with your module machine name + // Load services. + $queryFactory = \Drupal::service('entity.query'); + $nodeStorage = \Drupal::entityManager()->getStorage('node'); + + + + // Query all entity. + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + ->condition('type', 'members'); + $nids = $query->execute(); + + + + // Delete entities. + if (!empty($nids)) { + $entities = $nodeStorage->loadMultiple($nids); + $nodeStorage->delete($entities); + } +} diff --git a/modules/kalpesh/members/members.module b/modules/kalpesh/members/members.module new file mode 100644 index 0000000..035d5c0 --- /dev/null +++ b/modules/kalpesh/members/members.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains members.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function members_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the members module. + case 'help.page.members': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('This modole store members details') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function members_theme() { + return [ + 'members' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/members/templates/members.html.twig b/modules/kalpesh/members/templates/members.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/members/templates/members.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/esha/lab/tests/src/Functional/LoadTest.php b/modules/kalpesh/members/tests/src/Functional/LoadTest.php index 918be07..4a4ce20 100644 --- a/modules/esha/lab/tests/src/Functional/LoadTest.php +++ b/modules/kalpesh/members/tests/src/Functional/LoadTest.php @@ -1,6 +1,6 @@ <?php -namespace Drupal\Tests\lab\Functional; +namespace Drupal\Tests\members\Functional; use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; @@ -8,7 +8,7 @@ use Drupal\Tests\BrowserTestBase; /** * Simple test to ensure that main page loads with module enabled. * - * @group lab + * @group members */ class LoadTest extends BrowserTestBase { @@ -17,7 +17,7 @@ class LoadTest extends BrowserTestBase { * * @var array */ - public static $modules = ['lab']; + public static $modules = ['members']; /** * A user with permission to administer site configuration. diff --git a/modules/kalpesh/photo_gallery/composer.json b/modules/kalpesh/photo_gallery/composer.json new file mode 100644 index 0000000..fc234e8 --- /dev/null +++ b/modules/kalpesh/photo_gallery/composer.json @@ -0,0 +1,13 @@ +{ + "name": "photo_gallery", + "type": "drupal-module", + "description": "This module is use for stylish photo gallery", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/photo_gallery", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/photo_gallery", + "source": "http://cgit.drupalcode.org/photo_gallery", + }, +} diff --git a/modules/kalpesh/photo_gallery/config/install/core.base_field_override.node.photograpy.promote.yml b/modules/kalpesh/photo_gallery/config/install/core.base_field_override.node.photograpy.promote.yml new file mode 100644 index 0000000..4f2fdc0 --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/core.base_field_override.node.photograpy.promote.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - node.type.photograpy + enforced: + module: + - photograpy +id: node.photograpy.promote +field_name: promote +entity_type: node +bundle: photograpy +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/modules/kalpesh/photo_gallery/config/install/core.base_field_override.node.photograpy.title.yml b/modules/kalpesh/photo_gallery/config/install/core.base_field_override.node.photograpy.title.yml new file mode 100644 index 0000000..c3382c1 --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/core.base_field_override.node.photograpy.title.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + config: + - node.type.photograpy + enforced: + module: + - photograpy +id: node.photograpy.title +field_name: title +entity_type: node +bundle: photograpy +label: Title +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/photo_gallery/config/install/core.entity_form_display.node.photograpy.default.yml b/modules/kalpesh/photo_gallery/config/install/core.entity_form_display.node.photograpy.default.yml new file mode 100644 index 0000000..671d94b --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/core.entity_form_display.node.photograpy.default.yml @@ -0,0 +1,95 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.photograpy.body + - field.field.node.photograpy.field_photo_gallery + - image.style.photo_gallery_image_style + - node.type.photograpy + module: + - image + - path + - text + enforced: + module: + - photograpy +id: node.photograpy.default +targetEntityType: node +bundle: photograpy +mode: default +content: + body: + type: text_textarea_with_summary + weight: 7 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + region: content + created: + type: datetime_timestamp + weight: 2 + region: content + settings: { } + third_party_settings: { } + field_photo_gallery: + weight: 8 + settings: + preview_image_style: photo_gallery_image_style + progress_indicator: throbber + third_party_settings: { } + type: image_image + region: content + langcode: + type: language_select + weight: 0 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 5 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 3 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 6 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 4 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 1 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { } diff --git a/modules/kalpesh/photo_gallery/config/install/core.entity_view_display.node.photograpy.default.yml b/modules/kalpesh/photo_gallery/config/install/core.entity_view_display.node.photograpy.default.yml new file mode 100644 index 0000000..658176a --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/core.entity_view_display.node.photograpy.default.yml @@ -0,0 +1,96 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.photograpy.body + - field.field.node.photograpy.field_photo_gallery + - image.style.photo_gallery_image_style + - image.style.photo_gallery_large_image_style + - node.type.photograpy + module: + - colorbox + - ds + - text + - user + enforced: + module: + - photograpy +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - body + - field_photo_gallery +id: node.photograpy.default +targetEntityType: node +bundle: photograpy +mode: default +content: + body: + label: hidden + type: text_default + weight: 0 + settings: { } + third_party_settings: { } + region: ds_content + field_photo_gallery: + weight: 1 + label: above + settings: + colorbox_node_style: photo_gallery_image_style + colorbox_node_style_first: '' + colorbox_image_style: photo_gallery_large_image_style + colorbox_gallery: post + colorbox_gallery_custom: '' + colorbox_caption: auto + colorbox_caption_custom: '' + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: Photos + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-12 text-center mt-10 mb-10 fw-bold' + lbw-at: '' + ow-el: '' + ow-cl: '' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'row col-sm-4 center-block mt-5 mb-5' + fi-at: '' + suffix: '' + lb-col: false + ow: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: colorbox + region: ds_content +hidden: + langcode: true + links: true diff --git a/modules/kalpesh/photo_gallery/config/install/core.entity_view_display.node.photograpy.teaser.yml b/modules/kalpesh/photo_gallery/config/install/core.entity_view_display.node.photograpy.teaser.yml new file mode 100644 index 0000000..ba5c3b9 --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/core.entity_view_display.node.photograpy.teaser.yml @@ -0,0 +1,35 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.photograpy.body + - field.field.node.photograpy.field_photo_gallery + - node.type.photograpy + module: + - text + - user + enforced: + module: + - photograpy +id: node.photograpy.teaser +targetEntityType: node +bundle: photograpy +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + region: content + links: + weight: 100 + region: content + settings: { } + third_party_settings: { } +hidden: + field_photo_gallery: true + langcode: true diff --git a/modules/kalpesh/photo_gallery/config/install/field.field.node.photograpy.body.yml b/modules/kalpesh/photo_gallery/config/install/field.field.node.photograpy.body.yml new file mode 100644 index 0000000..12a48ec --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/field.field.node.photograpy.body.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.photograpy + module: + - text + enforced: + module: + - photograpy +id: node.photograpy.body +field_name: body +entity_type: node +bundle: photograpy +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary diff --git a/modules/kalpesh/photo_gallery/config/install/field.field.node.photograpy.field_photo_gallery.yml b/modules/kalpesh/photo_gallery/config/install/field.field.node.photograpy.field_photo_gallery.yml new file mode 100644 index 0000000..50857c8 --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/field.field.node.photograpy.field_photo_gallery.yml @@ -0,0 +1,40 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_photo_gallery + - node.type.photograpy + module: + - image + enforced: + module: + - photograpy +id: node.photograpy.field_photo_gallery +field_name: field_photo_gallery +entity_type: node +bundle: photograpy +label: images +description: 'photos of department ,activities' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: 'Photo Gallery' + file_extensions: 'png gif jpg jpeg' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: false + alt_field_required: false + title_field: false + title_field_required: false + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + handler: 'default:file' + handler_settings: { } +field_type: image diff --git a/modules/kalpesh/photo_gallery/config/install/field.storage.node.field_photo_gallery.yml b/modules/kalpesh/photo_gallery/config/install/field.storage.node.field_photo_gallery.yml new file mode 100644 index 0000000..d05ed8a --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/field.storage.node.field_photo_gallery.yml @@ -0,0 +1,32 @@ +langcode: en +status: true +dependencies: + module: + - file + - image + - node + enforced: + module: + - photograpy +id: node.field_photo_gallery +field_name: field_photo_gallery +entity_type: node +type: image +settings: + uri_scheme: public + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + target_type: file + display_field: false + display_default: false +module: image +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/photo_gallery/config/install/image.style.photo_gallery_image_style.yml b/modules/kalpesh/photo_gallery/config/install/image.style.photo_gallery_image_style.yml new file mode 100644 index 0000000..f73afbd --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/image.style.photo_gallery_image_style.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + enforced: + module: + - photograpy +name: photo_gallery_image_style +label: 'Photo Gallery image style' +effects: + d2f1e554-148d-47cf-8a90-be37d02a2f41: + uuid: d2f1e554-148d-47cf-8a90-be37d02a2f41 + id: image_scale_and_crop + weight: 1 + data: + width: 400 + height: 300 + anchor: center-center
\ No newline at end of file diff --git a/modules/kalpesh/photo_gallery/config/install/image.style.photo_gallery_large_image_style.yml b/modules/kalpesh/photo_gallery/config/install/image.style.photo_gallery_large_image_style.yml new file mode 100644 index 0000000..1fe5cf3 --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/image.style.photo_gallery_large_image_style.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + enforced: + module: + - photograpy +name: photo_gallery_large_image_style +label: 'Photo Gallery large image style' +effects: + b3967226-7f01-4a10-ae16-b5173b0e7b1d: + uuid: b3967226-7f01-4a10-ae16-b5173b0e7b1d + id: image_scale_and_crop + weight: 1 + data: + width: 480 + height: 480 + anchor: center-center
\ No newline at end of file diff --git a/modules/kalpesh/photo_gallery/config/install/node.type.photograpy.yml b/modules/kalpesh/photo_gallery/config/install/node.type.photograpy.yml new file mode 100644 index 0000000..cb4bc56 --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/node.type.photograpy.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui + enforced: + module: + - photograpy +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: 'Photo Gallery' +type: photograpy +description: 'Images of department and department activities' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/photo_gallery/config/install/responsive_image.styles.photo_gallery.yml b/modules/kalpesh/photo_gallery/config/install/responsive_image.styles.photo_gallery.yml new file mode 100644 index 0000000..ebac108 --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/responsive_image.styles.photo_gallery.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + config: + - image.style.photo_gallery_image_style + enforced: + module: + - photograpy +_core: + default_config_hash: Umj5KTYrfwM79WjP6IJpQHZGv0GEmu70WZarLM3BfTs +id: photo_gallery +label: 'Photo Gallery' +image_style_mappings: + - + breakpoint_id: responsive_image.viewport_sizing + multiplier: 1x + image_mapping_type: sizes + image_mapping: + sizes: '(min-width: 1290px) 325px, (min-width: 851px) 25vw, (min-width: 560px) 50vw, 100vw' + sizes_image_styles: + - photo_gallery_image_style +breakpoint_group: responsive_image +fallback_image_style: photo_gallery_image_style diff --git a/modules/kalpesh/photo_gallery/config/install/views.view.photo_gallery.yml b/modules/kalpesh/photo_gallery/config/install/views.view.photo_gallery.yml new file mode 100644 index 0000000..2c43748 --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/views.view.photo_gallery.yml @@ -0,0 +1,404 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_photo_gallery + - node.type.photograpy + - responsive_image.styles.photo_gallery + - system.menu.main + module: + - node + - responsive_image + - user + - views_bootstrap + enforced: + module: + - photograpy +id: photo_gallery +label: 'Photo Gallery' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: full + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + tags: + previous: ‹‹ + next: ›› + first: '« First' + last: 'Last »' + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + quantity: 9 + style: + type: views_bootstrap_grid + options: + grouping: { } + row_class: '' + default_row_class: false + alignment: horizontal + columns: '3' + col_xs: col-xs-12 + col_sm: col-sm-6 + col_md: col-md-4 + col_lg: col-lg-4 + row: + type: fields + options: + default_field_elements: true + inline: + field_photo_gallery: field_photo_gallery + separator: '' + hide_empty: false + fields: + field_photo_gallery: + id: field_photo_gallery + table: node__field_photo_gallery + field: field_photo_gallery + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: responsive_image + settings: + responsive_image_style: acad_fac_narrow + image_link: content + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 1 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + photograpy: photograpy + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Photo Gallery' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_photo_gallery' + block_1: + display_plugin: block + id: block_1 + display_title: Block + position: 2 + display_options: + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_photo_gallery' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: photo-gallery + menu: + type: normal + title: 'Photo Gallery' + menu_name: main + weight: -44 + fields: + field_photo_gallery: + id: field_photo_gallery + table: node__field_photo_gallery + field: field_photo_gallery + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: true + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: div + element_class: image + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: false + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: responsive_image + settings: + responsive_image_style: photo_gallery + image_link: content + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 1 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: div + element_class: text + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: div + element_wrapper_class: overlay + element_default_classes: false + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: node + entity_field: title + plugin_id: field + defaults: + fields: false + style: false + row: false + style: + type: default + options: + grouping: { } + row_class: '' + default_row_class: true + row: + type: fields + options: + default_field_elements: true + inline: + field_photo_gallery: field_photo_gallery + separator: '' + hide_empty: false + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_photo_gallery' diff --git a/modules/kalpesh/photo_gallery/photo_gallery.info.yml b/modules/kalpesh/photo_gallery/photo_gallery.info.yml new file mode 100644 index 0000000..69583dc --- /dev/null +++ b/modules/kalpesh/photo_gallery/photo_gallery.info.yml @@ -0,0 +1,18 @@ +name: photo_gallery +type: module +description: 'This module is use for stylish photo gallery' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:image + - drupal:path + - drupal:text + - colorbox:colorbox + - ds:ds + - drupal:user + - drupal:node + - drupal:file + - drupal:responsive_image + - views_bootstrap:views_bootstrap + diff --git a/modules/kalpesh/photo_gallery/photo_gallery.install b/modules/kalpesh/photo_gallery/photo_gallery.install new file mode 100644 index 0000000..216a83e --- /dev/null +++ b/modules/kalpesh/photo_gallery/photo_gallery.install @@ -0,0 +1,26 @@ + +<?php +/** +* Implements hook_uninstall(). +*/ +function photo_gallery_uninstall() { //<-- replace “welcome” with your module machine name + // Load services. + $queryFactory = \Drupal::service('entity.query'); + $nodeStorage = \Drupal::entityManager()->getStorage('node'); + + + + // Query all entity. + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + ->condition('type', 'photograpy'); + $nids = $query->execute(); + + + + // Delete entities. + if (!empty($nids)) { + $entities = $nodeStorage->loadMultiple($nids); + $nodeStorage->delete($entities); + } +} diff --git a/modules/kalpesh/photo_gallery/photo_gallery.module b/modules/kalpesh/photo_gallery/photo_gallery.module new file mode 100644 index 0000000..ed6ed11 --- /dev/null +++ b/modules/kalpesh/photo_gallery/photo_gallery.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains photo_gallery.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function photo_gallery_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the photo_gallery module. + case 'help.page.photo_gallery': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('This module is use for stylish photo gallery') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function photo_gallery_theme() { + return [ + 'photo_gallery' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/photo_gallery/templates/photo-gallery.html.twig b/modules/kalpesh/photo_gallery/templates/photo-gallery.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/photo_gallery/templates/photo-gallery.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/esha/achievements/tests/src/Functional/LoadTest.php b/modules/kalpesh/photo_gallery/tests/src/Functional/LoadTest.php index 0d54e64..dfe0211 100644 --- a/modules/esha/achievements/tests/src/Functional/LoadTest.php +++ b/modules/kalpesh/photo_gallery/tests/src/Functional/LoadTest.php @@ -1,6 +1,6 @@ <?php -namespace Drupal\Tests\achievements\Functional; +namespace Drupal\Tests\photo_gallery\Functional; use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; @@ -8,7 +8,7 @@ use Drupal\Tests\BrowserTestBase; /** * Simple test to ensure that main page loads with module enabled. * - * @group achievements + * @group photo_gallery */ class LoadTest extends BrowserTestBase { @@ -17,7 +17,7 @@ class LoadTest extends BrowserTestBase { * * @var array */ - public static $modules = ['achievements']; + public static $modules = ['photo_gallery']; /** * A user with permission to administer site configuration. diff --git a/modules/kalpesh/recruiters/composer.json b/modules/kalpesh/recruiters/composer.json new file mode 100644 index 0000000..4215cbe --- /dev/null +++ b/modules/kalpesh/recruiters/composer.json @@ -0,0 +1,13 @@ +{ + "name": "recruiters", + "type": "drupal-module", + "description": "This module store details of companies", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/recruiters", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/recruiters", + "source": "http://cgit.drupalcode.org/recruiters", + }, +} diff --git a/modules/kalpesh/recruiters/config/install/core.base_field_override.node.recruiters.promote.yml b/modules/kalpesh/recruiters/config/install/core.base_field_override.node.recruiters.promote.yml new file mode 100644 index 0000000..cc6df05 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/core.base_field_override.node.recruiters.promote.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - node.type.recruiters + enforced: + module: + - recruiters +id: node.recruiters.promote +field_name: promote +entity_type: node +bundle: recruiters +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/modules/kalpesh/recruiters/config/install/core.base_field_override.node.recruiters.title.yml.yml b/modules/kalpesh/recruiters/config/install/core.base_field_override.node.recruiters.title.yml.yml new file mode 100644 index 0000000..7e512d2 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/core.base_field_override.node.recruiters.title.yml.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + config: + - node.type.recruiters + enforced: + module: + - recruiters +id: node.recruiters.title +field_name: title +entity_type: node +bundle: recruiters +label: Recruiters +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/recruiters/config/install/core.entity_form_display.node.recruiters.default.yml b/modules/kalpesh/recruiters/config/install/core.entity_form_display.node.recruiters.default.yml new file mode 100644 index 0000000..bf89bbc --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/core.entity_form_display.node.recruiters.default.yml @@ -0,0 +1,102 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.recruiters.body + - field.field.node.recruiters.field_company_image + - field.field.node.recruiters.field_link + - image.style.thumbnail + - node.type.recruiters + module: + - image + - link + - path + - text +id: node.recruiters.default +targetEntityType: node +bundle: recruiters +mode: default +content: + body: + type: text_textarea_with_summary + weight: 10 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + region: content + created: + type: datetime_timestamp + weight: 5 + region: content + settings: { } + third_party_settings: { } + field_company_image: + weight: 2 + settings: + progress_indicator: throbber + preview_image_style: thumbnail + third_party_settings: { } + type: image_image + region: content + field_link: + weight: 11 + settings: + placeholder_url: '' + placeholder_title: '' + third_party_settings: { } + type: link_default + region: content + langcode: + type: language_select + weight: 3 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 8 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 6 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 9 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 7 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: 1 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 4 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { }
\ No newline at end of file diff --git a/modules/kalpesh/recruiters/config/install/core.entity_view_display.node.recruiters.default.yml b/modules/kalpesh/recruiters/config/install/core.entity_view_display.node.recruiters.default.yml new file mode 100644 index 0000000..1c37512 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/core.entity_view_display.node.recruiters.default.yml @@ -0,0 +1,159 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.recruiters.body + - field.field.node.recruiters.field_company_image + - field.field.node.recruiters.field_link + - image.style.recruiters_image_style_325_325 + - node.type.recruiters + module: + - ds + - image + - link + - text + - user +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - field_company_image + - body + - field_link +id: node.recruiters.default +targetEntityType: node +bundle: recruiters +mode: default +content: + body: + label: hidden + type: text_default + weight: 3 + settings: { } + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw-el: '' + lbw-cl: '' + lbw-at: '' + ow: true + ow-el: 'div ' + ow-cl: 'col-sm-11 ' + ow-at: '' + fis-el: div + fis-cl: '' + fis-at: '' + fi-el: '' + fi-cl: '' + fi-at: '' + suffix: '' + lbw: false + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi: false + fi-def-at: false + region: ds_content + field_company_image: + weight: 1 + label: hidden + settings: + image_style: recruiters_image_style_325_325 + image_link: '' + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: Logo + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: mb-10 + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: image + region: ds_content + field_link: + weight: 5 + label: inline + settings: + trim_length: 80 + url_only: false + url_plain: false + rel: '0' + target: '0' + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: 'Company official site' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-3 fw-bold mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: mt-5 + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: 'div ' + fi-cl: 'col-sm-8 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: link + region: ds_content +hidden: + langcode: true + links: true diff --git a/modules/kalpesh/recruiters/config/install/core.entity_view_display.node.recruiters.teaser.yml b/modules/kalpesh/recruiters/config/install/core.entity_view_display.node.recruiters.teaser.yml new file mode 100644 index 0000000..dc72d45 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/core.entity_view_display.node.recruiters.teaser.yml @@ -0,0 +1,33 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.recruiters.body + - node.type.recruiters + module: + - text + - user + enforced: + module: + - recruiters +id: node.recruiters.teaser +targetEntityType: node +bundle: recruiters +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + region: content + links: + weight: 100 + settings: { } + third_party_settings: { } + region: content +hidden: + langcode: true diff --git a/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.body.yml b/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.body.yml new file mode 100644 index 0000000..417841a --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.body.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.recruiters + module: + - text + enforced: + module: + - recruiters +id: node.recruiters.body +field_name: body +entity_type: node +bundle: recruiters +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary diff --git a/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.field_company_image.yml b/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.field_company_image.yml new file mode 100644 index 0000000..8f78c2d --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.field_company_image.yml @@ -0,0 +1,40 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_company_image + - node.type.recruiters + module: + - image + enforced: + module: + - recruiters +id: node.recruiters.field_company_image +field_name: field_company_image +entity_type: node +bundle: recruiters +label: 'Company logo' +description: 'Images of company ,activities' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: 'png gif jpg jpeg' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: true + alt_field_required: true + title_field: false + title_field_required: false + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + handler: 'default:file' + handler_settings: { } +field_type: image diff --git a/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.field_link.yml b/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.field_link.yml new file mode 100644 index 0000000..0d7d550 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.field_link.yml @@ -0,0 +1,25 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_link + - node.type.recruiters + module: + - link + enforced: + module: + - recruiters +id: node.recruiters.field_link +field_name: field_link +entity_type: node +bundle: recruiters +label: Link +description: 'Link of company' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + link_type: 17 + title: 1 +field_type: link diff --git a/modules/kalpesh/recruiters/config/install/field.storage.node.field_company_image.yml b/modules/kalpesh/recruiters/config/install/field.storage.node.field_company_image.yml new file mode 100644 index 0000000..81c2f3d --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/field.storage.node.field_company_image.yml @@ -0,0 +1,32 @@ +langcode: en +status: true +dependencies: + module: + - file + - image + - node + enforced: + module: + - recruiters +id: node.field_company_image +field_name: field_company_image +entity_type: node +type: image +settings: + uri_scheme: public + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + target_type: file + display_field: false + display_default: false +module: image +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/recruiters/config/install/field.storage.node.field_link.yml b/modules/kalpesh/recruiters/config/install/field.storage.node.field_link.yml new file mode 100644 index 0000000..85f3875 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/field.storage.node.field_link.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + module: + - link + - node + enforced: + module: + - recruiters +id: node.field_link +field_name: field_link +entity_type: node +type: link +settings: { } +module: link +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/recruiters/config/install/image.style.recruiters_image_style_325_325.yml b/modules/kalpesh/recruiters/config/install/image.style.recruiters_image_style_325_325.yml new file mode 100644 index 0000000..da59964 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/image.style.recruiters_image_style_325_325.yml @@ -0,0 +1,14 @@ +langcode: en +status: true +dependencies: { } +name: recruiters_image_style_325_325 +label: 'Recruiters Image style 325*325' +effects: + 9c2f048c-9992-4c3a-a1f9-c7953b2cf854: + uuid: 9c2f048c-9992-4c3a-a1f9-c7953b2cf854 + id: image_scale + weight: 1 + data: + width: 325 + height: 325 + upscale: false diff --git a/modules/kalpesh/recruiters/config/install/node.type.recruiters.yml b/modules/kalpesh/recruiters/config/install/node.type.recruiters.yml new file mode 100644 index 0000000..edceab8 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/node.type.recruiters.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui + enforced: + module: + - recruiters +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: Recruiters +type: recruiters +description: 'Companies details which come for placements' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/recruiters/config/install/responsive_image.styles.recruiters_image_style.yml b/modules/kalpesh/recruiters/config/install/responsive_image.styles.recruiters_image_style.yml new file mode 100644 index 0000000..aa5eaf7 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/responsive_image.styles.recruiters_image_style.yml @@ -0,0 +1,19 @@ +langcode: en +status: true +dependencies: + config: + - image.style.max_325x325 + - image.style.recruiters_image_style_325_325 +id: recruiters_image_style +label: 'Recruiters Image style' +image_style_mappings: + - + breakpoint_id: responsive_image.viewport_sizing + multiplier: 1x + image_mapping_type: sizes + image_mapping: + sizes: 100vw + sizes_image_styles: + - recruiters_image_style_325_325 +breakpoint_group: responsive_image +fallback_image_style: max_325x325 diff --git a/modules/kalpesh/recruiters/config/install/views.view.major_recruiters_.yml b/modules/kalpesh/recruiters/config/install/views.view.major_recruiters_.yml new file mode 100644 index 0000000..219210e --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/views.view.major_recruiters_.yml @@ -0,0 +1,258 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_company_image + - node.type.recruiters + - responsive_image.styles.recruiters_image_style + - system.menu.main + module: + - node + - responsive_image + - slick_views + - user +id: major_recruiters_ +label: 'Major Recruiters ' +module: views +description: 'companies which come for placements' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: slick + options: + vanilla: true + optionset: default + skin: '' + layout: '' + caption: + field_company_image: '0' + optionset_thumbnail: '' + skin_thumbnail: '' + thumbnail_position: '' + grid_header: '' + grid: 3 + grid_medium: 3 + grid_small: 2 + visible_items: 3 + preserve_keys: false + image: '' + thumbnail: '' + overlay: '' + title: '' + link: '' + class: '' + id: '' + override: true + overridables: + arrows: arrows + autoplay: autoplay + infinite: infinite + dots: '0' + draggable: '0' + mouseWheel: '0' + randomize: '0' + variableWidth: '0' + cache: 0 + current_view_mode: page_1 + thumbnail_effect: hover + row: + type: fields + options: + default_field_elements: true + inline: { } + separator: '' + hide_empty: false + fields: + field_company_image: + id: field_company_image + table: node__field_company_image + field: field_company_image + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: responsive_image + settings: + responsive_image_style: recruiters_image_style + image_link: content + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + recruiters: recruiters + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Major Recruiters ' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_company_image' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: major-recruiters- + menu: + type: normal + title: 'Major Recruiters ' + menu_name: main + weight: -43 + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_company_image' diff --git a/modules/kalpesh/recruiters/recruiters.info.yml b/modules/kalpesh/recruiters/recruiters.info.yml new file mode 100644 index 0000000..fa91464 --- /dev/null +++ b/modules/kalpesh/recruiters/recruiters.info.yml @@ -0,0 +1,18 @@ +name: Recruiters +type: module +description: 'This module store details of companies' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:image + - drupal:link + - drupal:path + - drupal:text + - ds:ds + - drupal:node + - drupal:user + - drupal:file + - slick_views:slick_views + + diff --git a/modules/kalpesh/recruiters/recruiters.install b/modules/kalpesh/recruiters/recruiters.install new file mode 100644 index 0000000..06b49ac --- /dev/null +++ b/modules/kalpesh/recruiters/recruiters.install @@ -0,0 +1,26 @@ + +<?php +/** +* Implements hook_uninstall(). +*/ +function recruiters_uninstall() { //<-- replace “welcome” with your module machine name + // Load services. + $queryFactory = \Drupal::service('entity.query'); + $nodeStorage = \Drupal::entityManager()->getStorage('node'); + + + + // Query all entity. + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + ->condition('type', 'recruiters'); + $nids = $query->execute(); + + + + // Delete entities. + if (!empty($nids)) { + $entities = $nodeStorage->loadMultiple($nids); + $nodeStorage->delete($entities); + } +} diff --git a/modules/kalpesh/recruiters/recruiters.module b/modules/kalpesh/recruiters/recruiters.module new file mode 100644 index 0000000..b438440 --- /dev/null +++ b/modules/kalpesh/recruiters/recruiters.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains recruiters.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function recruiters_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the recruiters module. + case 'help.page.recruiters': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('This module store details of companies') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function recruiters_theme() { + return [ + 'recruiters' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/recruiters/templates/recruiters.html.twig b/modules/kalpesh/recruiters/templates/recruiters.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/recruiters/templates/recruiters.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/esha/corporate/tests/src/Functional/LoadTest.php b/modules/kalpesh/recruiters/tests/src/Functional/LoadTest.php index 8e09521..9764cfb 100644 --- a/modules/esha/corporate/tests/src/Functional/LoadTest.php +++ b/modules/kalpesh/recruiters/tests/src/Functional/LoadTest.php @@ -1,6 +1,6 @@ <?php -namespace Drupal\Tests\corporate\Functional; +namespace Drupal\Tests\recruiters\Functional; use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; @@ -8,7 +8,7 @@ use Drupal\Tests\BrowserTestBase; /** * Simple test to ensure that main page loads with module enabled. * - * @group corporate + * @group recruiters */ class LoadTest extends BrowserTestBase { @@ -17,7 +17,7 @@ class LoadTest extends BrowserTestBase { * * @var array */ - public static $modules = ['corporate']; + public static $modules = ['recruiters']; /** * A user with permission to administer site configuration. diff --git a/modules/kalpesh/research_area1_/composer.json b/modules/kalpesh/research_area1_/composer.json new file mode 100644 index 0000000..c4858f4 --- /dev/null +++ b/modules/kalpesh/research_area1_/composer.json @@ -0,0 +1,13 @@ +{ + "name": "research_area1_", + "type": "drupal-module", + "description": "My Awesome Module", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/research_area1_", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/research_area1_", + "source": "http://cgit.drupalcode.org/research_area1_", + }, +} diff --git a/modules/kalpesh/research_area1_/config/install/core.base_field_override.node.research_area1_.promote.yml b/modules/kalpesh/research_area1_/config/install/core.base_field_override.node.research_area1_.promote.yml new file mode 100644 index 0000000..f98be1d --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/core.base_field_override.node.research_area1_.promote.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - node.type.research_area1_ + enforced: + module: + - research_area1_ +id: node.research_area1_.promote +field_name: promote +entity_type: node +bundle: research_area1_ +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/modules/kalpesh/research_area1_/config/install/core.entity_form_display.node.research_area1_.default.yml b/modules/kalpesh/research_area1_/config/install/core.entity_form_display.node.research_area1_.default.yml new file mode 100644 index 0000000..6c0ceb8 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/core.entity_form_display.node.research_area1_.default.yml @@ -0,0 +1,119 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.research_area1_.body + - field.field.node.research_area1_.field_image_research_area + - field.field.node.research_area1_.field_members + - field.field.node.research_area1_.field_publication_research_area + - image.style.image_h_400_w_600_ + - node.type.research_area1_ + module: + - image + - paragraphs + - path + - text + enforced: + module: + - research_area1_ +id: node.research_area1_.default +targetEntityType: node +bundle: research_area1_ +mode: default +content: + body: + type: text_textarea_with_summary + weight: 121 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + region: content + created: + type: datetime_timestamp + weight: 10 + region: content + settings: { } + third_party_settings: { } + field_image_research_area: + weight: 122 + settings: + preview_image_style: image_h_400_w_600_ + progress_indicator: throbber + third_party_settings: { } + type: image_image + region: content + field_members: + weight: 125 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + third_party_settings: { } + type: entity_reference_autocomplete + region: content + field_publication_research_area: + type: entity_reference_paragraphs + weight: 124 + settings: + title: Paragraph + title_plural: Paragraphs + edit_mode: open + add_mode: dropdown + form_display_mode: default + default_paragraph_type: '' + third_party_settings: { } + region: content + langcode: + type: language_select + weight: 2 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 30 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 15 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 120 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 16 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: -5 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 5 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { } diff --git a/modules/kalpesh/research_area1_/config/install/core.entity_view_display.node.research_area1_.default.yml b/modules/kalpesh/research_area1_/config/install/core.entity_view_display.node.research_area1_.default.yml new file mode 100644 index 0000000..ae7e7ff --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/core.entity_view_display.node.research_area1_.default.yml @@ -0,0 +1,267 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.research_area1_.body + - field.field.node.research_area1_.field_image_research_area + - field.field.node.research_area1_.field_members + - field.field.node.research_area1_.field_publication_research_area + - node.type.research_area1_ + module: + - ds + - entity_reference_revisions + - slick + - text + - user + enforced: + module: + - research_area1_ +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - links + - field_image_research_area + - body + - field_members + - field_publication_research_area +id: node.research_area1_.default +targetEntityType: node +bundle: research_area1_ +mode: default +content: + body: + label: hidden + type: text_default + weight: 2 + settings: { } + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw-el: '' + lbw-cl: '' + lbw-at: '' + ow: true + ow-el: div + ow-cl: col-sm-12 + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi-el: '' + fi-cl: '' + fi-at: '' + suffix: '' + lbw: false + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi: false + fi-def-at: false + region: ds_content + field_image_research_area: + weight: 1 + label: hidden + settings: + style: '' + optionset: node_img_slider + optionset_thumbnail: '' + skin: default + skin_thumbnail: '' + image_style: image_h_400_w_600_ + thumbnail_style: '' + responsive_image_style: '' + thumbnail_effect: '' + thumbnail_position: '' + media_switch: '' + ratio: '' + grid: null + grid_medium: null + grid_small: null + visible_items: null + layout: '' + thumbnail_caption: '' + cache: 0 + sizes: '' + breakpoints: + xs: + image_style: '' + width: '' + breakpoint: '' + sm: + image_style: '' + width: '' + breakpoint: '' + md: + image_style: '' + width: '' + breakpoint: '' + lg: + image_style: '' + width: '' + breakpoint: '' + xl: + image_style: '' + width: '' + breakpoint: '' + current_view_mode: default + background: false + caption: + title: '0' + alt: '0' + grid_header: '' + preserve_keys: false + override: false + overridables: + arrows: '0' + autoplay: '0' + dots: '0' + draggable: '0' + infinite: '0' + mouseWheel: '0' + randomize: '0' + variableWidth: '0' + skin_arrows: '' + skin_dots: '' + iframe_lazy: true + icon: '' + view_mode: '' + box_caption: '' + box_caption_custom: '' + box_style: '' + box_media_style: '' + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw-el: '' + lbw-cl: '' + lbw-at: '' + ow-el: div + ow-cl: '' + ow-at: 'style="margin:auto"' + fis-el: '' + fis-cl: '' + fis-at: '' + fi-el: '' + fi-cl: '' + fi-at: '' + suffix: '' + lbw: false + lb-col: false + ow: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi: false + fi-def-at: false + type: slick_image + region: ds_content + field_members: + weight: 3 + label: inline + settings: + link: true + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis: true + fis-el: div + fis-cl: 'col-sm-10 ' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mt-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis-def-at: false + fi-def-at: false + type: entity_reference_label + region: ds_content + field_publication_research_area: + type: entity_reference_revisions_entity_view + weight: 4 + label: inline + settings: + view_mode: default + link: '' + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-12 fw-bold text-center' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'row ' + ow-at: '' + fis-el: div + fis-cl: ' col-sm-5 mt-10 mb-10' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-6 mt-10 mb-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + region: ds_content + links: + weight: 0 + region: ds_content + settings: { } + third_party_settings: { } +hidden: + langcode: true diff --git a/modules/kalpesh/research_area1_/config/install/core.entity_view_display.node.research_area1_.teaser.yml b/modules/kalpesh/research_area1_/config/install/core.entity_view_display.node.research_area1_.teaser.yml new file mode 100644 index 0000000..d75619b --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/core.entity_view_display.node.research_area1_.teaser.yml @@ -0,0 +1,33 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.research_area1_.body + - node.type.research_area1_ + module: + - text + - user + enforced: + module: + - research_area1_ +id: node.research_area1_.teaser +targetEntityType: node +bundle: research_area1_ +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + region: content + links: + weight: 100 + settings: { } + third_party_settings: { } + region: content +hidden: + langcode: true diff --git a/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.body.yml b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.body.yml new file mode 100644 index 0000000..19e8d8e --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.body.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.research_area1_ + module: + - text + enforced: + module: + - research_area1_ +id: node.research_area1_.body +field_name: body +entity_type: node +bundle: research_area1_ +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary diff --git a/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_image_research_area.yml b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_image_research_area.yml new file mode 100644 index 0000000..db2b50c --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_image_research_area.yml @@ -0,0 +1,40 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_image_research_area + - node.type.research_area1_ + module: + - image + enforced: + module: + - research_area1_ +id: node.research_area1_.field_image_research_area +field_name: field_image_research_area +entity_type: node +bundle: research_area1_ +label: Image +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: research + file_extensions: 'png gif jpg jpeg' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: true + alt_field_required: false + title_field: false + title_field_required: false + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + handler: 'default:file' + handler_settings: { } +field_type: image diff --git a/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_members.yml b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_members.yml new file mode 100644 index 0000000..0964cc7 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_members.yml @@ -0,0 +1,31 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_members + - node.type.members + - node.type.research_area1_ + enforced: + module: + - research_area1_ +id: node.research_area1_.field_members +field_name: field_members +entity_type: node +bundle: research_area1_ +label: Members +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:node' + handler_settings: + target_bundles: + members: members + research_area1_: research_area1_ + sort: + field: _none + auto_create: false + auto_create_bundle: members +field_type: entity_reference diff --git a/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_publication_research_area.yml b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_publication_research_area.yml new file mode 100644 index 0000000..5a404fb --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_publication_research_area.yml @@ -0,0 +1,33 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_publication_research_area + - node.type.research_area1_ + - paragraphs.paragraphs_type.publication + module: + - entity_reference_revisions + enforced: + module: + - research_area1_ +id: node.research_area1_.field_publication_research_area +field_name: field_publication_research_area +entity_type: node +bundle: research_area1_ +label: Publication +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:paragraph' + handler_settings: + negate: 0 + target_bundles: + publication: publication + target_bundles_drag_drop: + publication: + enabled: true + weight: 2 +field_type: entity_reference_revisions diff --git a/modules/kalpesh/research_area1_/config/install/field.storage.node.field_image_research_area.yml b/modules/kalpesh/research_area1_/config/install/field.storage.node.field_image_research_area.yml new file mode 100644 index 0000000..dfe6ad4 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.storage.node.field_image_research_area.yml @@ -0,0 +1,32 @@ +langcode: en +status: true +dependencies: + module: + - file + - image + - node + enforced: + module: + - research_area1_ +id: node.field_image_research_area +field_name: field_image_research_area +entity_type: node +type: image +settings: + uri_scheme: public + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + target_type: file + display_field: false + display_default: false +module: image +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/research_area1_/config/install/field.storage.node.field_members.yml b/modules/kalpesh/research_area1_/config/install/field.storage.node.field_members.yml new file mode 100644 index 0000000..2e694b6 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.storage.node.field_members.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - research_area1_ +id: node.field_members +field_name: field_members +entity_type: node +type: entity_reference +settings: + target_type: node +module: core +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/research_area1_/config/install/field.storage.node.field_publication_research_area.yml b/modules/kalpesh/research_area1_/config/install/field.storage.node.field_publication_research_area.yml new file mode 100644 index 0000000..9ac5fec --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.storage.node.field_publication_research_area.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + module: + - entity_reference_revisions + - node + - paragraphs + enforced: + module: + - research_area1_ +id: node.field_publication_research_area +field_name: field_publication_research_area +entity_type: node +type: entity_reference_revisions +settings: + target_type: paragraph +module: entity_reference_revisions +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/research_area1_/config/install/image.style.group_research_area_image.yml b/modules/kalpesh/research_area1_/config/install/image.style.group_research_area_image.yml new file mode 100644 index 0000000..b4c0f1f --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/image.style.group_research_area_image.yml @@ -0,0 +1,14 @@ +langcode: en +status: true +dependencies: { } +name: group_research_area_image +label: 'Group Research area image' +effects: + 366cac20-7b38-410e-b508-129e23608539: + uuid: 366cac20-7b38-410e-b508-129e23608539 + id: image_scale_and_crop + weight: 1 + data: + width: 400 + height: 300 + anchor: center-center diff --git a/modules/kalpesh/research_area1_/config/install/image.style.image_h_400_w_600_.yml b/modules/kalpesh/research_area1_/config/install/image.style.image_h_400_w_600_.yml new file mode 100644 index 0000000..a2b3484 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/image.style.image_h_400_w_600_.yml @@ -0,0 +1,14 @@ +langcode: en +status: true +dependencies: { } +name: image_h_400_w_600_ +label: 'image h:400 * w:600 ' +effects: + b6e987e1-7974-4e21-9f6f-df8cb3a8b21f: + uuid: b6e987e1-7974-4e21-9f6f-df8cb3a8b21f + id: image_scale_and_crop + weight: 1 + data: + width: 600 + height: 400 + anchor: center-center diff --git a/modules/kalpesh/research_area1_/config/install/node.type.research_area1_.yml b/modules/kalpesh/research_area1_/config/install/node.type.research_area1_.yml new file mode 100644 index 0000000..5ca91d5 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/node.type.research_area1_.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui + enforced: + module: + - research_area1_ +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: 'Research Area' +type: research_area1_ +description: '' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/research_area1_/config/install/paragraphs.paragraphs_type.publication.yml b/modules/kalpesh/research_area1_/config/install/paragraphs.paragraphs_type.publication.yml new file mode 100644 index 0000000..cbf517e --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/paragraphs.paragraphs_type.publication.yml @@ -0,0 +1,11 @@ +langcode: en +status: true +dependencies: + enforced: + module: + - research_area1_ +id: publication +label: Publication +icon_uuid: null +description: '' +behavior_plugins: { } diff --git a/modules/kalpesh/research_area1_/config/install/views.view.research_area.yml b/modules/kalpesh/research_area1_/config/install/views.view.research_area.yml new file mode 100644 index 0000000..1162b54 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/views.view.research_area.yml @@ -0,0 +1,416 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - field.storage.node.field_image_research_area + - image.style.group_research_area_image + - node.type.research_area1_ + - system.menu.main + module: + - image + - node + - text + - user + enforced: + module: + - research_area1_ +id: research_area +label: 'Research Area' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: full + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + tags: + previous: ‹‹ + next: ›› + first: '« First' + last: 'Last »' + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + quantity: 9 + style: + type: default + options: + grouping: { } + row_class: mb-30 + default_row_class: true + row: + type: fields + options: + default_field_elements: true + inline: { } + separator: '' + hide_empty: false + fields: + field_image_research_area: + id: field_image_research_area + table: node__field_image_research_area + field: field_image_research_area + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: image + settings: + image_style: group_research_area_image + image_link: content + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 1 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: false + ellipsis: false + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: h4 + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: false + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: node + entity_field: title + plugin_id: field + body: + id: body + table: node__body + field: body + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: mb-20 + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: false + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: summary + type: text_trimmed + settings: + trim_length: 500 + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + view_node: + id: view_node + table: node + field: view_node + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: btn + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: false + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + text: 'read more' + output_url_as_text: false + absolute: false + entity_type: node + plugin_id: entity_link + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + research_area1_: research_area1_ + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Research Area' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + css_class: '' + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.body' + - 'config:field.storage.node.field_image_research_area' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: research-area + menu: + type: normal + title: 'Research Area' + menu_name: main + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.body' + - 'config:field.storage.node.field_image_research_area' diff --git a/modules/kalpesh/research_area1_/research_area1_.info.yml b/modules/kalpesh/research_area1_/research_area1_.info.yml new file mode 100644 index 0000000..13e65d4 --- /dev/null +++ b/modules/kalpesh/research_area1_/research_area1_.info.yml @@ -0,0 +1,18 @@ +name: research_group +type: module +description: 'My Awesome Module' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:user + - drupal:node + - drupal:image + - paragraphs:paragraphs + - drupal:path + - drupal:text + - ds:ds + - entity_reference_revisions:entity_reference_revisions + - slick:slick + - drupal:file + diff --git a/modules/kalpesh/research_area1_/research_area1_.install b/modules/kalpesh/research_area1_/research_area1_.install new file mode 100644 index 0000000..65b64ff --- /dev/null +++ b/modules/kalpesh/research_area1_/research_area1_.install @@ -0,0 +1,26 @@ + +<?php +/** +* Implements hook_uninstall(). +*/ +function research_area1__uninstall() { //<-- replace “welcome” with your module machine name + // Load services. + $queryFactory = \Drupal::service('entity.query'); + $nodeStorage = \Drupal::entityManager()->getStorage('node'); + + + + // Query all entity. + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + ->condition('type', 'research_area1_'); + $nids = $query->execute(); + + + + // Delete entities. + if (!empty($nids)) { + $entities = $nodeStorage->loadMultiple($nids); + $nodeStorage->delete($entities); + } +} diff --git a/modules/kalpesh/research_area1_/research_area1_.module b/modules/kalpesh/research_area1_/research_area1_.module new file mode 100644 index 0000000..17b1175 --- /dev/null +++ b/modules/kalpesh/research_area1_/research_area1_.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains research_area1_.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function research_area1__help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the research_area1_ module. + case 'help.page.research_area1_': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('My Awesome Module') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function research_area1__theme() { + return [ + 'research_area1_' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/research_area1_/templates/research-area1-.html.twig b/modules/kalpesh/research_area1_/templates/research-area1-.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/research_area1_/templates/research-area1-.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/kalpesh/research_area1_/tests/src/Functional/LoadTest.php b/modules/kalpesh/research_area1_/tests/src/Functional/LoadTest.php new file mode 100644 index 0000000..b68de6f --- /dev/null +++ b/modules/kalpesh/research_area1_/tests/src/Functional/LoadTest.php @@ -0,0 +1,46 @@ +<?php + +namespace Drupal\Tests\research_area1_\Functional; + +use Drupal\Core\Url; +use Drupal\Tests\BrowserTestBase; + +/** + * Simple test to ensure that main page loads with module enabled. + * + * @group research_area1_ + */ +class LoadTest extends BrowserTestBase { + + /** + * Modules to enable. + * + * @var array + */ + public static $modules = ['research_area1_']; + + /** + * A user with permission to administer site configuration. + * + * @var \Drupal\user\UserInterface + */ + protected $user; + + /** + * {@inheritdoc} + */ + protected function setUp() { + parent::setUp(); + $this->user = $this->drupalCreateUser(['administer site configuration']); + $this->drupalLogin($this->user); + } + + /** + * Tests that the home page loads with a 200 response. + */ + public function testLoad() { + $this->drupalGet(Url::fromRoute('<front>')); + $this->assertSession()->statusCodeEquals(200); + } + +} diff --git a/modules/kalpesh/syllbus/composer.json b/modules/kalpesh/syllbus/composer.json new file mode 100644 index 0000000..f7fc777 --- /dev/null +++ b/modules/kalpesh/syllbus/composer.json @@ -0,0 +1,13 @@ +{ + "name": "syllbus", + "type": "drupal-module", + "description": "This module is store the university syllbus", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/syllbus", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/syllbus", + "source": "http://cgit.drupalcode.org/syllbus", + }, +} diff --git a/modules/kalpesh/syllbus/config/install/core.base_field_override.node.syllbus.promote.yml b/modules/kalpesh/syllbus/config/install/core.base_field_override.node.syllbus.promote.yml new file mode 100644 index 0000000..5ef1af3 --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/core.base_field_override.node.syllbus.promote.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - node.type.syllbus + enforced: + module: + - syllbus +id: node.syllbus.promote +field_name: promote +entity_type: node +bundle: syllbus +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/modules/kalpesh/syllbus/config/install/core.base_field_override.node.syllbus.title.yml b/modules/kalpesh/syllbus/config/install/core.base_field_override.node.syllbus.title.yml new file mode 100644 index 0000000..d5c2c45 --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/core.base_field_override.node.syllbus.title.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + config: + - node.type.syllbus + enforced: + module: + - syllbus +id: node.syllbus.title +field_name: title +entity_type: node +bundle: syllbus +label: Syllbus +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/syllbus/config/install/core.entity_form_display.node.syllbus.default.yml b/modules/kalpesh/syllbus/config/install/core.entity_form_display.node.syllbus.default.yml new file mode 100644 index 0000000..5a07108 --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/core.entity_form_display.node.syllbus.default.yml @@ -0,0 +1,93 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.syllbus.body + - field.field.node.syllbus.field_pdf + - node.type.syllbus + module: + - file + - path + - text + enforced: + module: + - syllbus +id: node.syllbus.default +targetEntityType: node +bundle: syllbus +mode: default +content: + body: + type: text_textarea_with_summary + weight: 11 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + region: content + created: + type: datetime_timestamp + weight: 6 + region: content + settings: { } + third_party_settings: { } + field_pdf: + weight: 26 + settings: + progress_indicator: throbber + third_party_settings: { } + type: file_generic + region: content + langcode: + type: language_select + weight: 4 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 9 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 7 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 10 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 8 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: 'Enter year ex FE,SE,TE,BE etc ' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 5 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { } diff --git a/modules/kalpesh/syllbus/config/install/core.entity_view_display.node.syllbus.default.yml b/modules/kalpesh/syllbus/config/install/core.entity_view_display.node.syllbus.default.yml new file mode 100644 index 0000000..5b41b7c --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/core.entity_view_display.node.syllbus.default.yml @@ -0,0 +1,88 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.syllbus.body + - field.field.node.syllbus.field_pdf + - node.type.syllbus + module: + - ds + - file + - text + - user + enforced: + module: + - syllbus +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - body + - field_pdf +id: node.syllbus.default +targetEntityType: node +bundle: syllbus +mode: default +content: + body: + label: hidden + type: text_default + weight: 101 + settings: { } + third_party_settings: { } + region: ds_content + field_pdf: + weight: 102 + label: above + settings: + use_description_as_link_text: true + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: 'PDF File' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: mb-10 + ow-at: '' + fis: true + fis-el: 'div ' + fis-cl: col-sm-10 + fis-at: '' + fi: true + fi-el: div + fi-cl: col-sm-10 + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis-def-at: false + fi-def-at: false + type: file_default + region: ds_content +hidden: + langcode: true + links: true diff --git a/modules/kalpesh/syllbus/config/install/core.entity_view_display.node.syllbus.teaser.yml b/modules/kalpesh/syllbus/config/install/core.entity_view_display.node.syllbus.teaser.yml new file mode 100644 index 0000000..399f96a --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/core.entity_view_display.node.syllbus.teaser.yml @@ -0,0 +1,33 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.syllbus.body + - node.type.syllbus + module: + - text + - user + enforced: + module: + - syllbus +id: node.syllbus.teaser +targetEntityType: node +bundle: syllbus +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + region: content + links: + weight: 100 + settings: { } + third_party_settings: { } + region: content +hidden: + langcode: true diff --git a/modules/kalpesh/syllbus/config/install/field.field.node.syllbus.body.yml b/modules/kalpesh/syllbus/config/install/field.field.node.syllbus.body.yml new file mode 100644 index 0000000..c5b8e52 --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/field.field.node.syllbus.body.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.syllbus + module: + - text + enforced: + module: + - syllbus +id: node.syllbus.body +field_name: body +entity_type: node +bundle: syllbus +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary diff --git a/modules/kalpesh/syllbus/config/install/field.field.node.syllbus.field_pdf.yml b/modules/kalpesh/syllbus/config/install/field.field.node.syllbus.field_pdf.yml new file mode 100644 index 0000000..cf7f10b --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/field.field.node.syllbus.field_pdf.yml @@ -0,0 +1,29 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_pdf + - node.type.syllbus + module: + - file + enforced: + module: + - syllbus +id: node.syllbus.field_pdf +field_name: field_pdf +entity_type: node +bundle: syllbus +label: PDF +description: 'PDF of syllbus' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: pdf + max_filesize: '10 MB' + description_field: true + handler: 'default:file' + handler_settings: { } +field_type: file diff --git a/modules/kalpesh/syllbus/config/install/field.storage.node.field_pdf.yml b/modules/kalpesh/syllbus/config/install/field.storage.node.field_pdf.yml new file mode 100644 index 0000000..0783902 --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/field.storage.node.field_pdf.yml @@ -0,0 +1,25 @@ +langcode: en +status: true +dependencies: + module: + - file + - node + enforced: + module: + - syllbus +id: node.field_pdf +field_name: field_pdf +entity_type: node +type: file +settings: + display_field: false + display_default: true + uri_scheme: public + target_type: file +module: file +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/syllbus/config/install/node.type.syllbus.yml b/modules/kalpesh/syllbus/config/install/node.type.syllbus.yml new file mode 100644 index 0000000..b548d33 --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/node.type.syllbus.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui + enforced: + module: + - syllbus +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: Syllbus +type: syllbus +description: 'Syllbus of FE ,SE, TE, BE' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/syllbus/config/install/views.view.syllabus.yml b/modules/kalpesh/syllbus/config/install/views.view.syllabus.yml new file mode 100644 index 0000000..3b80486 --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/views.view.syllabus.yml @@ -0,0 +1,303 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_pdf + - node.type.syllbus + - system.menu.main + module: + - file + - node + - user + - views_bootstrap + enforced: + module: + - syllbus +id: syllabus +label: syllabus +module: views +description: 'year wise syllabus' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: full + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + tags: + previous: ‹‹ + next: ›› + first: '« First' + last: 'Last »' + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + quantity: 9 + style: + type: views_bootstrap_grid + options: + grouping: { } + row_class: 'mb-30 ' + default_row_class: true + alignment: horizontal + columns: '2' + col_xs: col-xs-12 + col_sm: col-sm-12 + col_md: col-md-12 + col_lg: col-lg-6 + row: + type: fields + options: + default_field_elements: true + inline: + title: title + field_pdf: field_pdf + separator: '' + hide_empty: false + fields: + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: false + ellipsis: false + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: false + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: node + entity_field: title + plugin_id: field + field_pdf: + id: field_pdf + table: node__field_pdf + field: field_pdf + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: file_default + settings: + use_description_as_link_text: true + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + syllbus: syllbus + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + relationship: none + group_type: group + admin_label: '' + order: ASC + exposed: false + expose: + label: '' + granularity: second + entity_type: node + entity_field: created + plugin_id: date + title: syllabus + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_pdf' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: syllabus + menu: + type: normal + title: syllabus + menu_name: main + weight: -45 + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_pdf' diff --git a/modules/kalpesh/syllbus/syllbus.info.yml b/modules/kalpesh/syllbus/syllbus.info.yml new file mode 100644 index 0000000..292ace7 --- /dev/null +++ b/modules/kalpesh/syllbus/syllbus.info.yml @@ -0,0 +1,15 @@ +name: Syllbus +type: module +description: 'This module is store the university syllbus' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:file + - drupal:path + - drupal:text + - ds:ds + - drupal:user + - drupal:node + - views_bootstrap:views_bootstrap + diff --git a/modules/kalpesh/syllbus/syllbus.install b/modules/kalpesh/syllbus/syllbus.install new file mode 100644 index 0000000..7a97fab --- /dev/null +++ b/modules/kalpesh/syllbus/syllbus.install @@ -0,0 +1,26 @@ + +<?php +/** +* Implements hook_uninstall(). +*/ +function syllbus_uninstall() { //<-- replace “welcome” with your module machine name + // Load services. + $queryFactory = \Drupal::service('entity.query'); + $nodeStorage = \Drupal::entityManager()->getStorage('node'); + + + + // Query all entity. + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + ->condition('type', 'syllbus'); + $nids = $query->execute(); + + + + // Delete entities. + if (!empty($nids)) { + $entities = $nodeStorage->loadMultiple($nids); + $nodeStorage->delete($entities); + } +} diff --git a/modules/kalpesh/syllbus/syllbus.module b/modules/kalpesh/syllbus/syllbus.module new file mode 100644 index 0000000..d06006c --- /dev/null +++ b/modules/kalpesh/syllbus/syllbus.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains syllbus.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function syllbus_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the syllbus module. + case 'help.page.syllbus': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('This module is store the university syllbus') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function syllbus_theme() { + return [ + 'syllbus' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/syllbus/templates/syllbus.html.twig b/modules/kalpesh/syllbus/templates/syllbus.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/syllbus/templates/syllbus.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/esha/programs/tests/src/Functional/LoadTest.php b/modules/kalpesh/syllbus/tests/src/Functional/LoadTest.php index 8d3d7ab..d47884f 100644 --- a/modules/esha/programs/tests/src/Functional/LoadTest.php +++ b/modules/kalpesh/syllbus/tests/src/Functional/LoadTest.php @@ -1,6 +1,6 @@ <?php -namespace Drupal\Tests\programs\Functional; +namespace Drupal\Tests\syllbus\Functional; use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; @@ -8,7 +8,7 @@ use Drupal\Tests\BrowserTestBase; /** * Simple test to ensure that main page loads with module enabled. * - * @group programs + * @group syllbus */ class LoadTest extends BrowserTestBase { @@ -17,7 +17,7 @@ class LoadTest extends BrowserTestBase { * * @var array */ - public static $modules = ['programs']; + public static $modules = ['syllbus']; /** * A user with permission to administer site configuration. diff --git a/modules/mansimran/student_clubs/config/install/migrate_plus.migration.clubs_1.yml b/modules/mansimran/student_clubs/config/install/migrate_plus.migration.clubs_1.yml index d516c01..096aecc 100644 --- a/modules/mansimran/student_clubs/config/install/migrate_plus.migration.clubs_1.yml +++ b/modules/mansimran/student_clubs/config/install/migrate_plus.migration.clubs_1.yml @@ -40,19 +40,19 @@ process: body/format: plugin: default_value default_value: basic_html - field_logo_of_organisation: - plugin: file_import - source: '@source_path' - destination: constants/file_dest field_facebook_link/uri: fb_link field_facebook_link/title: plugin: default_value default_value: 'Fb Link' + field_logo_of_organisation: + plugin: file_import + source: '@source_path' + destination: constants/file_dest field_organisation_category: plugin: entity_lookup entity_type: taxonomy_term bundle: category_of_organisation - source: organisation_category + source: category destination: plugin: 'entity:node' bundle: club_and_chapter |