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

Make trigger link on views field

Hi,

I need from my views field make link which will on click trigger small code for creating new row in SQL DB.

https://ibb.co/3ySnQnf

I already have new module and my views field is in src/plugin/views/field/NewViewsField.php.

Code for inserting row in DB SQL table works and it is NewViewsField.php in class/method NewViewsField::render

But I don't know how to implement it on click and not on display page.

Views - Exposed filter, entity reference field relationship

The request is a bit difficult to explain, I hope I can do it
I have 3 content types
- Applicant Master
- Master Data Holders (Anagrafica Titolari)
- Movements.

In Applicant Master I have an entity reference field (field_titolare) linked to the Owner Master.

How to allow 'outsiders' access to private forum topics if group visibility is set to public

I have set up Private Forums on my site, creating forum containers for each group. We have a requirement to allow authenticated non-group members to view/create/edit forum topics for groups that are not private (group visibility set to Public). By default, private forums restrict access to forum topics to group members only. I tried to implement custom visibility (like this), but still, a non-group member gets the Access Denied page.

Ajax form and validation handling

I am working on an extremely Ajax dependent form, and am running into some issues that I cannot seem to resolve. I have a form that has it's entire submit handler handled via ajax (It can either be a single step or multi-step, either doesn't matter), however whenever I submit the form and there are validation errors, the validation message appears at the top of the form, but the form does not auto-focus to the validation message. Instead, it stays focused on the 'triggering element' (Which is the submit button), even with disable-refocus set to true.

Depreciated functions

Hi guys,

I have some issues with:

Drupal\devel_generate\Routing\DevelGenerateRoutes::$DevelGenerateManager is deprecated in Drupal\devel_generate\Routing\DevelGenerateRoutes->__construct() 

Deprecated function: Creation of dynamic property Drupal\views\ManyToOneHelper::$handler is deprecated in Drupal\views\ManyToOneHelper->__construct() 

Deprecated function: Use of "static" in callables is deprecated in Drupal\Core\Asset\AssetResolver->getCssAssets() 

Pages

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