block-- twig file in module folder

Hi,

I create a custom test module and in it I have a block file "/src/Plugin/Block/FirstBlock.php". 

I want to use a twig file to show the header of this block. If I use this block--first-block.html.twig in theme's template folder then it works, but placing the same file in module folder doesn't work and defaults back to classy's block.html.twig. 

Is there something I can do to place it in module folder and have Drupal recognize it? 

Thanks!

Store date range without the timezone

Hello,

First, I would like to say that Drupal sucks!!! In 20 years experience as a developer, I have never worked in an environment with so many bugs, errors and lack of documentation!

In almost any task that I do, I get stuck and things that take 3 minutes in any other platform, take hours and days here. Drupal sucks!!!

Now for the question....

I have the simplest code ever, I even hard coded it.. I worked on it for the last 5 hours and it still doesn't work... Here is what happens:

Is there a way to install Drupal 8 with composer without drupal-project?

The page about installing Drupal 8 suggests this command:

composer create-project drupal-composer/drupal-project:8.x-dev mydir --no-interaction

This uses something called drupal-composer/drupal-project to set up a new Drupal 8 website with all required libraries – and some libraries that are not required on a production site.

Secure Pages Module

I installed the Secure Pages module to my website now I have an error message "Access Denied You are not authorized to access this page" when I am logged in to user1 which is the admin of the account. So now I can't do anything with my site. How do i get back in to my site? Also, how do I uninstall the Secure Pages Module properly once I get back in to my site?

Module that can do a page search

I was wondering if there is any module on Drupal 8 that can perform a page search, unlike the core search function which searches the entire website? Or any module that could help me get the results display like the one in the image below? Thank you in advance for your answers

https://i.stack.imgur.com/kIjwi.png

Search function to search on each level of a nested/tree menu

I was wondering if there is any module for Drupal 8 that can be used to do a search on each level of a tree/nested menu individually? For example, if I have a menu as follows:

<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>

If I am on the Coffee page, I should be able to make a search on that page only, and not the entire website. 

Any kind of help is welcomed. I thank you in advance for helping me out with this issue. Have a great day.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x