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

Access denied on a path

I have the following in formtable.routing.yml for a custom module named "Formtable":

formtable.form:
  path: /formtable
  defaults:
    _title: 'FormTable demonstrator'
    _form: \Drupal\formtable\Form\FormtableForm
  requirements:
    _access: 'true'

When visiting the path /formtable on the site I get "Access denied You are not authorized to access this page."

read-only select field

I need fields with widget select to make some of them read-only.
I tried both with
$form['field_localita_missione']['widget']['#disabled'] = TRUE;
that with
$form['field_localita_missione']['#attributes']['readonly'] = TRUE;
The former works but does not save the data, while the latter does not work

I wrote a module I want to contribute - what's the next step?

I'm a site webmaster who knows just enough Drupal to be able to (sometimes) add a new feature that I really need to be able to become more efficient at my job. I wound up creating a couple new global fields for Drupal 7 views, and anticipate creating more. These fields might be useful to others, so I'd like to contribute them to the Drupal community; then again, if the way I created them doesn't fit well with Drupal, then they might not be a good fit for contribution (yet).

Developing a module that installs content type and taxonomy config

My normal approach to module development is to un-install and re-install modules as I make new changes to test to see if they are working. I have found that if a module has a config/install folder where it is installing content type and taxonomy configuration, I have to delete the content type and any nodes of that type, the vocabulary and any terms each time I go through this un-install/re-install cycle.  Is there a better way of handling this so that I don't have to keep deleting content and configuration each time I want to test a new addition to the code?

Can't able to expose dynamic token value into JSON api

Hi,

We can't able to expose dynamic token value into JSON api

Our requirement is expose the meta tag values into JSON api for each individual node

Instead of token value, token name exposing in to JSON api. Please find the marked bold with italic

            "field_meta_tag_field": {
                "title": "[node:title]",
                "description": "kk description",
                "abstract": "kk abstract",
                }

Regards,

Vijayan

integrate webform with smsframework

Hi

I want to create a mobile number field in the "webform" and connect it to the "smsframework" to validate mobile number with sms token

in smsframewprk setting >> phone Numbers We can define a field in different parts of drupal 8 so that the smsframework can extract the mobile number to send a text message from that field.

Pages

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