forked from Drupalcat/drupalcat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Task Drupalcat#48: Tipus de contingut Event
- Loading branch information
1 parent
32028e0
commit 636244a
Showing
15 changed files
with
372 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
drupalcat/config/install/core.base_field_override.node.event.promote.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
uuid: 4a1559ad-8b52-43c8-8605-5e93c7faa7d3 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- node.type.event | ||
id: node.event.promote | ||
field_name: promote | ||
entity_type: node | ||
bundle: event | ||
label: Promote | ||
description: 'A boolean indicating whether the node should be displayed on the front page.' | ||
required: false | ||
translatable: true | ||
default_value: | ||
- | ||
value: 0 | ||
default_value_callback: '' | ||
settings: { } | ||
third_party_settings: { } | ||
field_type: boolean |
78 changes: 78 additions & 0 deletions
78
drupalcat/config/install/core.entity_form_display.node.event.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
uuid: 407cd098-2d88-4ea8-a206-6f981cebc5db | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.node.event.field_event_cos | ||
- field.field.node.event.field_event_data | ||
- field.field.node.event.field_event_lloc | ||
- field.field.node.event.field_event_tipus | ||
- node.type.event | ||
module: | ||
- datetime | ||
- entity_reference | ||
id: node.event.default | ||
targetEntityType: node | ||
bundle: event | ||
mode: default | ||
content: | ||
title: | ||
type: string_textfield | ||
weight: 0 | ||
settings: | ||
size: 60 | ||
placeholder: '' | ||
third_party_settings: { } | ||
field_event_tipus: | ||
type: options_select | ||
weight: 1 | ||
settings: { } | ||
third_party_settings: { } | ||
uid: | ||
type: entity_reference_autocomplete | ||
weight: 2 | ||
settings: | ||
match_operator: CONTAINS | ||
size: 60 | ||
autocomplete_type: tags | ||
placeholder: '' | ||
third_party_settings: { } | ||
created: | ||
type: datetime_timestamp | ||
weight: 3 | ||
settings: { } | ||
third_party_settings: { } | ||
promote: | ||
type: boolean_checkbox | ||
weight: 4 | ||
settings: | ||
display_label: true | ||
third_party_settings: { } | ||
sticky: | ||
type: boolean_checkbox | ||
weight: 5 | ||
settings: | ||
display_label: true | ||
third_party_settings: { } | ||
field_event_cos: | ||
type: string_textarea | ||
weight: 6 | ||
settings: | ||
rows: 5 | ||
placeholder: '' | ||
third_party_settings: { } | ||
field_event_data: | ||
type: datetime_default | ||
weight: 7 | ||
settings: { } | ||
third_party_settings: { } | ||
field_event_lloc: | ||
type: string_textarea | ||
weight: 8 | ||
settings: | ||
rows: 5 | ||
placeholder: '' | ||
third_party_settings: { } | ||
hidden: | ||
body: true | ||
third_party_settings: { } |
51 changes: 51 additions & 0 deletions
51
drupalcat/config/install/core.entity_view_display.node.event.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
uuid: e60c1ffb-bd38-4fd8-bc5f-95f17b6272d9 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.node.event.field_event_cos | ||
- field.field.node.event.field_event_data | ||
- field.field.node.event.field_event_lloc | ||
- field.field.node.event.field_event_tipus | ||
- node.type.event | ||
module: | ||
- datetime | ||
- taxonomy | ||
- user | ||
id: node.event.default | ||
label: null | ||
targetEntityType: node | ||
bundle: event | ||
mode: default | ||
content: | ||
links: | ||
weight: 100 | ||
field_event_cos: | ||
weight: 102 | ||
label: above | ||
settings: { } | ||
third_party_settings: { } | ||
type: basic_string | ||
field_event_data: | ||
weight: 103 | ||
label: above | ||
settings: | ||
format_type: medium | ||
third_party_settings: { } | ||
type: datetime_default | ||
field_event_lloc: | ||
weight: 104 | ||
label: above | ||
settings: { } | ||
third_party_settings: { } | ||
type: basic_string | ||
field_event_tipus: | ||
weight: 105 | ||
label: above | ||
settings: { } | ||
third_party_settings: { } | ||
type: taxonomy_term_reference_link | ||
hidden: | ||
langcode: true | ||
body: true | ||
third_party_settings: { } |
27 changes: 27 additions & 0 deletions
27
drupalcat/config/install/core.entity_view_display.node.event.teaser.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
uuid: 3e470696-dd45-4591-b65a-902aba3ba726 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- core.entity_view_mode.node.teaser | ||
- field.field.node.event.field_event_cos | ||
- field.field.node.event.field_event_data | ||
- field.field.node.event.field_event_lloc | ||
- node.type.event | ||
module: | ||
- user | ||
id: node.event.teaser | ||
label: null | ||
targetEntityType: node | ||
bundle: event | ||
mode: teaser | ||
content: | ||
links: | ||
weight: 100 | ||
hidden: | ||
langcode: true | ||
field_event_cos: true | ||
field_event_data: true | ||
field_event_lloc: true | ||
body: true | ||
third_party_settings: { } |
22 changes: 22 additions & 0 deletions
22
drupalcat/config/install/field.field.node.event.field_event_cos.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
uuid: 74169103-d726-4409-8c2f-47c03c55e1a1 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.node.field_event_cos | ||
- node.type.event | ||
id: node.event.field_event_cos | ||
field_name: field_event_cos | ||
entity_type: node | ||
bundle: event | ||
label: Cos | ||
description: '' | ||
required: false | ||
translatable: false | ||
default_value: | ||
- | ||
value: '' | ||
default_value_callback: '' | ||
settings: { } | ||
third_party_settings: { } | ||
field_type: string_long |
22 changes: 22 additions & 0 deletions
22
drupalcat/config/install/field.field.node.event.field_event_data.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
uuid: 1461d7fa-0987-4d2e-9c24-36b8b4ba09d4 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.node.field_event_data | ||
- node.type.event | ||
module: | ||
- datetime | ||
id: node.event.field_event_data | ||
field_name: field_event_data | ||
entity_type: node | ||
bundle: event | ||
label: Data | ||
description: '' | ||
required: false | ||
translatable: false | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: { } | ||
third_party_settings: { } | ||
field_type: datetime |
22 changes: 22 additions & 0 deletions
22
drupalcat/config/install/field.field.node.event.field_event_lloc.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
uuid: 70a73542-f34d-4a20-8a1a-2691211625d6 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.node.field_event_lloc | ||
- node.type.event | ||
id: node.event.field_event_lloc | ||
field_name: field_event_lloc | ||
entity_type: node | ||
bundle: event | ||
label: Lloc | ||
description: '' | ||
required: false | ||
translatable: false | ||
default_value: | ||
- | ||
value: '' | ||
default_value_callback: '' | ||
settings: { } | ||
third_party_settings: { } | ||
field_type: string_long |
23 changes: 23 additions & 0 deletions
23
drupalcat/config/install/field.field.node.event.field_event_tipus.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
uuid: 376863ac-b072-4bd8-9116-223861212c36 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.node.field_event_tipus | ||
- node.type.event | ||
module: | ||
- taxonomy | ||
id: node.event.field_event_tipus | ||
field_name: field_event_tipus | ||
entity_type: node | ||
bundle: event | ||
label: 'Tipus Event' | ||
description: '' | ||
required: true | ||
translatable: false | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: | ||
handler: default | ||
third_party_settings: { } | ||
field_type: taxonomy_term_reference |
17 changes: 17 additions & 0 deletions
17
drupalcat/config/install/field.storage.node.field_event_cos.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
uuid: 9afb3d24-89c9-4701-8900-f51fef2b4b71 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- node | ||
id: node.field_event_cos | ||
field_name: field_event_cos | ||
entity_type: node | ||
type: string_long | ||
settings: { } | ||
module: core | ||
locked: false | ||
cardinality: 1 | ||
translatable: true | ||
indexes: { } | ||
persist_with_no_fields: false |
19 changes: 19 additions & 0 deletions
19
drupalcat/config/install/field.storage.node.field_event_data.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
uuid: 163edb71-c3a9-417b-8955-85a7074fe250 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- datetime | ||
- node | ||
id: node.field_event_data | ||
field_name: field_event_data | ||
entity_type: node | ||
type: datetime | ||
settings: | ||
datetime_type: datetime | ||
module: datetime | ||
locked: false | ||
cardinality: 1 | ||
translatable: true | ||
indexes: { } | ||
persist_with_no_fields: false |
17 changes: 17 additions & 0 deletions
17
drupalcat/config/install/field.storage.node.field_event_lloc.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
uuid: 4b2bf1c1-83a8-4174-ab09-9fcfe8281cff | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- node | ||
id: node.field_event_lloc | ||
field_name: field_event_lloc | ||
entity_type: node | ||
type: string_long | ||
settings: { } | ||
module: core | ||
locked: false | ||
cardinality: 1 | ||
translatable: true | ||
indexes: { } | ||
persist_with_no_fields: false |
25 changes: 25 additions & 0 deletions
25
drupalcat/config/install/field.storage.node.field_event_tipus.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
uuid: 39562de3-f12b-4d79-8323-35b79baf3f45 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- node | ||
- taxonomy | ||
id: node.field_event_tipus | ||
field_name: field_event_tipus | ||
entity_type: node | ||
type: taxonomy_term_reference | ||
settings: | ||
allowed_values: | ||
- | ||
vocabulary: event_tipus | ||
parent: 0 | ||
target_type: taxonomy_term | ||
options_list_callback: null | ||
target_bundle: null | ||
module: taxonomy | ||
locked: false | ||
cardinality: 1 | ||
translatable: true | ||
indexes: { } | ||
persist_with_no_fields: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
uuid: 26f69298-3d22-450a-8c10-16c24f683a06 | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
name: Event | ||
type: event | ||
description: 'Creeu un esdeveniment relacionat amb el Drupal: conferència, curs o jornada de treball' | ||
help: '' | ||
new_revision: false | ||
preview_mode: 0 | ||
display_submitted: false | ||
third_party_settings: { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ dependencies: | |
- honeypot | ||
- node | ||
- toolbar | ||
- datetime | ||
themes: | ||
- drupalcat | ||
- seven |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
# Make sure there is no docroot. | ||
chmod -R 777 docroot | ||
rm -rf docroot | ||
# Download drupal core and contrib modules. | ||
drush -y make drupalcat.make docroot | ||
# Copy install profile to the docroot. | ||
#ln -s pauer docroot/profiles | ||
ln -s ~/Sites/drupalcatweb/drupalcat ~/Sites/drupalcatweb/docroot/profiles/drupalcat | ||
# Change dir before doing install. | ||
cd docroot | ||
# Here you have to change user/pass to match your mysql user | ||
drush -y si --db-url=mysql://root:root@localhost/drupalcat --locale=en --account-pass=admin drupalcat | ||
# login as admin after the install. | ||
drush uli |
636244a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Si especificas que la lengua de configuración es el íngles(en) Drupal pensará que las etiquetas son en inglés. drupalcat solo tiene el catalan activado, mejor que las configuraciones sean en catalan.