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

Proper syncing of untranslated strings

Hello people!

Trying to figure out something that drush_language was already supporting.

I want to send all untranslated strings to production for translation before the actual code touches production.
For this reason I use drush_language to make these wonderful .po files with output similar to:

msgid "Exported translations for language @langcode to file @file."
msgstr ""
msgid "Export complete."
msgstr ""
msgctxt "tripping_context"
msgid "Show results for giannis"

I am exporting via

Make a Content Type with fields and views installable?

Hello!

I am new to drupal and got the task to export a content type with fields and views to be installable on another site.

I have tried to do it with "Features" but without success (some dependencies are missing every time).

I want to try it with "Configuration Split" but i dont know how and i cant find any tutorials for my case.

How do i export the configuration of my content type so i can use it with all the fields/storage-fields and everything i need?

Thank you!

How do I populate/add content to theme regions via custom module. Please help

Hello Friends,

I have installed a theme I purchased to my drupal website.

I now have a custom module that I would like to use to add custom/dynamic pages.

Currently I am using the following procedure to create a page:

Create forum containers and forums programmatically

I need to create forum containers and forums programmatically. I have reviewed Drupal 8’s API, https://api.drupal.org/api/drupal/core%21modules%21forum%21src%21Tests%2... , but they’re passing a reference of the current object. I’m not able to figure out where they’re getting that object from. Does anyone have insight on how to access the forum’s module from a custom module? I can probably figure out the rest from there.

Why user logs out on maintenance mode

When logged in user is coming on the website where maintenance mode is switched on he is logged out. I know this behaviour is intended and stored in Drupal\user\EventSubscriber\MaintenanceModeSubscriber , my question is - why is it so?

Why need to logout user that is visiting website in maintenance mode.

How to programmatically set front page via custom module?

Hello friends,

I have a home.html.twig page stored in the /templates folder of my custom module.

How would I go about setting this page to be the front page of my drupal site?

It should probably also be noted that I am using a theme that I have purchased.

Any advice would be GREATLY appreciated <3

Pages

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