D8 Non-Serialized Custom Content Entity id

I am having fun building a custom content entity in drupal 8 and would like instances to have non-serialized IDs to make URLs less predictable for privacy reasons (think a Google doc link or maybe a non-searchable youtube video link which don't require authentication). What is the best way to execute this and what challenges might I encounter going down this path?

I have no problem creating an algorithm to create custom ids. Rather, I am having trouble sifting through the classes and docs to determine which class and function(s) I need to override to make this happen.

Two-way references in Drupal 8

Hey,

I'd like to know if there's any way to create two-way references in Drupal 8 (i.e. the relationship between node A and B is bilateral). You can do that in Drupal 7 with the Corresponding node references module but I'm having a hard time understanding how to do it in Drupal 8.

Any hint?

Thanks!

Recommendations for the correct set up of entity references

Hi,

i need your support, and haven't found anything that could help me so far.

How do i set up the entity references right in my drupal project?

Assume the following structure:

- Content Type: Hotel
* Title
* Description
* Adress
* Website

- Content Type: Room
* Title
* Images
* Description
* Comments
* Tags

For a database geek that's a rather simple task.
Hotel to room is a 1:n relation

I am looking for a freely placeble/configurable button type...

Hello @all,
my name is Heinz and i am the new one...i am a complete newbie to Drupal (I am using Drupal 8 for things).
I have programming experience with c/c++ for some years and i started with PHP a while ago.
My problem is that i need a button-element which is configurable:
-Size(The caption will be of various length and width)
-Color(At least the background color should be adjustable)
-and it should be placeable freely in my content.
Background:

Drupal 8 content type.

I am using the classy theme as a base theme for a theme I am developing in drupal 8.I have created a content type called events and configured some of the output field labels to be inline (e.g.g date). However these labels are being displayed above the field. I have looked at the twig debug output to find a class for both the label and the field, but all I get is a plain div with out any class.

Checking the twig debug output I see the following:

How to create a module who is displaying data from database

Hello,

All is in the title, I'm starting on drupal 8, and i have to create a module who is displaying data from a database (mysql), I don't know how to make a good structure, what functions i need etc.

I already did a module "Hello World" to undertsand D8.

Need help

Co.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x