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 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

How to define xml data type

I am trying to store xml with new field type. And for that I am following Drupal Data Type Doc. 

What I do not understand, for an admin to insert - is it enough to define another data type ? Or what other classes to override so that XML values are not removed. 

This xml field will store only xml data. 

validate cellphone number in webform

Hi dears
I wanted to create a form for digital signature collection
In this way, the visitor enters his name and surname and mobile number in the different fields of form
And the mobile number is validated by sending a message to the same number and the visitor must enter that number in the specific field

I use Drupal 8 and "webform" and "Smsframework" for SMS

I needed your help to connect the SMSframework to the webform (For SMS validation part)

thank u

store XML in Drupal Form

I am following drupal docs to create a form, that stores XML. I only could find that, by default, it shows text-area field and user allowed text formats will be allowed.

I could not find anything that mentions XML, this is a required format for my project, anyone who understands Drupal is welcome for the suggestion.

Pages

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