Top "Drupal" questions

Drupal is an open source CMS framework written in PHP.

Drupal Override Custom Menu Template

I created a custom menu called "sub-top-nav" and now I'd like to override the html output. In particular I would …

html drupal
Render a Drupal node

I would like to show a node inside another node. So I retrieve the node id of the second node …

drupal drupal-7 drupal-nodes drupal-render
Get URL parameters inside custom module

I've created a custom block like this: class HelloBlock extends BlockBase implements BlockPluginInterface{ /** * {@inheritdoc} */ public function build() { $config = $this->…

php drupal drupal-8
Creating a link from node ID in Drupal 8

I am checking out Drupal 8 and try to generate a link based on the node ID of an article. In …

drupal drupal-8
Extract Url & Title from link field in Drupal 8?

I'm trying to retrieve the URL and the Title values of a Link field in Drupal 8. In my custom controller, …

php drupal drupal-8
Export content type in Drupal 7

Is there a way to export a content type from a site and import it to another? I haven't found …

drupal import drupal-7 export content-type
how to get all the menu items below a certain parent in drupal?

I really only need the mlid and title text for the first level below a certain menu item. Here's what …

drupal menu
custom page.tpl.php for a drupal view

How can I create a custom page.tpl.php for a specific view? I'm not talking about styling the view …

drupal drupal-6 views drupal-views drupal-themes
Handle multiple submit buttons in Drupal form API

I have 2 submit buttons and want to perform different actions for each submit button . Here I want to set the …

drupal
How to get the currently logged in user's role in Drupal 7?

How to get the currently logged in user's role in Drupal 7 ? Do you know a simple way of accomplish this ? …

drupal login drupal-modules drupal-7