Custom Block for displaying a Menu

I'm trying to make a Custom Block that displays only the menu links from the current parent.
Let's say we have parents A and B with their respective children A1 A2 and B1 B2.
In case that we are on a Parent or a child the menu should only show for example:
A
-A1
-A2
when we are either on A, A1 or A2.

The code I have right now displays all the menu

Install PHP uploadprogress on Ubuntu 12.04-16.04 systems

Requirements

These instructions will work on the following systems:

  • Ubuntu 12.04 LTS with PHP 5.5/5.6/7
  • Ubuntu 14.04 LTS with PHP 5.5/5.6/7
  • Ubuntu 15.10 with PHP 5.5/5.6/7
  • Ubuntu 16.04 LTS with PHP 5.5/5.6/7

You will also need command line access with admin/sudo permissions.

Note: If you have an older version of Ubuntu or PHP you really should if possible update for security reasons (as well as performance and bug fixes).

Installation

Installation is quite simple; in your command line run:

Using REST in Drupal 8 to create a user.

I am currently experimenting with Drupal 8 REST web services.

I would like to use the Drupal 8 REST web services to create a user, however I am having some trouble deciphering the documentation, blog posts, and forums posts.

I am trying the process using both curl from the shell and the DHC chrome extension.

Here is what I am doing:

I have not used many web-services services so please correct any of my assumptions.

First I get a X-CSRF-Token using the Rest Service.

Modify REST Export API response structure in Drupal 8

Hi,

I have generated a REST export from a view page in Drupal 8. The REST export is working fine and gives the JSON output, when I call the API. But, I would like to modify the structure of this REST export response. That means, currently the REST export response is just an array with out any name for that array. I have to add a name for that response array. Is there anyway to modify Drupal 8 REST Export API response for implementing this?

Thanks,

Post to Drupal module

Is there any modules out there which allow, with the use of some API, and from external url, posting content into Drupal?

for a specific block module - I need a snippet for upload an image and render

Hello,

Drupal 8:

I need to write a small block module having these features:

1- a form to upload an image
2- save image file on drupal file system
3- and render image using a template in a block

If somebody could help...

Thanks

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x