This repository has been archived by the owner on Dec 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
PLAT-24 Add metatags fieldset to News article content type #153
Merged
pvhee
merged 4 commits into
develop
from
feature/PLAT-24_add_metatags_fieldset_for_news_article
Apr 12, 2016
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
6d96756
PLAT-24 Setup metatags fieldset for 'article' content type
f55c6bc
PLAT-24 Attach metatags fieldset to 'article' content type
ad84275
PLAT-24 Update 'cr_article' dependencies adding metatags fieldset to …
ef471d6
PLAT-24 Updates to CR Article fields architecture doc
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
20 changes: 20 additions & 0 deletions
20
.../cr/modules/custom/cr_article/config/install/field.field.node.article.field_meta_tags.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,20 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.node.field_meta_tags | ||
- node.type.article | ||
module: | ||
- metatag | ||
id: node.article.field_meta_tags | ||
field_name: field_meta_tags | ||
entity_type: node | ||
bundle: article | ||
label: 'Meta tags' | ||
description: '' | ||
required: false | ||
translatable: false | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: { } | ||
field_type: metatag |
18 changes: 18 additions & 0 deletions
18
profiles/cr/modules/custom/cr_article/config/install/field.storage.node.field_meta_tags.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,18 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- metatag | ||
- node | ||
id: node.field_meta_tags | ||
field_name: field_meta_tags | ||
entity_type: node | ||
type: metatag | ||
settings: { } | ||
module: metatag | ||
locked: false | ||
cardinality: 1 | ||
translatable: true | ||
indexes: { } | ||
persist_with_no_fields: false | ||
custom_storage: 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@vireshpatel if this is an article specific field, it should be prepended with
article
, likefield_article_meta_tags
. If we're gonna reuse this field it can be named like it is now but then it should be part of the CR profile and not the cr_article module I believe. \cc @bimsonzThere 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.
@pvhee @bimsonz:
field_meta_tags
is intended to be reused for other types and justarticle
- I'll move this to the CR profile.I followed the implementation and naming convention currently in place for
cr_article
and also hence why I updated the architecture documentation. If the naming convention should be as you say @pvhee, then do we need to look at revisingcr_article
?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.
@vireshpatel yes, could you put in a ticket pls? I think it's important we get this straight from the start
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.
@pvhee no problem - ticket PLAT-152 created.