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

How to use GET request in twig file?

Hi,

I want to retrieve a parameter using GET request in a twig file. My url looks like the following:

text/10405/page?source=field_gita_10589_text&audio=1,

If audio parameter is set, I want to add a button named "Play Audio" next to the content displayed, how can I do this in my twig file?

Currently my twig file looks like this, it displays some content:

Errors & Warnings still displaying even after "Error messages to display" is set to "None"

Hello friends,

I am trying to hide all Warnings and Errors on my Drupal 8 production site.

It looks like the process should be pretty straight forward using the UI:

Administration->Configuration->Development->Logging and errors

Error messages to display:

  • None

However, this does not seem to change anything as all the warnings and errors are still displayed.

Am I missing anything? Is there a way I could turn of errors and warnings programatically?

drag and drop question in h5p - variebles

Hi Everyone

I am  trying to find in a .php file (or somewhere in drupals folder structure) if there is any varieble to save all movements in a drag and drop question from an h5p content that i have created.

More detailed i wonder if drupal saves the moves in drag and drop question (for example,how many times an answer has been moved or if user changes his answer before press the check button.

Thanks

How to add previous and next buttons in Drupal forms

Hi,

I have added previous and next buttons in drupal 8 form. Here is a screenshot of my form

https://imgur.com/a/3FoWxi7

After clicking the 'Next Level' button, I want to select the next chapter from the Select Chapters fields.

How can that be done in forms? 

This is part of my code for chapters field:

Restful put update error 506

Hello, 
I have a problem with the restws, I manage to recover data, but when I want to do an update I get an error: 406Not Acceptable : UuidEntityException: Trying to save a Content entity with empty or invalid UUID.
Please, could you tell me what the problem is?

Problem with hook_service_resource return status 500

I have a problem fews a day.

In this case I created service with login function response login is work but status code internal error 500

I call to services/session/token and get token attach in header then call test_api/user/login.json

X-CSRF-Token : token

Content-Type : application/json

after response is failed because status code 500 but response text is right.

I can't attach image capture. Thank you for read. apologize for my english language.

Pages

Subscribe with RSS Subscribe to RSS - Module Development and Code Questions