How to style for a node

Hi, 

In D7, I was able to apply css for a specific node (i.e. node/7) as 

.page-node-7 h2{color: red;}

In D8, when I inspect the page in chrome, I do not see node ID as I used to see like D7. I see the following in body tag of D8 site.

toolbar-tray-open toolbar-horizontal toolbar-fixed user-logged-in path-node page-node-type-page has-glyphicons

How can I apply css for a specific node in D8?

'Learn More' button to redirect using View Field in URL

I have a Search page created using the embedded filters and views. The page is working perfectly. Part of the results look like below:

https://imgur.com/a/yI1Zqik

How not to cache part of the TWIG code ?

The following code is used to display whether the users are online, absent or offline.

My problem is that the current date "timestamp" is cached, so there is no change in user status unless I manually clear the cache with "drush cr".

How can I fix it ?

user--full.html.twig :

Content import module

Hi

Im looking for a custom module to import articles to a Drupal 8 website. An import should write the following to Drupal.

The module must be able to import:

  1. Title
  2. Body
  3. Tags
  4. Published flag (default unckecked)
  5. URL alias
  6. Authoring information
  7. (Images)
  8. Revision log message

Would be if the module can import:

  1. Comment settings (default closed)
  2. Promotion options

Please let me know the price for such a custom moduel.

Best Simon

How to get the season in a View

I have pages in a view that I want to display during a season and there is a field that is a taxonomy of {summer, fall, winter, spring}. My problem is that I cannot figure out how to get the current season and compare it to the field in my pages. I can calculate the season using php:

$value = '';
$today = new DateTime();
echo 'Today is: ' . $today->format('m-d-Y') . '<br />';

Moved to host site now requires Composer. (Novice Help required)

I have a site that uses leaflet map and geofied. I found it to be a headache to set up as it required composer to install some files somewhere. I say somewhere as I am a bit of a novice with regards to Drupal. I found a post that mentioned 2 composer requirements

composer config repositories.drupal composer https://packages.drupal.org/8composer config repositories.drupal composer https://packages.drupal.org/8

Composer require phayes/geophp

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x