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 actually develop a module for sport competitions.
I initiated the development by making a custom module, then configuring a new entity : "Competition" (to create a basic setup for a given competition : Name, Type (league or play-off), number of teams, etc...).
Now I want to give this entity the ability to add some seasons (for example : 2015-16, 2014-15). Each "Season" has to be related to one and only one Competition.
I created a custom module for form which accepts from date and to date as user input i would like to restrict the user from selecting a date prior to current date. below is my code snippet.
I have imported a dump into my local system(MySQL DB).I now need to access the data present in one of the tables in my Drupal 8 custom form.The idea is there is a field which takes user input and this field should also populate the related items as per the user's input(Just like google search)
The procedure for Drupal 7 is available but could not find any resources for similar functionality in Drupal 8.
An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /update.php/start?id=88&op=do_nojs&op=do
StatusText: Internal Server Error
ResponseText:
Hi everyone, i have a problem in drupal 8:
i create a view called sportview and i have made a template for it called views-view--sportview.html.twig
and what i want is to print the body field or the image field
i try to do things in my twig like {{content.body}} or {{content.image field}}
but nothing displaying