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

Want to create a custom text block that is based on twig.

Just like how the views uses little twig based input field, I want to do the same for my mail message body.

I've copied the form code over from the core->view module, but I am not sure how to set a set of fields to be available to use.

I also tried to use the {{ druapl_field('field_name','node' node_id) }} but this doesn't seem to be working.

Is there a way to set which fields will be available as a replacement pattern or make the function above to work?

Empty shopping cart button

Good morning:
I am using Drupal Commerce and everything is perfect but I would like to add a button to empty the shopping cart if you have any way to do it, I would appreciate it

Custom Section on top of one page

I am using Drupal 7 and I want to add a new page with a custom section on top. This custom section consists of some information that we are getting through some rest API. 

I want this custom section on top and client can add html content and sections below that section from the Drupal backend.

I tried creating a custom page--custompage.tpl.php and added that section. That page worked fine but unfortunately, it wasn't editable from the Drupal dashboard and we could not add sections before it so it was of no use.

Ajax table form with tabledrag only works after the first submit

I've got a custom ajax form table where the rows are draggable via. #tabledrag.

If I drag around some rows and press save/submit, the rows appear to pop back into their original places.
But upon reloading the page, the rows are in the correct position, the way I dragged them.

How to Import Mysql Database using custom module

Can anyone please give some insights about importing MySQL database using custom module, without using any contributed module dependency.

More details :I need to spin off sub-sites using Drupal Interface. For that I need to take a dump of existing database and Import it into new database.

Moving a file outside of the public directory

Hi there,

There's a contrib module I'm using that creates a file in the public directory every time cron runs and I'm thinking of making a module that moves this file out of the webroot into a folder on my server.  The way I envision it working is to use the hook_cron to execute a bash script on my server, which then moves it to the desired folder. 

Pages

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