Hi,
I'm creating a site on Drupal for the first time
I'm using Layout Builder to display news. I add a title block, but it displays as span:
<div class = "content">
<span class = "field field - name-title field - type-string field - label-visually_hidden"> Title 1 </span>
</ div>
I just went through a lengthy process of updating Drupal 8.7.10 to a Composer-managed 8.8.x setup using this helpful guide. It was successful, but I failed to realize that those instructions installed a dev version of 8.8.x (I assume it was written before 8.8.x was stable). I used the following code (from the guide linked above) to install Drupal 8.8.x:
I have a blog view which I want to override. I am using node twig to do this. But the problem I am facing is the format to be used to get the values. I understand that to get the title or body, we use this - {{ content }} {{ content.body }}. But I want to get the values of the tags in the blog article, authored by, authored on, the image/picture of the author. What is the code to get these values?
In the view, I have set Format: Unformatted List and Show: Content, Teaser.
Then I have service where I want access the data from session and save in database. Should I read data from session in controller and pass to service by parameter? I guess no but I don't have any other idea. Regards :)