Use Main language Path alias in other language in Drupal 8

I installed Drupal 8 and set two domains on it.

  • glinboy.com for English
  • glinboy.ir for Persian

I have a problem with the path-aliases: I want the Persian site to use the URL I define for the English site. For example, I have programming/language/java as path for the java taxonomy term; it is the same in other languages, automatically generated for the translated terms.

I use the Pathauto module, but I can't figure out a solution for this problem.

Can you help me?

Site-wide background image in D8

Anyone had luck changing the background image in D8 to a fixed background image file ?

I looked at themes/theme-name/css/style.css

body {
line-height: 1.5;
font-size: 87.5%;
word-wrap: break-word;
margin: 0;
padding: 0;
border: 0;
outline: 0;
background-image: url('../images/main-bg1.png');
}

This is not working.. not sure what else can I do ?

AJAX HTTP error Code 500

This is the error message I am getting after I have updated from Drupal 8.2.7 to 8.2.8 then to 8.3.1 then to 8.3.5.
An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /update.php/start?id=288&op=do_nojs&op=do
StatusText: Internal Server Error
ResponseText:

Customizing a Bootstrap theme

I would like to know how to customize a theme.
Question #1: all html elements like header, section, footer etc can be removed from the Drupal interface?
Question #2: I am working with a Bootstrap theme and there is a section that has 3 columns (each with an image and text), but I want only 2 columns with this same content, how/where would I modify this? I am confused when to modify content with block.twig, node.twig and when in the view mode. Also what sections of a page are block, nodes, view mode part of? And with any I can modify this Bootstrap theme?

Webform D7 HOOK // Webform D8

Hello,

I'm using drupal7 with webform 3. I made a custom modules which use hook_webform_insert,update,presave.
I must migrate my website to Drupal 8 with Webform, but i don't find anything about hook.
Anybody can help me to find a solution to use hook to Drupal 8.
Thanks a lot
Best regards
Denis

How to get the label of a ListInteger field?

Hi all,
I've a custom content-type, on a Drupal8 site, that has a field called "field_status" that is a List (integer) defined in this way:
0|closed
1|open
2|rejected
...

How can I get the label (close, open,..) given the key (the id) of the option?
$statusID= $machine->get("field_status")->getValue()[0]['value'];
$statusLabel= ????

Thank you very much

Claudio

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x