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.
On my user registration form, I have two types of users. For one of the types, I want two additional drop-down fields to appear when that user type is selected but which are not available for the other type of user.
I know how to add fields to the user registration form but don't know how to make certain fields specific to certain user types.
I would like to know the best way to do redirects to mobile layouts.
Maybe containing the content in the node and page template files within if and else statements which are conditional on the device or page dimensions being used ?
I have a problem with the text in a block.
The background is an image and the text needs to be in the grey area.
The theme I work with is Danland.
Can anyone help me with this problem?
Thank you
I'm planning to build a news website with Drupal 7. The homepage have different sections such as World, sports, business, etc. Some stories might repeat in 'Top stories' & a section, for example. How could I avoid this repeat story from appearing from the section? I was thinking about views to accomplish the sections and a nodequeue to manually control the 'Top stories'. Any help is really appreciated. Thanks.
I am a new drupal developer.
Now I want to use hook_views_pre_build to modify my some view page.(ex: http:myurl/experience)
But I don't know where can I insert function hook_views_pre_build.
Which file must I modify?
Please help me kindly.