This forum is for assistance with theme development.

Call custom module as a part of template and prevent access it directly

I created a module contains form which should work as a part of template or as a modal and it works for these purposes

test_form.open_test_form:
  path: 'test-form'
  defaults:
    _title: 'Test Form'
    _controller: '\Drupal\test_form\Controller\TestFormController::openTestForm'
  requirements:
    _permission: 'access content'

but if i load form path directly loacalhost/test-form will get below response as a textarea

Access to active language in views-view-unformatted-list

I made page view and added Content: Translation language (= Interface text language selected for page) and Rendering Language: Interface text language selected for page and needed override default  views-view-unformatted-list template so in my template have

Access to specific field of a custom block used in view page header

unfortunately to have different header banner for each page made by view we have to use additional elements like blocks as header, so first i created content type for my page, and collect them by view page, then created a custom block for banner image and add it as header.

the first weird thing is admin has to create and modify contents and banner image in different area!!! i have no idea about this concept

the main question is how can i access the field value of custom block put inside header of this view?

Having trouble overriding contrib module's JS in my theme

Hi there, I've tried both completely replacing the library and just replacing the one JS file that I want to override.  I have looked at the docs for this and I can't figure out what I'm doing wrong.

I'm trying to override js/dropdown-widget.js from the contrib Facets module.  I've copied that file into my own theme at my_theme/assets/js/dropdown-widget.js.

modules/contrib/facets/facets.libraries.yml

Getting theme Framework working on Drupal 7

Hi!

First time poster so hints on posting on this forum are greatly appreciated.

I'm in the process of upgrading an older Drupal 7 site (to 8) and having trouble getting the theme Framework working; Best description is that it is ignored and using the fallback Bartik theme. The site is running locally and my setup is:

Windows IIS 10 PHP 7.4 MySQL 5.7 Drupal 7.78 Framework 3.5

Thanks for reading!

dxpr

Hi my name is Sam and I'm new to the drupal world, I'm starting with a tool called Dxpr, but which during its installation caused problems, i.e. bugs regarding patches, a problem that occurred mainly with the Acquia Lighning dxpr module (patch 2869592 ), a problem that cannot be solved even if disabled by composer. If you have any solutions, propose them thanks in advance ...

Pages

Subscribe with RSS Subscribe to RSS - Theme development