ล่าสุด Drupal คำถามที่เกี่ยวข้อง

คะแนน 0
Leo avatar
กรองตามคำศัพท์หลายคำโดยใช้ JSON API
ธง ng
Leo

ฉันกำลังพยายามกรองฟีด JSONApi ประเภทเนื้อหา Drupal ตามคำศัพท์หลายคำในคำศัพท์เดียวกันหรือไม่ (เช่น เนื้อหาที่ถูกแท็กทั้ง 'อังกฤษ' และ 'สกอตแลนด์')

เธรดนี๠...

คะแนน 2
lazarcelic avatar
ไฟล์ robots.txt ต่อสภาพแวดล้อม
ธง cn

เรากำลังใช้ Drupal 8.9 และเรามีไซต์สเตจ EC2 และไซต์หลักของเราซึ่งใช้ฐานรหัสเดียวกัน

เป็นไปได้หรือไม่ที่จะมีไฟล์ robots.txt ที่แตกต่างกันสำหรับแต่ละไซต์ (สภ...

คะแนน 3
การกลั่นกรองเนื้อหาหลายภาษา
ธง az

ฉันมีสองภาษา (อังกฤษและฝรั่งเศส) ฉันต้องการ:

  • สำรวจตัวเลือกในการสร้าง/ตรวจสอบ/อนุมัติ/เผยแพร่เนื้อหาภาษาอังกฤษ เป็นขั้นตอนการทำงานของตนเอง
  • สำรà ...
คะแนน 0
Create 'conditional' select list in webforms?
ธง kr

I'm pretty new to this so apologies in advance if I'm confusing or not clear enough.

I'm using Drupal 9 and I'm looking for a way to create a 'master' select list on webforms that will only show certain list items dependent on your answer to other questions. Example:

Q1. Do you want to study full time or part time? [select list]

Answers available: Full time / Part time

Q2. When do you want to study?  ...

คะแนน 0
MacSim avatar
How to use datelist in a custom field widget?
ธง um

Since an administrator of the website I am building is visually impaired, I need to create a custom date field widget rather than use the one provided by Drupal.

I am trying to implement a datelist element.

<?php

namespace Drupal\my_module\Plugin\Field\FieldWidget;

use Drupal\Core\Datetime\DrupalDateTime;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Field\WidgetBase;
use Drupal\ ...
คะแนน 0
ตรวจสอบว่าฟิลด์ว่างภายในเทมเพลตย่อหน้าทวิ
ธง pe

ฉันรู้วิธีตรวจสอบว่าฟิลด์ว่างในเทมเพลต twig หรือไม่ (ตัวอย่าง node--lorem.html.twig):

{% ถ้า node.field_lorem.value ไม่ว่างเปล่า %}

    <p>ไม่ว่าง</p>

{% อื่น %}  

    <p>ว่างเปล่า</p>

{% ๠...
คะแนน -2
Top-Master avatar
มีคำสั่ง `drush`Â ใด ๆ เพื่อลบไฟล์การตั้งค่าใด ๆ (ส่งออกก่อนหน้านี้) หรือไม่
ธง cn

เราสามารถใช้ หยดÂ เพื่อลบไฟล์ config-directory ใด ๆ (ที่ส่งออกก่อนหน้านี้) หรือไม่

คะแนน 0
Michael Chen avatar
การเพิ่ม Middleware::retry() ให้กับ httpClient แบบกำหนดเองจะส่งผลต่อ http_client เริ่มต้น
ธง nl

เรามี http_clients สองตัวในไฟล์บริการที่กำหนดเองของเรา __สร้างหนึ่งค่าดีฟอลต์จาก Drupal's http_client บริการไคลเอ็นต์ใหม่แบบกำหนดเองอื่นที่สร้างขึ้นโดยการใช้ http_clien ...

คะแนน -3
Top-Master avatar
How does `drush cim` find and handle the config-directory?
ธง cn

I would like to know where the config directory is, and how drush cim command exactly handles it, to be more specific:

  • Where are the setting files imported from, can you provide me with a path relative to the root (I mean, relative to where the main index.php file of drupal is)?

  • Can we change the import path?

  • Does cim command remove the files after they are imported, or not?

คะแนน 0
J.Floyd avatar
เหตุใดโมดูลที่สนับสนุนจึงพยายามโหลดไฟล์ใดไฟล์หนึ่งจากไดเร็กทอรีที่กำหนดเอง
ธง ma

ฉันสร้างโมดูลบนอินสแตนซ์ในเครื่องในโมดูล/ไดเร็กทอรีที่กำหนดเอง จากนั้นฉันก็เผยแพร่บน drupal.org ในชื่อ จัดกลุ่มตามวิดเจ็ตฟิลด์. ด้วยเหตุผลบางประการ ...

คะแนน 0
ThePear avatar
Views : หน้าว่างเมื่อได้ผลลัพธ์มากเกินไป
ธง cn

ฉันใช้โมดูล Geolocation เพื่อแสดงแผนที่ของสถานที่ ฉันมีสถานที่ประมาณ 550 แห่งที่จะแสดงในขณะนี้ และฉันต้องการสถานที่ทั้งหมดบนแผนที่ของฉัน แต่เมื่อใดก็à ...

คะแนน 0
รับชื่อกลุ่ม (ป้ายกำกับ) ของกลุ่มที่ผู้ใช้ที่เข้าสู่ระบบอยู่ในปัจจุบัน
ธง cn

เราได้สร้างกลุ่มหลายกลุ่มโดยใช้โมดูลกลุ่มใน Drupal 9 เราได้กำหนดผู้ใช้บางส่วนให้กับกลุ่มเหล่านี้ ผู้ใช้สามารถอยู่ในกลุ่มเดียวเท่านั้น ตอนนี้เมืà ...

คะแนน -1
Interlated avatar
ฉันจะรวมคำศัพท์ในฟีด Drupal ได้อย่างไร
ธง km

เช่น ถ้าฉันมี 2 แถวที่มีคนอยู่

ยูอิด | สีโปรด
----------------------
 3 | สีน้ำเงิน
 3 | สีเหลือง

และฉันต้องการผลลัพธ์ให้เลือกทั้งสีน้ำเงินและสีเหลืองในตอนท้าย มีปล ...

คะแนน 0
Basil Vlasyuk avatar
ส่งตัวกรองสัมผัสหนึ่งไปยังอีกอันหนึ่งหรือไม่ (D9)
ธง pk

ฉันมีฟิลด์สตริงประมาณโหลที่มีวัตถุและสถานะของพวกมัน (เช่น ใช้ 'AC_on' และ 'heater_off') และฉันมีมุมมองที่แสดงโหนดที่มีฟิลด์เหล่านั้น งานที่ฉันพยายามทำให้ภ...

คะแนน 0
turpentyne avatar
วิธีแสดงรายการเนื้อหาที่อ้างอิงประเภทเนื้อหาอื่นผ่านย่อหน้า
ธง tr

ฉันมีเนื้อหาสองประเภท: "ผู้แต่ง" และ "เอกสาร" ประเภทเนื้อหาของเอกสารใช้ย่อหน้า "Author_citation" เพื่อเชื่อมต่อทั้งสองและแสดงผู้เขียนทั้งหมด (รวมถึงฟิลด์อืà ...

คะแนน 0
การอนุญาตไฟล์ส่วนตัวไม่ทำงานสำหรับไฟล์เดียว - ไม่สามารถระบุตำแหน่งที่จะค้นหาข้อผิดพลาด
ธง rs

ฉันมีการตั้งค่าต่อไปนี้:

  • ฟิลด์ไฟล์ส่วนตัวกำหนดค่าตามประเภทเนื้อหา
  • การควบคุมการเข้าถึงที่กำหนดค่าโดยผู้ใช้อ้างอิงที่มีสิทธิ์ดูไฟล์
  • หากผู้ใ ...
คะแนน 0
จะรับข้อมูลผู้ใช้ว่าใครลบบัญชีได้อย่างไร
ธง ar

ใน Drupal 7 ผู้ใช้ถูกลบออก ในฐานะผู้ดูแลระบบ ฉันได้ตรวจสอบสิทธิ์และรายงานบทบาทจากเมนูการดูแลระบบ แต่หาข้อมูลไม่เจอ มีวิธีอื่นอีกไหมที่ฉันสามารถค๠...

คะแนน 0
pglatz avatar
จะแสดงมุมมองในเทมเพลต twig ที่กำหนดเองได้อย่างไร
ธง in

ฉันสร้างเทมเพลต twig แบบกำหนดเองเพื่อแทนที่ view-view-fields ในมุมมองที่ไม่ได้จัดรูปแบบ สิ่งที่ฉันต้องการทำคือกำจัดลูปการเรนเดอร์และแสดงตัวแปรอย่างชัดเจ ...

คะแนน 0
ฉันจะรับประเภทของเอนทิตี "บล็อกที่กำหนดเอง" ได้อย่างไร
ธง ve

ฉันสร้างบล็อกแบบกำหนดเองสองประเภท

ภาพหน้าจอ

ฉันจะดึงประเภทของบล็อกที่กำหนดเองได้อย่างไร hook_theme_suggestions_block_alter()?

ฟังก์ชัน mytheme_theme_suggestions_block_alter (อาร์เรย์ &$คำแนะนำ, อาร์เรภ...
คะแนน 0
Baud avatar
How to theme a paragraph form
ธง sa

I would like to create a twig template for the form displayed inside the paragraph widget.

The only way I found is:

function mymodule_field_widget_paragraphs_form_alter(&$element, &$form_state, $context) {
// Check that the subform is opened  
if (count($element['subform']) > 2) {
    $element['subform']['#theme'][] = 'form__aw_calculator';
  }
...
}

After that, I have created a twig template

คะแนน 0
May  avatar
ชุดรูปแบบ jquery UI เติมข้อความอัตโนมัติของ Drupal หรือไม่
ธง zw

ฉันใช้การเติมข้อความอัตโนมัติในการค้นหาซึ่งใช้การเติมข้อความอัตโนมัติหลักซึ่งใช้ jquery เพื่อวางตำแหน่งแบบฟอร์มการเติมข้อความอัตโนมัติ

เอาตà ...

คะแนน -1
mauzilla avatar
HTML not rendered in text field content type
ธง cn

In my content type, I have a text field that will display a string (max 200 characters) in a Bootstrap card. Due to the design, we have to allow the user to add a < br /> or \ n to add "invisible lines" to ensure content is wrapped correctly in the card.

By adding "< br /> to the field however, in twig, the < br /> is printed to screen and not HTML rendered. I have tried:

<p>{{co ...
คะแนน 0
Madam Adam avatar
Referencing media from theme settings and display it on front page
ธง mx

In a custom subtheme of classy base theme, I made a theme setting for referencing an image media file. Contents of file theme-settings.php:

<?php
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Theme\ThemeSettings;
use Drupal\system\Form\ThemeSettingsForm;
use Drupal\Core\Form;
function mytheme_form_system_theme_settings_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state) ...
คะแนน 0
Add prefix on tables break my site
ธง ru

I have an old site on an old shared server which used an old shared PHP 5 we can not update. I create a copy of this website which will run on a different (and dedicated) server with PHP 5.6 and present the contents in a API with the module RESTFUL (which need PHP 5.5.9 minimally to work). This copy will be used only to expose the content in the API. The old website will still be used to add contents. S ...

คะแนน 0
mauzilla avatar
ไม่สามารถรับเอาต์พุตใด ๆ เมื่อส่งอาร์เรย์ผ่านตัวประมวลผลล่วงหน้า
ธง cn

ในพรีโปรเซสเซอร์ของฉัน ฉันกำหนดสิ่งต่อไปนี้:

$variables['myVar'] = "ค่า";

และในไฟล์ twig ของฉัน ฉันสามารถทำสิ่งต่อไปนี้และพิมพ์ค่าออกมา:

{{ มายวาร์ }}

ถ้าฉันกำหนดอาภ...

คะแนน 0
MadzQuestioning avatar
hook_theme_suggestions_node_alter() ใช้ไม่ได้กับไฟล์ใหม่
ธง cn

ฉันดำเนินการ hook_theme_suggestions_node_alter() และเพิ่มคำแนะนำใหม่สำหรับไฟล์เทมเพลตที่กำหนดเอง ในตัวตรวจสอบ ฉันเห็นคำแนะนำถูกหยิบขึ้นมา ฉันสร้างไฟล์นั้น แต่ดูเภ...

คะแนน 1
Using Twig template to generate a PDF
ธง uz

I am trying to generate a Twig template for the Attachment PDF item in a webform. I am able to automatically generate a label and field data using : {{ webform_token('[webform:element:to]', webform) }} : {{ data.to }}

I am trying to figure out how I can get access to the rest of the webform settings such as the labels of the different fields: {{ webform_token('[webform_submission:created]', webform ...

คะแนน -2
Yuseferi avatar
Generate static files of specific nodes with Tome
ธง cg

I'm looking for a way to generate a static version of specified nodes ( in my case they are book nodes pages).

I want to do it periodically in my custom Drupal cronjob,

most of the Drupal static modules are obsolete and there is no version for Drupal 9.

I found TOME module but looks like it's mostly for generating full website static generation through admin panel or drush command line.

I tried drush tom ...

คะแนน 2
mauzilla avatar
ฉันจะโหลดเก้าโหนดที่สร้างขึ้นล่าสุดได้อย่างไร
ธง cn

ฉันต้องการรับเก้าโหนดล่าสุดในเบ็ดการประมวลผลล่วงหน้า ฉันใช้รหัสต่อไปนี้ แต่ส่งคืนทั้งหมด ข่าว โหนด

$entities = \Drupal::entityTypeManager()->getStorage('node')->loadByProperties(['type' => 'news']);

เป็น ...

พลังที่น่าทึ่งของคำถาม

วันทำงานส่วนใหญ่ของผู้บริหารหมดไปกับการขอข้อมูลจากผู้อื่น เช่น การร้องขอการอัปเดตสถานะจากหัวหน้าทีม หรือการซักถามเพื่อนร่วมงานในการเจรจาที่ตึงเครียด แต่ไม่เหมือนกับมืออาชีพ เช่น ทนายความ นักข่าว และแพทย์ ที่ได้รับการสอนวิธีถามคำถามซึ่งเป็นส่วนสำคัญของการฝึกอบรม ผู้บริหารเพียงไม่กี่คนที่คิดว่าการตั้งคำถามเป็นทักษะที่สามารถฝึกฝนได้ หรือพิจารณาว่าการตอบคำถามของตนเองจะทำให้ การสนทนามีประสิทธิผลมากขึ้น

นั่นเป็นโอกาสที่พลาดไป การตั้งคำถามเป็นเครื่องมืออันทรงพลังที่ไม่เหมือนใครในการปลดล็อกคุณค่าในองค์กร: กระตุ้นการเรียนรู้และแลกเปลี่ยนความคิดเห็น กระตุ้นนวัตกรรมและการปรับปรุงประสิทธิภาพ สร้างสายสัมพันธ์และความไว้วางใจระหว่างสมาชิกในทีม และยังช่วยลดความเสี่ยงทางธุรกิจได้ด้วยการเปิดโปงหลุมพรางและอันตรายที่คาดไม่ถึง

สำหรับบางคน การตั้งคำถามเกิดขึ้นได้ง่าย ความอยากรู้อยากเห็นตามธรรมชาติ ความฉลาดทางอารมณ์ และความสามารถในการอ่านใจคนทำให้พวกเขาถามคำถามในอุดมคติที่ปลายลิ้นของพวกเขา แต่พวกเราส่วนใหญ่ไม่ถามคำถามมากพอ และเราไม่ได้ตั้งคำถามด้วยวิธีที่เหมาะสมที่สุด

ข่าวดีก็คือโดยการถามคำถาม เราจะพัฒนาความฉลาดทางอารมณ์ของเราโดยธรรมชาติ ซึ่งจะทำให้เราเป็นนักตั้งคำถามที่ดีขึ้น ซึ่งเป็นวัฏจักรที่ดี ในบทความนี้ เราดึงข้อมูลเชิงลึกจากการวิจัยด้านพฤติกรรมศาสตร์เพื่อสำรวจว่าวิธีที่เรากำหนดกรอบคำถามและเลือกตอบคำถามของเราสามารถมีอิทธิพลต่อผลลัพธ์ของการสนทนาได้อย่างไร เราให้คำแนะนำในการเลือกประเภท โทนเสียง ลำดับ และกรอบคำถามที่ดีที่สุด และสำหรับการตัดสินใจว่าจะแบ่งปันข้อมูลใดและมากน้อยเพียงใดเพื่อเก็บเกี่ยวผลประโยชน์สูงสุดจากการโต้ตอบของเรา ไม่ใช่แค่เพื่อตัวเราเองแต่เพื่อองค์กรของเรา