Adding custom field while migrating to drupal 8

I am trying to merging content types while migrating to drupal 8 from drupal 7 and at the same time differentiating them with the taxonomy terms in D8. E.g. The content types from D7 i.e. Article, Page, Blog will merge to a content types called "Media" in D8. But in D8 "Media" content type, there will be a vocabulary "Type of content" with terms as Article, Page and Blog, so that while migrating from D7, the content of Article will be tagged to "Article" term in "Media" content type and same for others.

How to get the node id from a Drupal8 block template?

Hi all,
I'have a custom block that uses this template: block--mycontenttypeblock.html.twig that is shown only when the node is of type "Mycontenttype".
Is it possible to get the id of the shown node from the block?

So that I can add in this block these urls:
- http://mysite/node/7/edit
- http://mysite/addNote?id=7
-....

Where 7 is the id of the node.
I'm using Drupal8.

Thank you very much.

claudio

[SOLVED] Views - hide empty block in D8

I had this working in D7, but can't seem to solve the problem in D8. I have a block view on a content type, with a contextual filter of the Content ID. What I want is for the block to not appear if the view is an empty result or there is no result.

I've played with all the settings I could think of: setting the relationship to required. Trying Global:null as an extra filter, both before and after the content filter. I've tried playing with the settings in the Content ID filter. I've changed the setting in all the fields to not show content if no result.

I'm stumped.

D8 views with entity reference in paragraph

Say, for example, I have two content types, books and authors

I have a Paragraphs type, used in Books, called Author(s), containing several fields. Within that Paragraphs type, is an entity reference to the Authors content type (set to auto-create, if name doesn't exist)

Now, I'm trying to create a block view for the Authors pages, to list books by this author. I cannot seem to do this. Is there some issue with getting to the entity type when it's within a Paragraph?

How is this done with views?

"You do not have any administrative items" message.

Hi there.
I have being working with Drupal for just a few days and I find it really great.
With some difficulties, I managed to install the opensocial distribution with D8 on my macbook air with MAMP.
When I go to admin/configuration/user interface, I got the following message : "You do not have any administrative items" message.

I googled it but I couldn't find a working solution for that problem.

I also don't understand why I can't change the langage or create a new group.

Maybe this is the same problem.

Thanks for your help.

Automatic reference between 2 content types

Hi.

I'm using Drupal 8 on a local install to manage my photo library. For this, I have 2 content types : "film" and "photo".

Using Token, the URL of a film node will look like this : .../film/2015.14

The URL of a photo node can look like this : .../photo/2015.14.07

I'm trying to list automatically all the photos of a film content type.
In my example, I will want the photos from 2015.14.01 to 2015.14.24 to show on the node .../film/2015.14.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x