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 just installed Drupal 7 and I am looking to creating two kinds of content types which are linked to one another.
Let say for example I want to create a content type "Car brands" and another "Car model".
A "Car model" has a brand, so I want this content type to have a field "Brand" and I want the content of this field to be amongst a list of Brands that are amongst "Car brands" entries.
I think that's a simple question but still I could not find how to do it... What is the simpliest way ?
I want to have a registration page on my site. The page would be used for around 400 hundred people to register. So how could i do this in Drupal? Should I install some extra modules? If so, which module should I install? Thanks.
I have a custom field that creates a static google map. What I want to be able to do is make the map link back to the node it is in.
To do this I need to be able to access the nid of the node that my field exists in from the hook_field_formatter_view.
I would include the code I am using though the function is huge and has so many aspects to it that it would probably be more confusing than helpful.
There must be a way to access the nid of the fields bundle as it is included when the field is saved to the database!
I need a simple code to check if a record exists in a db table. I found this code which does what I want though db_result no longer exists in D7. $exists = db_result(db_query('SELECT 1 FROM {artistfield} WHERE uid = %d', $user->uid));
How would I write this statement in D7?
I'm new to Drupal. I'm currently adding content to my pages, however all the HTML formatting such as h1, li tags are not being recognised at all, even though I can see the formatting in the source code. All text is being rendered as plain text, even though this is not what I have selected using the "Text Format" drop down. Ive used the Stark theme which I have customised easily up until now.