Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I have ten custom List (integer) Fields, each has 5 values to choose from on the list. Within my Twig configuration I've been programmatically using {% if node.field_options.value == 'X' %} to display some CSS and an Image based on value returned.
Performance wise, is there anything wrong with doing this or will it slow down rendering of the page?
Something I've encountered from time to time is, I'll get a message that says something about it can't find the update information and gives me a link to run Cron. I'm logged in, with Admin privileges, however most times (not always) when I click the "Run Cron" link, the system "sits and thinks" for a bit, and then gives me a message which says:
Expecting to have the name entered in the configuration display. Instead, when I view the site in my browser, I see "[site:name]" just as I had entered.
I had for some while ago PHP 5.6 and I installed Drupal 8 and it was working.... later, I changed PHP to 7.033 and was still working on my site.... and now, I changed back to PHP 5.6 - and when I visited my Drupal 8 - all pages were blank...
... but if I change php to 7.0 again - it is working.....