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've been looking for a few days now but can't find a solution to do this.
I have a simple Drupal 8 theme with Ubercart, and I want to fully customize the Product page. For this I created a twig file called node--product.html.twig. I have everything inside BUT the form.
So after searching a little bit everywhere, I found that to custom the form I need to do something like this:
So, I started toying around with a project in drupal a few years ago, I guess in drupal 6 or 7.
I got pretty far, but then I stopped for some reason.
I recently got the inspiration to try the same project over again, but there is one module I THINK I had that I don't find anywhere. I don't remember the name, but it was just a simple way to crosslink between node types.
I have a use case involving the user "personal contact form" (provided by core Contact module).
I have a "Course" content type that include a User Entity Reference field to link to the user that own the course (i.e. the teacher of the course).
I want to add in the personal contact form of the teacher a drop-down list of all Course Title he is referred to, so that the sender can choose a specific course. The drop-down list must of course only contain courses the personal contact form owner is related to.