文章

顯示從 2月, 2025 起發佈的文章

TWIG loop paragraph items

  < h1 > Homepage node </ h1 > < article {{ attributes }} > {{   node . field_text_under_slogan . value }}   < div > {% if content . field_key_visual_swiper [ '#items' ] | length > 0 %}   {% for item in content . field_key_visual_swiper %}           {% set paragraph = item [ '#paragraph' ] %}         {% if paragraph . field_button_colour and paragraph . field_button_colour .0. value . color %}       < div style = "background-color: {{ paragraph . field_button_colour .0. value . color }}" >         Button Color: {{ paragraph . field_button_colour .0. value . color }}       </ div >     {% endif %}     {% endfor %} {% endif %}           </ div > </ article >

drupal core .htaccess template

 \web\core\assets\scaffold\files\htaccess

SQL ERROR: Unknown system variable 'GTID_PURGED' | Unknown collation: ‘utf8mb4_unicode_520_ci’

  Need remove all lines with GTID_PURGED sed - i '/@@GLOBAL.GTID_PURGED=/d' your_file.sql The final file will load without problems Open the sql file in your text editor; 1. Search:  utf8mb4_unicode_ci  Replace:  utf8_general_ci  (Replace All) 2. Search:  utf8mb4_unicode_520_ci  Replace:  utf8_general_ci  (Replace All) 3. Search:  utf8mb4  Replace:  utf8  (Replace All) Save and upload!