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

I've reinstalled json api and now i'm getting this error

Hi team

I'm having an issue, i've reinstalled json api but now i'm getting this error:
error json

i've tried to clear cache from database and using drush, but i'm still getting this error,

could you please help me?

regards
Mario

Create new page output after submitting form

I 'm new to Drupal and I am trying to convert a simple PHP form to Drupal. The original PHP form collect some data from the user, does some processing and output a new page (report) to the user.  From the Drupal Form API documentation, it seems that FormBase can be used to collect and validate the user inputs. My question is how to create a new page/report in submitForm() function ? Most examples use messenger service to display the result in the same form page. Any direction and pointer to get this done is appreciated. Examples will be great !

Body field should already be filled when the node is created

I would like to have a bodyfield already filled in when I create the node. Unfortunately this is a lot of text in html, so I can't solve this with the https://www.drupal.org/project/prepopulate module. 

But I would like to build a small mini-module for this. I would like to drag the content from another node via nid and copy it into the body field of the node I am creating.

For this I would like to use the hook_entity_create Hook. Am I basically correct? My program looks like this at the moment: 

Define a custom content type with fields in a module

I'm new to Drupal and I'm trying to understand the best approach for this. I need to have a few custom content types, each of which needs to have a few basic fields.

Publish button on view grid?

I have a grid that shows list of attachments from comment. The attachments are not published sutomatically after they are uploaded, rather i collect them in a view and display as a grid in a page. Is there a way to have a check box or button to publish attachments in a grid? Is it possible? 

My view grid has following columns right now:

Attachment_name, Date_attached,Author,Published(y/n)

Adding a button to the view tab (display) of the content.

Hi, I am trying to add a button to the view tab. (The tab where the content's fields info is displayed)

When I push the button, I want it to check some of my fields' data if they are submitted.

Then, if they are not, I will get a pop-up screen.

Pages

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