Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
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.
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.
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:
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:
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.