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

Setting Default Value for a Custom Field of a Node

What's the proper way to set the default value? This happens to be a checkboxes field. The value assigned must be an array.

function hook_form_node_<content_type>_edit_form_alter(&$form, FormStateInterface $form_state, $form_id)
{
...

$form['field_offices']['widget']['#default_value'] = ?

...
}

The requested page could not be found.

Hello,

When I go to this link: /admin/reports/rsvplist , I get the following error:

Page not found

  Home  Administration  Reports

The requested page could not be found.

Views, Display totals after the filter

In a views I would like to display the totals of some fields and I would like to display them in the space between the filter and the table where all the fields are displayed
It's possible?

POST vs PUT route and get content

Hi,

I have two routes: one use "POST" the other use "PUT".
In the corresponding controller for the "POST" route, I can get the request body / content with: $request->getContent().

Buuuut for the "PUT" route I try the same eg. $request->getContent() and it always return null.

I have tried a bunch of things, what could I be missing ?

Regards J

Custom Private Message form ajax

Hello,

Pages

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