This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

D8 - Rest API - Taxonomy with hierarchy

In Drupal 8 (8.7.6), I would need to import several terms in a taxonomy dictionary. It is easy to create the terms at the “root” level, but when I try to create a term with a parent, the term is not created under the parent (but in the root).

Do you have any idea on how to solve the issue?

Thanks

creating a functionnality to refresh page when clicking on a button

hi, 

everything is in the title, I want to create a button that refreshes the page. I've checked on internet, but it's absolutly unclear to me mostly because I don't know how to integrate Javascript within a drupal 8 module. 

I guess other people's have being througth that. Could anyone of them help me ? 

cheers

Database query

Hello, I want to do a very basic query in my my_module.module  but i can't solve it. Someone could help me ?

I want to make an update of my table only for the more recent entry for a specified user. In sql, something like this :

UPDATE table
SET used = 'false'
WHERE bid = (SELECT MAX(bid) FROM table
WHERE uid = 1)

But I don't find any way to do this in drupal 8.

Thanks in advance.

PS: sorry for my bad english

Error with views

Hi,

I have tried to create a view named Aricles(should have been Articles) which displays all contents of type articles. I have attached a link that shows the screenshot. GET request is giving 406 error, if I type http://some_address/api/articles. 

But if I type http://some_address/api/articles?_format=json, it displays the content. Is there a way not to type that ?_format=json everytime . Can you please let me know. 

Here is the link, Aricles is right on top:

https://imgur.com/a/mzQUCgl

How to count the number of class on a page and display the result in a menu ?

I have a Drupal 8.7 site with Bootstrap 3.4.1 theme

I have created a store view page to display the tasks to be performed by merchants.

On this page, each task corresponds to a view block:
- The green blocks have the class "task-success".
- The orange blocks have the class "task-warning".
- The red blocks have the class "task-danger".

https://imgur.com/a/RjwBzYL

Theme, different positioning with admin / non admin user

I have a strange behavior with a custom theme based on bartik.

<ul> sub menu inside <li> does not position the same if user is admin or user has no admin role.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions