Q: Restfull web services and serialization module activated. After upgrade to Drupal 8.5, It receive always the error “A client error happened”. Now the response is always an “html format”: no json returns anymore. A: Simply used the same path and added ?_format=json at the end of the URL and it’s working. Example : http://site.com/view (page View) http://site.com/view?_format=json (custom […]

The simplest way to perform this remains transliteration module. To answer specifically to “Does pathauto have some kind of hooks that I could use to apply this function“, you can use hook_pathauto_alias_alter() : function YOURMODULE_pathauto_alias_alter(&$alias, &$context){ $alias = removeAccents($alias); } function removeAccents($str){ $a = array(‘À’, ‘Á’, ‘Â’, ‘Ã’, ‘Ä’, ‘Å’, ‘Æ’, ‘Ç’, ‘È’, ‘É’, ‘Ê’, […]

Need to alter the login form and add a submit handler which will take care of the redirection. You cannot use $form_state->setRedirectUrl() directly in the form alter, since it will be overwritten by UserForm::submitForm(). login_page_redirect.routing.yml login_page_redirect.admin: path: ‘/admin/content’ login_page_redirect.module <?php use Drupal\Core\Form\FormStateInterface; /** * Implements hook_form_alter(). */ function login_page_redirect_form_alter(&$form, FormStateInterface $form_state, $form_id) { switch ($form_id) […]

Load up the menu tree with MenuLinkTree::load, which will give an array of menu links to work with. From there it’s just a matter of looping through and getting what you need. Here’s my solution for generating recursive array from menu items /** * Implements _generateSubMenuTree(). * * @param $output (string) * @param $input (array) […]

If it’s Windows, you’ll not be able to access files under a UTF-8-encoded filename, because the Windows implementation of the C IO libraries used by PHP will only talk in the system default code page. For Western European installs, that’s code page 1252. You can convert a UTF-8 string to cp1252 using iconv:

When page load first time masonry overlaps images, and after refresh it work fine.

This tutorial shows you how to use LOAD DATA INFILE statement to import CSV file into MySQL table.

The quantity drop down menu on your product page is controlled by the CartItemQtySelect.html 1. Loging to the system 2. Go to design panel 3. Find the file CartItemQtySelect.html 4. You can increase the values whatever you like. Please see the below example.

You can use feed module to importing simple data in csv files into drupal 7 https://drupal.org/project/feeds

Ckeditor says file browser disabled for security reasons. Can’t upload anything how do it fix this? Removed the $cookie comment from settings.php and followed all the drupal.ckeditor.com installation directions for ckfinder.