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

custom views block not display in anonymous user

Hello,

i'm learn drupal ( version 8.6 rc1).After placing  the block "Who's online" in the sidebar first , this block  appears when I am logged in as admin , but not display when i'm anonymous user.

thank you for the help.

zembla

i try with drupal 8.6 rc1, bartik and barrio bootstrap subtheme

Remove old field

in my backend I have an error "node.field_descriptif need to be uninstall", but I don't have this field anymore, but it is in database. How can I do that ?

EDIT :

I tried

drush entup

This si showing me entity that needs to be update, but when I try to press yes, I have this error :

The command could not be executed successfully (returned: 'C:/MAMP/htdocs/ext-partenaires/vendor/drush/drush/drush' n’est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes.

Drupal 8 -Unable to catch Http exceptions

public function makeRequest() {
        try {
            $client = \Drupal::httpClient();
            $response = $client->request('GET', ($this->url . '/' . $this->id), [
                'headers' => [
                    'Accept' => 'text/plain',
                ]
            ]);

            $body = $response->getBody();
            $decoded = json_decode($body, true);
            $this->data = $decoded;

        } catch (ClientException $e) {
            watchdog_exception('http_module', $e->getMessage());
        }

Date and integer format

Hello,I'm a newbie as drupal developer.I have 2 fields. One is in date format and the other is an integer. I want to add the date format field with the integer field and the result should be like this: 8/27/2018 + 3 = 8/30/2018.Is this possible in drupal?Help is much appreciated. Thanks

Get checkbox elements in a table

Hi!

I have a list of checkbox in a table but instead having many choices I wanted to have just one possible selection (Exemple radio button), I was thinking to use hook_form_FORM_ID_alter to get the elements and then rebuild a radio buttons.

My problem is how to explore the form and table and get elements? remove checkbox table? rebuild radio button?

Do you think this way is the best one? can you please provide some advices and code exemples. 

Thank you in advance.

Search API View - Programmatically Add Rows

Hi all.

I'm currently trying to modify the result of a Search API view (from Solr) so it has additional rows in depending on various custom criteria.

I have tried following the instructions on this page but with no luck: https://drupalium.com/articles/insert-replace-delete-rows-from-view-results

Pages

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