This forum is for assistance with theme development.

Positioning of "print" widget with printable module

Hello,
I am on Drupal 9.1.9, trying to display node-content of pages through the "printable" module (printable/printable_pdf both at v 2.0.1). I use a subtheme of bartik.
The print widget is defined to be displayed in the content area. Using css, I actually want to position it on the right edge of the breadcrumbs region. 

How override views PAGE (not view block) template

How can I prepare specific file name suggestion and override a view page template? I tried all followed ways but not change and only renders <!-- BEGIN OUTPUT from 'core/themes/stable/templates/views/views-view.html.twig' -->

Can't put node-form tpl's in a templates sub-folder?

I have custom node-form.html.twig templates for all my content-types for heavy customisation. I was trying to improve the file structure but for some reason, the node-form templates only work if I put them in the root of the templates folder. If I move them in a subfolder (/templates/node-forms for example) I'm getting an error:

Twig\Error\LoaderError: Template "themes/mytheme/templates/node-form.html.twig" is not defined.

Do I have to specify anything more in my theming function below to make Drupal aware of the sub-location?

modify Connection.php inputs

I get SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known error during cache-rebuild so checked Connection.php and saw the $dsn value is different with .env and settings.php info. according to followed var_dump it returns string(58) "mysql:host=server1;port=3306;charset=utf8mb4;dbname=testdb"

Drupal just render views_view_unformatted hook and couldnt change it

even though i selected Grid, Table and HTML list format for my views page, for all of them only render under Unformatted format

I already cleared cache and also tried to override the views-view-unformatted.html.twig name suggestion as below:

Login page submit path

Hi there,

I do not have a lot of experience with Drupal. I have a development site and production site. When I try to login to to my development site, it redirects to the production, making the development unusable. Can someone help me find the file I need to edit my theme to change the path to relative?

Pages

Subscribe with RSS Subscribe to RSS - Theme development