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

How to create a link under configuration > content authoring

Hello, 

I am trying to add a link under configuration > content authoring but it does not display. 

drupal-8.7.4\modules\custom\rsvplist\src\Form\RSVPSettingsForm.php:

Changing field widget programmatically under Manage Form Display

Hi, 

Please let me know how can I set the field widget property programmatically. Here is the screenshot of the Manage Form Display of my website, I am trying to set the widget of the field Positional Index to Simple Hierarchical Select programmatically..

https://imgur.com/a/n8PLaLQ

Please let me know, thanks.

Looking for review/eval of new Drupal 7 module "Block in block"

I've written a Drupal 7 module called Block in block, and created a sandbox project for it. I would appreciate it if some people would look at it and let me know if they see any issues or problems with the module, or have any suggestions. This includes the description on the project page, README.md, changes needed before requesting promotion, etc. Feel free to let me know if there is a better place for me to ask this.

module.install and schema api

Hello,

I have a problem with Schema API in paritcular context. I understand the mechanism of Schema API for adding new Tables in Drupal Database from module_schema hook in mymodule.install file, But I can not do it when it comes to another database ?!

How to build a feature like JIRA's Component and Version in Drupa?

I want to show a software's sturct using Drupal

the basic of my software is as follow picture.

the SW , Compontent and Module  have there versions ,and the code is in a git repository.

Is anyone kindly help me how to orgniz it in Drupal ?

this features likes Jira's Component and Versions.

Is Drupal have same contribute module can present this releations ?

Thanks a lot !

How to determine total rows for search view at infinite scroll?

I use Drupal 8, search API and a search view with infinite scroll (10 results per page). In a header field I display the number of search results with @total. Unfortunately, @total is always a maximum of 10, even for searches that should actually have 500 hits.
To determine the correct number of search results, I did the following in a custom module
function my_module_views_pre_render(ViewExecutable $view) {
  if ($view->id() == 'myview' ) {
    /*
     * calculate proper number of search results with a tmp view
     */

Pages

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