πŸ‡¨πŸ‡¦Canada @pub497

Account created on 5 July 2012, over 12 years ago
#

Recent comments

πŸ‡¨πŸ‡¦Canada pub497

@smustgrave issue seems to still exist (on 6.0.6)
e.g. with moderation states & switching '- Any -' to 'All'

πŸ‡¨πŸ‡¦Canada pub497

I have a quick patch here for it to work with the special 'All' scenario, it just replaces that object with its string so the rewrite works. For this rewrite feature to work with other hierarchical lists e.g. in my case it was ones that contains option groups ( like filtering by workflow moderation states for example) would need some more work, I am just using a form_alter hook to manually edit those

πŸ‡¨πŸ‡¦Canada pub497

Do you use twig tweak? 
https://www.drupal.org/docs/contributed-modules/twig-tweak-2x/cheat-shee... β†’

Depends on how your view fields are structured, but you probably want to use the view field template, (rather than the view-unformatted) check file in core/modules/view/templates/views-view-field.html.twig

your file will be something like views-view-field--news-releases--article_category_blocks-article-category-1--field-image.html

then you can use the image_style('thumbnail') filter once you've figured out how to get the image uri from your row, If you're having trouble getting the URI you can also just make your view field output the image URI instead of displaying the image, then

{{output|image_style('thumbnail') }} in that field template should work

 

πŸ‡¨πŸ‡¦Canada pub497

hey @shrikant.dhotre I'm a bit confused what you are trying to do, are you trying to prefix the values in 'field_static_id_value' with a custom number so that sorting uses the number instead of the text?

πŸ‡¨πŸ‡¦Canada pub497

the bots are taking over, that 100% looks like a chatGPT answer haha

πŸ‡¨πŸ‡¦Canada pub497

hey @andreasderijcke thanks for that! that was exactly the issue I was having

πŸ‡¨πŸ‡¦Canada pub497

hmm this seems to still be an issue for me on drupal 10.1.3...although it might be for a different reason as we are not using multilingual support, this is what a resulting css file path looks like:

https://website.com/sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css?q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&q=sites/default/files/css/css_FtDEylGgrC-BYN_tnMeOgX1HzP_qiLJnAp-CJ_1uH6Y.css&delta=0&language=en&theme=gin&include=eJx9kw2WozAIxy9k6xn2JD5CqGaMiQuks87pl_jVsW9236sVfuA_CIiZqf34XYiXxgGOnWb7ze03u_uQf4YC5tRg1fBcZoj3mXPPJGLw8aATb96WGZISJ4MleWKp7C1QT3A50UVZc8GBnpRUbkqiFrT8P1ogvk45yC2GNEojiyhNVrGYVgTOLQL7A4Ofwl59yjxBDF9HWh-zMxXRxYT6pg-pVXCyGj5AzBuzq1vFqxOpB1w6FDlil_oBNTxpLawRkBE059QhtEPoBxyAVb7xF2x_gufpIQVdnb3D1UzZUzczPQN97rGjL93WlwodE3jkMrnVFVK1V5VOGZaO_C5bz7CWiAS0gefogE8OiDaNy0v6IHME3OoQDTguL5kimqe1P_sA9oc276LzsHlcAOYYYT7HuNMEz9s6FxkyKxY9JXe_2Wtu9_t9olTeYeNtrWyJ6v_tYJSegXOyfLUm-4A2Aj7kfww2RejMqPa9fh3yttsy0DyQLaHtc62g8LllJ7nuPThn0QkS9MT_3_qj-M_Mo6OEQ3ta9yP23hEShJl-rd-CC303h5naw_gLPSSaOg

Works fine on drupal 9, also it seems to work fine with the addition of advagg module

πŸ‡¨πŸ‡¦Canada pub497

#10 yeah we had a bunch of pathauto configs which still had node_type. If you don’t already manage the entire site config I highly recommend doing this config export to check if there are any uses of node_type still, fix them as #9 suggests and reimport them. Especially if you use something like features module to bundle your configs.

πŸ‡¨πŸ‡¦Canada pub497

If anyone stumbles upon this, to do this in d9+ you simply need to make your own Tamper plugin, check out contrib module tamper>src>Plugin>Tamper for examples.

πŸ‡¨πŸ‡¦Canada pub497

Thanks @ericawright for that, here is the same patch for d10

πŸ‡¨πŸ‡¦Canada pub497

Hey so this can be closed I think, running updb, then clearing cache , and then setting into maintenance mode again seems to wor

πŸ‡¨πŸ‡¦Canada pub497

Thanks for checking @Matthand, I think the issue is on my build process here. I update the modules with composer, and then put site into maintenance mode with drush state-set system.maintenance_mode 1 this is actually what triggered the ArgumentCountError: Too few arguments to function... error, so it's not actually related to feature revert.

However I tried clearing caches several ways (drush cr, and drush eval "drupal_flush_all_caches();")
prior to putting into maintenance but it still throws that error from features when putting into maintenence mode prior to running drush updb command. I haven't checked to see if running updb before putting into maintenance works, but probably don't want to do it that way anyway.

πŸ‡¨πŸ‡¦Canada pub497

Here is an updated patch that applies to the latest 8.x-3.x-dev branch

Production build 0.71.5 2024