Thank you for accepting this!
I am not using this module anymore but I believe the patch worked. Sorry for not replying sooner
I ended up fixing a this warning by looking through my code and finding that I was attempting to load a library in a preprocess function without a theme name
$variables['#attached']['library'][] = 'library-name';
This does not work. It needs to be theme-name/library-name. In my case I was able to remove this preprocess function entirely as I was loading the library through another method.
Hope this helps others!
Adding Drupal 10 compatibility
Came across this issue because I'm finding the change from textarea to the new UI to be difficult for managing large lists. A common use case is copying/pasting from an external source and quickly getting that data as a list in Drupal. I can see how that is unintuitive for some users but perhaps there is a case to be made for a contrib module that provides this older functionality.
I encountered the error You have requested a non-existent service "openid_connect.openid_connect".
after upgrading from 8.x-1.4 to 3.0.0-alpha6. I am not using keycloak.
Ah that's a good idea. I feel like I understand how all of this works now.
Feel free to close this ticket and thank you for your time. Hopefully this thread helps others in the future.
Thank you for the detailed response! I think I understand the workflow now.
To test this out, I set $config['automated_cron.settings']['interval'] = 120;
in settings.php to run cron every 2 minutes.
Then I configured my queue in Simple Cron to run every 15 minutes. I was able to see cron run every 2 minutes but my queue only ran every 15 minutes as expected.
So, if I want to have cron run every 3 hours but have my queue run more often than that, I will need to trigger the queue URL some other way, correct?
Tested again, 1 and 3 were the result of upgrading with --with-dependencies
, which upgraded doctrine/deprecations to and caused those errors.
2 is still present when upgrading without --with-dependencies
.
But I can confirm the intended functionality of being able to save the wrapper classes seems to be working.
There seem to be a few issues with this upgrade
1) There are a number of errors present. These appear even after a "drush cr".
2) After creating a page with a grid the wrapper classes are saved successfully, but when I go to edit the grid again a large black triangle appears in CKEditor. I can confirm this did not happen in 3.1.2.
3) Embedded Content appears broken. Any page with an existing Accordion returns an error like this:
Additionally, when clicking the "Embedded Content" button when creating a new node, there is a 500 error in the console.
Thanks. I was able to work around this limitation using transformRootRelativeUrlsToAbsolute in my module.
$absolute_body = Html::transformRootRelativeUrlsToAbsolute($body , \Drupal::request()->getSchemeAndHttpHost());
It appears this issue is a duplicate. I was able to work around this issue by following these steps
https://www.drupal.org/project/field_permissions/issues/3342508#comment-... 🐛 RuntimeException: Adding non-existent permissions to a role is not allowed. Needs review
I believe I came across this same issue and ended up fixing it by patching the embedded_content module
https://www.drupal.org/project/embedded_content/issues/3479770 🐛 Warning: DOMDocumentFragment::appendXML() when input is not normalized Needs work
Drupal 10.3.6
'drupal/uswds_ckeditor_integration:3.0.2'
'drupal/embedded_content:2.0.1'
Basic HTML text format uses Embedded Content in CKEditor.
- Create a new node (Basic Content)
- Click the "Embedded Content" button in the CKEditor toolbar
- Select "Accordion" for content type
- Enter a heading and body, click "Embed"
- Save the new node
- Errors appear (see screenshot)
This patch does not work with the 2.0.1 release. Does anyone have an updated version, or another method to control which text format is presented to the user? Right now both Basic HTML and Plain Text are options, with seemingly no way to limit them.
I was able to successfully install the updated version of this module while having the patch installed and did not encounter the issue that @irsar did.
This appears to be fixed in the dev branch. I encountered it in the 2.1 release.
Is there any documentation on how to use a bootswatch theme? I don't see an option to select in the UI
I believe I am encountering this error.
I am trying to use google_tag 2.0.2 with a tag ID begging with "GTM-". The only setting I've changed is that User Role is only Anonymous User.
When I use https://tagassistant.google.com/ It says "no tags found". I seem to be able to us tags begging with "AW-" and "G-" though, so the issue is specifically with a tag beginning with "GTM-"
scott_euser → credited srdtwc → .
That sounds like a good idea. We are using footnotes in paragraphs, so hopefully that proposed solution will still work.
I am having the same issue as ayalon
This is a display suite block field that is rendering a views block.
We were able to solve (or work around?) this issue by removing an unnecessary relationship from the view. So it's possible that this is unrelated to DS.
If you add a tag there that is already managed by another plugin you are shown an error. For example, if you add <h2>
when the Heading button is in the toolbar you get this error.
The following tag(s) are already supported by enabled plugins and should not be added to the Source Editing "Manually editable HTML tags" field: Headings (<h2>).
I tested this after downgrading to 10.1.5 and get the same error
[error] (Currently using Incompatible theme The following theme is installed, but it is incompatible with Drupal 10.1.5:
* AT Core
I am having this same issue
In your theme.info file you want something like this
libraries-override:
ckeditor_accordion/accordion.frontend:
css:
theme:
css/accordion.frontend.css: false
Previous patch was missing blank line at end of file. I believe this one should work.
Here us an updated patch with Drupal 10 compatibility
Some more detail: this error seems to only happen when the custom theme is the only theme or module left on the site with D10 incompatible code. If I introduce a D10 incompatible issue to another module and rescan, then I am able to see all the issues (20 in total) with my custom theme and no 500 errors are reported.
So it seems like this is an edge case when there is a single module (or maybe just a theme?) left.
If anyone is running into compaitibility errors with jquery_ui_accordion, you can use
"drupal/jquery_ui_accordion": "2.0 as 1.1"
in combination with https://github.com/mglaman/composer-drupal-lenient
in composer.json as a temporary measure until there is an official release.
I was able to work around this issue by running
drush tome:static --uri=https://pages.dev
(without the subdomain prefix) and then running a search/replace in the output to replace https://pages.dev with https://foo-bar.pages.dev
That shouldn't be necessary, so this feels like a bug to me... But I could be doing something wrong.
Thanks
Hello, just curious if there was any progress on this or if this module is dead?
Merge request above fixes typo.
Here is a merge request to fix the issue. You can install this as a patch using https://git.drupalcode.org/project/partial_multi/-/merge_requests/1.patch
srdtwc → made their first commit to this issue’s fork.
For anyone looking for a similar module that is D10 compatible check out https://www.drupal.org/project/collapsiblock →
Here is a reroll of MR3 as a patch against the 2.2.1 release for anyone who needs it in the interim
I've changed the textfield to a textarea to allow for more vocabularies to be listed
Yes I believe that's the same difficulty I was having. I was only able to get this working with a text field.
Thank you for the clarification.
Okay, just to make sure I understand: that means this module is only useful for people who have previously configured it, but it is impossible for new people (such as myself) to use it?
Thanks
@paulmckibben that works but it will update all composer packages, including other Drupal modules
Yes I noticed this change in behavior happen around the time the admin theme changed from Seven to Claro, though I am not certain the bug is within the theme itself. I'm glad to see others have noticed this issue.
I think I may have submitted a separate ticket for this same issue
https://www.drupal.org/project/drupal/issues/3356381 🐛 "Set up database" screen is displayed even when credentials are properly defined Closed: duplicate
I just tested these changes out and everything appears to be working fine. I tried removing and adding a shared link, adding an invalid link, viewing the shared link route when no link was set and all behaviors are as expected.
Thank you for your assistance with this.
I have made the changes that you've requested as far as I've understood them. Sorry If there's anything I've missed.
The time I have been spending on this has come from a client project budget which is limited, so I don't think I am able to spend more time making feature enhancements. If you find any bugs in my code though I would be happy to address those.
"force chronological" seems to do the trick! Screenshot below shows what it looks like
Thanks for the help.
Here's a screenshot showing what I mean.
I added an event for June 1 as two separate instances. But the second one is entirely separate in the output.
Thanks.
By adding an another instance, do you mean setting the field to be "unlimited" and adding separate entry for that date and time? When I try that it doesn't seem to be included in the smart_date_recur logic. It also seems that you can also only set an event to repeat every X number of days, weeks, months or years. Hours is not an option.
Actually I realized I didn't need unlimited date fields, but instead needed to enabled " Allow recurring date values" on the field settings. Resolved.
I chose to have the full "Shared link" instead of just the auth param because I thought that would be more user friendly. Plausible provides the full Shared Link, so someone can just copy/paste that into the module settings, rather than having to copy just the auth param component. That could be difficult for a non-technical user who doesn't know what that is.
We have many clients who are switching from Google Analytics to Plausible for its user friendliness so that's something I'd like to keep in mind.
Here is where I got the "system" setting
I've opened a merge request with this feature in place.
I've kept it pretty simple for now to make sure the basic functionality works.
Thanks for sharing! That's exactly the approach I was going to take, but I didn't think of using the light/dark settings from Gin. That's a nice touch.
I'll let you know if I have any questions
@DieterHolvoet that would be great to see. I am hoping to have this done in the next couple of weeks if you are able to share what you have.
Screenshot:
Here is the config of the view
uuid: 8d3c967d-3289-4f59-891a-8d072342ebbc
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_date_range
- field.storage.node.field_location
- field.storage.node.field_teaser_text
- node.type.event
- taxonomy.vocabulary.event_type
module:
- address
- better_exposed_filters
- date_range_formatter
- datetime
- neym_custom
- node
- taxonomy
- text
- user
id: event_calendar_list
label: 'Event Calendar List'
module: views
description: ''
tag: ''
base_table: node_field_data
base_field: nid
display:
default:
id: default
display_title: Master
display_plugin: default
position: 0
display_options:
title: 'Filter By:'
fields:
title:
id: title
table: node_field_data
field: title
relationship: none
group_type: group
admin_label: ''
entity_type: node
entity_field: title
plugin_id: field
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: h4
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
field_date_range_1:
id: field_date_range_1
table: node__field_date_range
field: field_date_range
relationship: none
group_type: group
admin_label: 'Monthly Section Header'
plugin_id: field
label: ''
exclude: true
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: date_range_without_time
settings:
timezone_override: ''
one_day: 'F Y'
one_month: 'F Y'
several_months: 'F Y'
several_years: 'F Y'
single: 'F Y'
single_all_day: 'F Y'
group_column: value
group_columns: { }
group_rows: false
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
field_location:
id: field_location
table: node__field_location
field: field_location
relationship: none
group_type: group
admin_label: ''
plugin_id: field
label: ''
exclude: true
alter:
alter_text: true
text: '<div class="views-field-field-location">{{ field_location }}</div>'
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: true
empty_zero: true
hide_alter_empty: true
click_sort_column: langcode
type: City_state
settings: { }
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
field_location_1:
id: field_location_1
table: node__field_location
field: field_location
relationship: field_meetinghouse_location
group_type: group
admin_label: ''
plugin_id: field
label: ''
exclude: true
alter:
alter_text: true
text: '<div class="views-field-field-location">{{ field_location_1 }}</div>'
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: '{{ field_location }}'
hide_empty: true
empty_zero: true
hide_alter_empty: true
click_sort_column: langcode
type: City_state
settings: { }
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
field_location_administrative_area:
id: field_location_administrative_area
table: node__field_location
field: field_location_administrative_area
relationship: field_meetinghouse_location
group_type: group
admin_label: 'Search Filter: Quaker Meeting State'
plugin_id: subdivision
label: ''
exclude: true
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
display_name: false
field_location_administrative_area_1:
id: field_location_administrative_area_1
table: node__field_location
field: field_location_administrative_area
relationship: none
group_type: group
admin_label: 'Search Filter: Other Location State'
plugin_id: subdivision
label: ''
exclude: true
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
display_name: false
field_date_range:
id: field_date_range
table: node__field_date_range
field: field_date_range
relationship: none
group_type: group
admin_label: ''
plugin_id: field
label: ''
exclude: false
alter:
alter_text: true
text: '{{ field_date_range }}{{ field_location_1 }}'
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: true
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: date_range_without_time
settings:
timezone_override: ''
one_day: 'F j'
one_month: 'F j-{j}'
several_months: 'F j-{F} {j}'
several_years: 'F j-{F} {j}'
single: 'F j'
single_all_day: 'F j'
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_teaser_text:
id: field_teaser_text
table: node__field_teaser_text
field: field_teaser_text
relationship: none
group_type: group
admin_label: ''
plugin_id: field
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
pager:
type: full
options:
offset: 0
items_per_page: 15
total_pages: null
id: 0
tags:
next: Next
previous: Prev
first: ''
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
exposed_form:
type: bef
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
input_required: false
text_input_required: 'Select any filter and click on Apply to see results'
text_input_required_format: plain_text
bef:
general:
autosubmit: true
autosubmit_exclude_textfield: false
autosubmit_hide: true
input_required: false
allow_secondary: false
secondary_label: 'Advanced options'
text_input_required: 'Select any filter and click on Apply to see results'
text_input_required_format: basic_html
filter:
combine:
plugin_id: default
advanced:
sort_options: false
placeholder_text: ''
rewrite:
filter_rewrite_values: ''
collapsible: false
is_secondary: false
field_event_type_target_id:
plugin_id: default
advanced:
sort_options: false
placeholder_text: ''
rewrite:
filter_rewrite_values: ''
collapsible: false
is_secondary: false
access:
type: perm
options:
perm: 'access content'
cache:
type: tag
options: { }
empty:
area:
id: area
table: views
field: area
relationship: none
group_type: group
admin_label: ''
plugin_id: text
empty: true
content:
value: 'Sorry, no events matching your criteria were found.'
format: plain_text
tokenize: false
sorts:
field_date_range_value:
id: field_date_range_value
table: node__field_date_range
field: field_date_range_value
relationship: none
group_type: group
admin_label: ''
plugin_id: datetime
order: ASC
expose:
label: ''
field_identifier: field_date_range_value
exposed: false
granularity: day
created:
id: created
table: node_field_data
field: created
relationship: none
group_type: group
admin_label: ''
entity_type: node
entity_field: created
plugin_id: date
order: DESC
expose:
label: ''
field_identifier: created
exposed: false
granularity: second
arguments: { }
filters:
status:
id: status
table: node_field_data
field: status
entity_type: node
entity_field: status
plugin_id: boolean
value: '1'
group: 1
expose:
operator: ''
operator_limit_selection: false
operator_list: { }
type:
id: type
table: node_field_data
field: type
entity_type: node
entity_field: type
plugin_id: bundle
value:
event: event
group: 1
expose:
operator_limit_selection: false
operator_list: { }
combine:
id: combine
table: views
field: combine
relationship: none
group_type: group
admin_label: ''
plugin_id: combine
operator: '='
value: ''
group: 1
exposed: true
expose:
operator_id: combine_op
label: 'Combine fields filter'
description: null
use_operator: false
operator: combine_op
operator_limit_selection: false
operator_list: { }
identifier: combine
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
placeholder: null
is_grouped: true
group_info:
label: 'Location:'
description: ''
identifier: combine
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items:
1:
title: Connecticut
operator: word
value: CT
2:
title: Maine
operator: word
value: ME
3:
title: Massachusetts
operator: word
value: MA
4:
title: 'New Hampshire'
operator: word
value: NH
5:
title: 'Rhode Island'
operator: word
value: RI
6:
title: Vermont
operator: word
value: VT
7:
title: 'Outside New England'
operator: regular_expression
value: '\b(?:(?!CT|MA|ME|NH|RI|VT)\w)+\b'
fields:
field_location_administrative_area: field_location_administrative_area
field_location_administrative_area_1: field_location_administrative_area_1
field_event_type_target_id:
id: field_event_type_target_id
table: node__field_event_type
field: field_event_type_target_id
relationship: none
group_type: group
admin_label: ''
plugin_id: taxonomy_index_tid
operator: or
value: { }
group: 1
exposed: true
expose:
operator_id: field_event_type_target_id_op
label: 'Event type:'
description: ''
use_operator: false
operator: field_event_type_target_id_op
operator_limit_selection: false
operator_list: { }
identifier: field_event_type_target_id
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
anonymous: '0'
editor: '0'
super_user: '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
vid: event_type
type: select
hierarchy: false
limit: true
error_message: true
field_date_range_end_value:
id: field_date_range_end_value
table: node__field_date_range
field: field_date_range_end_value
relationship: none
group_type: group
admin_label: ''
plugin_id: datetime
operator: '>='
value:
min: ''
max: ''
value: TODAY
type: offset
group: 2
exposed: false
expose:
operator_id: ''
label: ''
description: ''
use_operator: false
operator: ''
operator_limit_selection: false
operator_list: { }
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
min_placeholder: ''
max_placeholder: ''
placeholder: ''
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
field_date_range_end_value_1:
id: field_date_range_end_value_1
table: node__field_date_range
field: field_date_range_end_value
relationship: none
group_type: group
admin_label: ''
plugin_id: datetime
operator: empty
value:
min: ''
max: ''
value: ''
type: date
group: 2
exposed: false
expose:
operator_id: ''
label: ''
description: ''
use_operator: false
operator: ''
operator_limit_selection: false
operator_list: { }
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
min_placeholder: ''
max_placeholder: ''
placeholder: ''
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
filter_groups:
operator: AND
groups:
1: AND
2: OR
style:
type: default
options:
grouping:
-
field: field_date_range_1
rendered: true
rendered_strip: true
row_class: ''
default_row_class: true
row:
type: fields
options:
default_field_elements: true
inline: { }
separator: ''
hide_empty: true
query:
type: views_query
options:
query_comment: ''
disable_sql_rewrite: false
distinct: true
replica: false
query_tags: { }
relationships:
field_meetinghouse_location:
id: field_meetinghouse_location
table: node__field_meetinghouse_location
field: field_meetinghouse_location
relationship: none
group_type: group
admin_label: 'field_meetinghouse_location: Content'
plugin_id: standard
required: false
use_ajax: true
header: { }
footer: { }
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_date_range'
- 'config:field.storage.node.field_location'
- 'config:field.storage.node.field_teaser_text'
block_1:
id: block_1
display_title: Block
display_plugin: block
position: 1
display_options:
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_date_range'
- 'config:field.storage.node.field_location'
- 'config:field.storage.node.field_teaser_text'
This issue should be reopened. I encountered this bug today and it was not immediately obvious that the config was identical, but just in a different order. This screenshot of the web interface should show that.
Worth mentioning that we moved to the static Google Maps option since that seems to not have this problem, so the link on my original comment will not show the expected behavior.
I ended up taking a slightly different approach:
1) Changed the smart date format to only display the month and year (not the date)
F, Y
2) Used hook_preprocess_node in the .theme file to clone the smart_date field
$variables['content']['field_smart_date2'] = $variables['content']['field_smart_date'];
$variables['content']['field_smart_date2']['#field_name'] = 'field_smart_date2';
// swap date items
[$variables['content']['field_smart_date'], $variables['content']['field_smart_date2']] = [$variables['content']['field_smart_date2'], $variables['content']['field_smart_date']];
}
3) Created a twig template to change the output of this new cloned field to render the day
field--node--field-smart-date2--event.html.twig
<div class="smart-date--day-only">{{ items.0['content']['#value']|date('j') }}</div>
This results in an output that looks like this
A little complicated, but sharing this in case others find this approach useful.
Thanks for your help on this. I think we can close the issue.
Thanks, this is helpful. I was able to get the patch above working by moving the code to my .theme file in hook_preprocess_time(). This is definitely getting me in the right direction.
I'm not finding any documentation though on which theme hooks are available. I don't see "preprocess_time" anywhere in Drupal core or smart_date. Is there somewhere I should be looking to find which theme hooks are available?
Thanks for your help!
I've tried that. It seems to add a span around the date and around the time, but not spans around the individual parts of the date like I would like. For example, I would like a span around the 10 in "10 March, 2023" here.
I'm currently trying to do this with twig templates, which seems to be promising but the tradeoff seems to be losing a lot of the advanced features of smart date in the process, since I need to manually render all aspects of the date and time in the template and add my own logic for when to show the separator, etc.
Is there a plan for a new stable release for Drupal 7 with GA4 support, or is 2.6 considered the final release? I am wondering if it makes sense to wait for these issues to get ironed out before moving clients to GA4.
Confirmed #8 is still working on 9.5.3 as well