D8, derivatives and dynamic route parameters

Hi,

I want do build a module to do the following things:
generate a new entity with Drupal Console (@ConfigEntityType => dynamic_content_type + @ContentEntityType => dynamic_content).
Each dynamic_content entity must be attached to an entity (node or user for example) at creation.

I modified the 'collection' link route of my entity like this:

Particular multi-site installation

I would like a particular multi-site installation (I'm testing drupal 8.1.2), as described below.

- many websites with front-end URLs, like:
site1.example.com (website1+DB1)
site2.example.com (website2+DB2)
...
- all the back-end (management) URLs for the above sites as subdirectories of a unique (different) website, like:
admin.example.com/site1 (website1+DB1)
admin.example.com/site2 (website2+DB2)
...

Drupal 8, how to disable a view during a installation profile's hook_install?

I have a custom installation profile, that has a dependency on views and other custom modules. One such module is an admin content module that has a custom view meant to replace the "content" view (/admin/content) .

In general, I'm able to disable the content view programatically. (This is on a drush file that I call with drush scr)

How can I find what Node::Load(10) contains (values, fields, everything)?

When I try to print out the possible options of `Node::load(10)`

I just get null. But I know that there are options as `Node::load(10)->field_name->value` gives the value of the field.

I have tried using dpm as well as json_encode.

examples:

dpm(Node::load(10)->getFieldDefinitions());
dpm(Node::load(10)->toArray());
json_encode(Node::load(10))

Data Selection not working in Rules

Hi!

I use Drupal 8.1.2 and Rules 8.x-3.0-alpha1.
I created a new Rule, try to input value to field Data and nothing is happening, but I waited list with available data... (It was in Drupal 7)

What can be wrong?

Thanks! (Sorry for my English)

Only local images are allowed.

Manipulation of custom fields by php function

I need to change the value of a custom field when viewing a node. This field (url) is used in javascript-code to embed a HTML5 visualisation.

The setup:
* Within a content type a custom field is defined: field_embedurl
A sample value of this field is http://domain.com/nicevisualisatoin

* Each user has a custom field with login-information
field_embeduser, for example john@example.com

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x