How can i display child terms under parent terms and assigned articles using entity field query?

How can i display child terms under parent terms and assigned articles using entity field query?

Hi i have one content type with two vocabulary term references one is called category and terms is A,B,C like the 2nd one resources it contains parent with child terms like below hierarchy Resource 1 Subsection 1 Subsection 2 Subsection 3 Subsection 4 Resource 2... read more
Showing local tasks in toolbar with hook_toolbar: caching problem

Showing local tasks in toolbar with hook_toolbar: caching problem

I’m creating a module using the toolbar api showing all administrative functions in a more compact toolbar. I’m having “cache” troubles showing the local tasks in the toolbar… How can I keep these items outside the toolbar cache? In my... read more
How can i display child terms under parent terms and assigned articles using entity field query?

Fallback value for contextual filter, in case the "provided default value" does not exist

I want to display a block on each page (nodes as well as pages created by Views) that displays links to nodes that are tagged with a certain taxonomy term. How to decide which tag should be used: {1} If the page is a node that references a taxonomy term: use the... read more
Custom Views Sort Order Using Filter Value

Custom Views Sort Order Using Filter Value

I have a View containing a list of events. There is a date field on the event content type which contains start and end time: There is a filter for start time, which is setup using the Views Between Dates Filter: This means that entering 11:00am in the filter will... read more
How can i display child terms under parent terms and assigned articles using entity field query?

SQL query to access a field collection’s data? At them moment, I’m only getting field_collection_item returned

In the below example, I am trying to return the value of a field from all the field collections in the database but only get field_collection_item. This example is just the most basic field collection sql possible. SELECT field_collection_item.item_id AS item_id,... read more
How can i display child terms under parent terms and assigned articles using entity field query?

How to rename uploaded files

Using Drupal 8, I want to rename and clean all filenames, e.g. If someone uploads file named like this Screen Shot 2016-03-29 at 1.13.21 PM.jpg, I want to clean it so that convert all spaces to dashes – and make everything lowercase, So I should get... read more
How can i display child terms under parent terms and assigned articles using entity field query?

DrupalDateTime class not work

I try to use the DrupalDateTime class in my theme to show native date and time in custom format based on special TimeZone in my nodes. According to New Datetime API DrupalDateTime should be used instead of the PHP DateTime class or to functions like date(), gmdate(),... read more
How can i display child terms under parent terms and assigned articles using entity field query?

Exposed filter list by tags

I have a view, which is listing nodes. I like to exposed filter it by tags (what is a taxonomy). But I like to show tags, what is relevant (has nodes) for the current view. How can I make it? read more
How can i display child terms under parent terms and assigned articles using entity field query?

Page to show submenu items

I have this kind of menu set up in my Drupal 8 project. Level 1 item A1 Level 2 item A2 Level 2 item B2 Level 2 item P2 Level 2 item Q2 Level 1 item B1 Level 2 item D2 Level 2 item E2 Level 1 item C1 Level 2 item Z2 Level 2 item X2 Is there any way to create a page... read more
How can i display child terms under parent terms and assigned articles using entity field query?

Commerce PayPal wps sends to and gets data from sandbox but no payment method available

I’m on localhost without ssl and fix IP. I can checkout with PayPal WPS, go to sandbox, confirm as buyer, and when I click in the sandbox I go back to my testsite after confirming to leave SSL. In my logs I can see (watchdog) that the function... read more
How can i display child terms under parent terms and assigned articles using entity field query?

How to access session in twig?

I wondering how to access to session in twig ? In my Controller I have this part of code : $tempstore = Drupal::service(‘user.private_tempstore’)->get(‘mdm_user’); $tempstore->set(‘num_donateur’, $num_donateur); I tried to... read more
How can i display child terms under parent terms and assigned articles using entity field query?

How to get a drupal path in a modal form?

I would like to have a specific path in a modal form. I tried several things but cannot get i work. Modal_form I installed the module, clear cached and added into a body tekst the example of the module: <a class=”ctools-use-modal... read more
How can i display child terms under parent terms and assigned articles using entity field query?

Access to core comment preprocess variables in a custom comment layout twig template?

In Drupal 8 I have a custom comment type and when I use the default core comment.html.twig to render the comments then variables like ‘new_indicator_timestamp’ and ‘parent’ get rendered as expected. But if I switch to using a custom layout (via... read more
How can i display child terms under parent terms and assigned articles using entity field query?

How to display a block if a Boolean on/off checkbox is checked?

I will eventually install Panels to accomplish this. But I can’t at this time. I want to allow an editor to display a right sidebar menu on any page when they want by checking a Single on/off checkbox . I added a CCK field to the Page type – Boolean... read more
How can i display child terms under parent terms and assigned articles using entity field query?

Data not received on server in ajax

I’m trying to post data from ajax to php page which I made in the hook_menu, called “handler”. So I have “domain.com/handler” which I try to do this in it: function handler(){ print_r($_POST); } and the hook looks like this:... read more
How can i display child terms under parent terms and assigned articles using entity field query?

Quiz: Multiple choice question – Able to have the question correct with any correct answer

I am using Quiz Module / Multiple choice. In one question, I have two answers correct and I’m hoping to have the question marked right, if any of the answer is chosen. Right now, if both answers are chosen, only then the question is marked as correct by the... read more
How can i display child terms under parent terms and assigned articles using entity field query?

How do I use Hook_update_N to update an FieldConfigStorage?

function some_config_update_8101(){ if ( !FieldConfig::load(‘image_byline’) ){ $config_path = drupal_get_path(‘module’, ‘some_config’) . ‘/config/install/field.field.node.main_image.field_image_byline.yml’; $data =... read more
How can i display child terms under parent terms and assigned articles using entity field query?

RNG Module wait-list feature

I just took a first look on the RNG Module. In the Readme, it is called the successor of the Drupal Entity Registration Module. Is there a wait-list functionality planned or already implemented? Maybe I’m not getting it right and its already implemented via... read more
How can i display child terms under parent terms and assigned articles using entity field query?

How to automatically modify a field after saving content?

I have posted this question on drupal.org (via a comment titled “field modification triggered by saving action”), but I realized that the thread is more than five years old. So I reproduce here the question made there: field modification triggered by... read more
How can i display child terms under parent terms and assigned articles using entity field query?

How can I specify inner elements template in custom login page?

I am new in Drupal 8. I want to create a new theme to according to my HTML. What is the best practice to integrating a custom build theme to drupal engine. I have covered all sections in Drupal 8 theming tutorial. Now I need to integrate custom login page. I have... read more