This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Why my template use admin theme instead of front theme ?

 Hello,

[Sorry for my English]

I need to create pdf files from a full HTML to keep my CSS files. I use a template in my module. But if I clear cache on a admin page, my template use admin theme, whereas if I clear cache on a front page, this is the front theme that it used...

How can I choose the theme to use in my template to still have the same theme used by my pdf files?

I want to use my template only with my front theme, and I search a way to fix it.

My code with comments in my controller:

`SYSTEM` table was deprecated in MYSQL 8.0

The `SYSTEM` table was deprecated in MYSQL 8.0.

'SYSTEM` table used in _OAUTH_COMMON_VERSION (OAUTH_COMMON.MODULE) in DRUPAL OAUTH 1.0.

Please help me what is the alternative way.

Redirect response is not working

Hello,

I am new to module development. 

If the user is not logged in, I expect the user to redirect to the login page but it is not working. 

\web\modules\custom\demo\src\EventSubscriber:

How to display promotion options programmatically to content editors

Hello, 

I like to give content editors permission to promote content for basic page entities. 

Created a content editor user (people -> add user).

Created a yml file at the module base directory. 

touch demo.permissions.yml

can promote nodes:

  title: 'Can promote content'

  description: 'user can change promotion fields on content.'

demo.module file:

About temporary_maximum_age

We changed the value of "temporary_maximum_age" set in config/default/system.file.yml as below.

temporary_maximum_age 21600 → 60

This is so that files in temporary state can be deleted immediately by running the "Deletes temporary files" cron.

What I want to ask is the scope of influence of this setting change.
Our understanding is that there is no impact other than the deletion time of temporary files, but is there any other impact?

I would appreciate it if you could answer. Thank you.

Taxonomy Multi delete Terms D10 version

Hi All,

I have worked on D10 compatible Taxonomy Multi Delete terms, which is working fine. i want to contribute that module, where I can do that

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions