How to rebuild form after ajax callback is submitted.

Hello Friends,

I have a form that I am opening in a modal via a link.

I use this form to both add notes and also display them in a table (adding notes and displaying notes in table happens in same form).

In my form I have a ajax callback that I use to add notes, when the submit button is fired.

When my form is submitted, I would like to keep the modal open, but rebuild the table so that the changes are reflected (user can see the note they added in the table).

"No comment yet.." message

How do I add a message if there is no comment yet on a custom content type? 

I would really like it to be where normally the comment are located. Once someone comment, the message should disappear.  

Upgrade 8.7.0 to 8.7.1 with composer

Find below the protocol of the upgrade:

Help maintain a module and get paid

We have a module https://www.drupal.org/project/acobot

We have updated its codes for D7 and need help with the following tasks

  • Create a new release for D7 (codes are ready, you just help to update the project release)
  • Create update the module for D8 (based on D7 codes) and publish a formal release for D8.
  • Removing "This project is not covered by Drupal's security advisory policy."

Please contact  me if you're interested: vic at acobot dot com. Thank you!

MYSQL ERROR 1146

Hi all,

I am installing Drupal on cPanel via Installatron, and keep getting the MYSQL ERROR 1146 installation error, when trying to install any version of Drupal 8.

I have been able to successfully install Drupal 7, however. 

Here is the message I am getting:

Technical information:

method = query

File type icons for core media file type

I'm using the core media field with media library to upload files to a node. After uploading, it prompts me to name the file entity. When displaying the node I'd like to be able to display the name as I entered it during the upload process, linked to the file itself (not the file media entity), with an icon describing the file type (PDF/DOCX/etc).

Is there a way to achieve this? I feel like I'm missing something obvious.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x