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

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.

How to create drupal field type without formatter

I am storing custom field data only for internal data. But I do not want to show or not want to create any formatter. 

How to implement this with annotation. 

After drupal 8 and above, field types are defined with annotation. I want to avoid creating formatter for the fields. 

How to implement?

Creating a node with a Views Reference Field

I am trying to create a module that installs a Content Type and then creates nodes of that Content Type. The Content Type contains a Views Reference Field. How do I reference the view in the node data array passed to Node::create()?

I have tried the following, but it doesn't completely work. The node is created, but the view is not found.

Anonymous users access unpublished node through JSON api

Hi,

How anonymous users access the unpublished node through JSON api.

Regards,

Vijayan

Pages

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