Performance of displaying content based on value of a Field?

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?

How to insert image from Media? | D8

Hello,

Drupal 8 has in-built Media module in core;

= but I cannot find - How to insert an Image from this Media library into Image field or Text field....

How?! I do not see a Media widget or option; How to operate with it?!

p.s. and is there any option to Embed fielded Media into Node Text editor field?!

"Unable to Cron"

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:

Access Denied 

You are not authorized to access this page

However, if I click Configuration > System > Cron

Using Tokens

I tried something new recently. I attempted to use tokens in some of my displays, rather than static text.

For example, in the footer, instead of "hard coding" 

"Copyright © 2019 SiteName"

I attempted to use the token to display the configured site name, and I entered

"© Copyright [site:name]."

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.

Image Field Progress indicator: throbber, change to Bar?

Where is the option to change the Progress indicator on an Image Field from Throbber to Bar?

I've looked all over in ../admin/structure/types/manage/review/form-display

D8 blank screen after degrading PHP to 5.6

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.....

Is this a grave problem or not?!  Any solutions?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x