I understand now that the issue is that my link field exists in Content/Node, because they are slide specific e.g. Product 1, Category B etc. and not media specific because same media is reused around the site. I suppose I need to use my hook for wrapping slides with content links as previously and figure out the namespace issue in case of video media.
Here are my style settings:
The links that are rendered around the slides point to the slide content node and not to URL in the link field of the node. However, the link field is correctly rendered as plain text if I add it into the fields of the view as Content:Link. It does not seem to matter if I select the link field under Fields or Caption fields in Style settings.
I tried Image linked by Link setting and the slide is wrapped with a link but it is not the right link which is one the fields of slide content. What am I doing wrong?
I already tested literaly all combinations of Content:Media settings, but none of them seem to affect how the video or image is displayed.
I suppose I have to try the CSS route.
I tested with Olivero theme and same behaviour: video is tiny and images are full width.
I tested with Olivero theme and same behaviour: video is tiny and images are full width.
kaipipek → created an issue.
kaipipek → created an issue.
Is this suppose to work with the current version of Slick Views? If I have a video in a slide of a Slick Carousel, it is rendered with video controls I will have to press the play button, it does not play automatically.
I'm having the same issue. Please reopen.
I'm using Composer for updates and I'm not comfortable hacking it as a workaround.
I cannot revert to 3.0 because I already have Drupal 10.3
kaipipek → created an issue.
I'm trying to uninstall Commerce Wishlist and right after that I get the White Screen of Death and this error message. I have tried to look for references to Commerce Wishlist in the Admin UI but deleting any of them does not resolve this issue. How can I uninstall this module cleanly?
What is the schedule to get this feature into the production release?
Thanks, works fine!
kaipipek → created an issue.
I can confirm this issue on our Drupal 10 site with standard core modules enabled. Any update on this issue?
Any update on this issue? It is still a valid problem with the latest version 8.x-1.6
No change, sorry. Here is the new error message:
> [notice] Update started: commerce_pricelist_update_8206
> [error] SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'drupal_kuovi_test.cpi.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by: SELECT "cpi"."id" AS "id", "cpi"."price_list_id" AS "price_list_id", "cpi"."purchasable_entity" AS "purchasable_entity", "cpi"."quantity" AS "quantity", "cpi"."price__currency_code" AS "price__currency_code", COUNT(*) AS "cnt"
> FROM
> "drupal_commerce_pricelist_item" "cpi"
> GROUP BY "type", "price_list_id", "purchasable_entity", "quantity", "price__currency_code"
> HAVING (cnt > 1); Array
> (
> )
>
> [error] Update failed: commerce_pricelist_update_8206
Any update on this issue?
It seems that the reason for this issues was that "drush cr" was not performing correctly. After emptying all caches from the admin UI everything works fine.
kaipipek → created an issue.
Currently the sorting behaviour seems different. PayPal is still always the first but the other payment methods are sorted by their weights defined in admin/commerce/config/payment-gateways and not by their ID.
Is there a hook in PayPal module that always renders it as the first/default payment method? How can I change the default payment method?
kaipipek → created an issue.
Thank you very much djroshi! I was already looking from a right place but I never figured out to change Product variations attributes to Product variation title. It was not very intuitive. :)
Where is the hide_single setting defined in admin UI?
Where is this code snippet from? All our products are rendered with a variations dropdown even when they have just one variation.
Yes, I'm sure, LOL.
Is it true that this functionality is still not in production after seven years?
Feel free to close this issue as resolved
I believe we have had this issue since Drupal 8 and we still have it with the latest Drupal 10.1.6 version so I really don't think this is a Drupal core bug.
Thank you very much, that was awesome! It didn't work out of the box e.g. $blazies->get('namespace') brings two values "blazy" and "slick" and formatting URL to plain text didn't work, but this is my final working code for this use case:
function hook_preprocess_blazy(array &$variables) {
$settings = &$variables['settings'];
$blazies = $settings['blazies'];
if (!empty($settings['link'])) {
// Only scope to blazy and if an image, not video, instagram, etc.
// Checks for more conditions like blazies.is, blazies.use, etc.
// Or remove the namespace to apply to ecosystem if consistent.
if ($blazies->get('namespace') == 'blazy' && $blazies->is('image')) {
if ($link = $variables['captions']['inline']['link'] ?? []) {
$variables['url'] = $link['content'];
// Update internal blazy CSS classes, etc.
$settings['media_switch'] = 'content';
$blazies->set('switch', 'content');
// Disables rendered link since already made as a wrapper.
$variables['captions']['inline']['link'] = [];
}
}
}
}
This is what we currently have customized in the twig template:
{% set slide %}
{% block slick_slide %}
{% if item.caption.link %}
<a href="{{ item.caption.link }}">
{% endif %}
{% if settings.split and not settings.unslick %}
<div class="slide__media">{{ item.slide }}</div>
{% else %}
{{ item.slide }}
{% endif %}
{% if item.caption.link %}
</a>
{% endif %}
{% endblock %}
{% endset %}
The purpose of if item.caption.link statements is to wrap the slide with an A tag.
What is the correct way to do this in version 3.x if this part of the twig template is removed?
kaipipek → created an issue.
kaipipek → created an issue.
I'm sorry but I changed my mind and implement an A-Frame viewer in my Twig template and therefore I'm not interested in this module anymore. You may delete this bug report if you think it is unnecessary.
kaipipek → created an issue.