Find Jobs
Hire Freelancers

Drupal - set html 'lang' to match node 'langcode'?

$30-50 USD

Ditutup
Disiarkan sekitar 2 tahun yang lalu

$30-50 USD

Dibayar semasa penghantaran
I would like to change a node's html 'lang' from site's default to the node's 'langcode'. For example, if I create a node and while creating I select French as the language, I would like the page's html 'lang' to "fr" So far I have this but I'm getting an error of 'Error: Call to a member function getFormObject() on null' /** @var \Drupal\Core\Template\Attribute $html_attribute */ $html_attribute = $variables['html_attributes']; $node_langcode = $node->get('langcode')->value; if ($html_attribute->hasAttribute("lang")) { $html_attribute->removeAttribute('lang'); $html_attribute->setAttribute('lang', $node_langcode); } Deliverables Code that changes the node's html attribute to the node langcode.
ID Projek: 32786123

Tentang projek

10 cadangan
Projek jarak jauh
Aktif 2 tahun yang lalu

Ingin menjana wang?

Faedah membida di Freelancer

Tetapkan bajet dan garis masa anda
Dapatkan bayaran untuk kerja anda
Tuliskan cadangan anda
Ianya percuma untuk mendaftar dan membida pekerjaan
10 pekerja bebas membida secara purata $60 USD untuk pekerjaan ini
Avatar Pengguna
Hi, I'm a Drupal developer and I can do this project easily. You will find my reviews and completion percentage better than others. I have good experience in CSS, PHP, HTML and Drupal. Over 8 years of experience in developing website's, done more than 400 projects successfully on this site itself with 97% completion rate. * Europe citizen * * 30 days of FREE maintenance * Please let me know Best regards. With plans of the further cooperation. Thanks Oleg!
$100 USD dalam 2 hari
4.8 (115 ulasan)
6.2
6.2
Avatar Pengguna
Hi! How are you doing? I have read the project description and really interested in this job, I have 4 years’ experience doing similar jobs regarding to these skills Drupal, JavaScript and PHP. Please start the chat, I have some questions about this task so we can have detailed discussion about project. Thanks! Umair
$50 USD dalam 7 hari
5.0 (15 ulasan)
5.0
5.0
Avatar Pengguna
Hello Dear Client, My name is Bhupendra, i have 3+ years of experience in Drupal development and i can develop for all the versions of Drupal, I was working with a company and now started to work as full time freelancer over here. I have lots of Experience in web development, look over my skills set below 1) Drupal theme and module development. 2) Drupal custom module development. 3) Custom theme and theme customization, making mobile ready. 4) E-Commerce, Ubercart, Commerce Kickstart and other payment integration. 5) Drupal Upgradation from Minor version to Major version. 6) PHP 7) MYSQL 8) HTML5 9) CSS3 10) Bootstrap. Please give me a chance to show my skills here. I will be great source for you & your Organization . I will try to satisfy you with my performance. Looking forward for your positive response. Bhupendra Patel
$40 USD dalam 1 hari
5.0 (47 ulasan)
5.0
5.0
Avatar Pengguna
Hi, i understood your project details very well and i can finish the same in your timeline. come over chat to further discuss
$60 USD dalam 1 hari
4.9 (52 ulasan)
4.7
4.7
Avatar Pengguna
Hello Employer, I'm a Drupal developer with 10 years of experience. Drupal versions: 9, 8, 7 & 6. I'm expert in writting custom modules. I understand hooks, variables and templates functions very well. I can easily solve the error that you are getting and help to get your solution. Thanks, Sandesh
$40 USD dalam 1 hari
5.0 (18 ulasan)
4.4
4.4
Avatar Pengguna
Hi, I've gone through your reference code and I can change a node's html 'lang' from site's default to the node's langcode as per your requirements. So kindly come to the chat for further duscussion and I assure you that I can pull each and every functionality of what you are hoping for. Hope hear soon and a positive response from you. Kind Regrads Asim A.
$40 USD dalam 1 hari
0.0 (0 ulasan)
0.0
0.0
Avatar Pengguna
Hi there, My name is Umair. I have good experience with Drupal, JavaScript and PHP. I am a practicing Developer/Designer Since 2015. I can perfectly work on this project regarding Drupal, JavaScript and PHP. Based on my experience, I can do this task for you and the quality of work would be up to the mark. However, further discussions are required for more clarity. I will wait for your text to discuss the project in further detail. Thanks & Regards Umair A.
$150 USD dalam 10 hari
0.0 (0 ulasan)
0.0
0.0

Tentang klien

Bendera FRANCE
Paris, France
0.0
0
Ahli sejak Jan 27, 2022

Pengesahan Klien

Terima kasih! Kami telah menghantar pautan melalui e-mel kepada anda untuk menuntut kredit percuma anda.
Sesuatu telah berlaku semasa menghantar e-mel anda. Sila cuba lagi.
Pengguna Berdaftar Jumlah Pekerjaan Disiarkan
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuatkan pratonton
Kebenaran diberikan untuk Geolocation.
Sesi log masuk anda telah luput dan telah dilog keluar. Sila log masuk sekali lagi.