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

How to structure the custom files in directories?

Hi,

I am developing an intranet for my company, in which data from trucks, customers, trips, drivers, etc. will be managed.

I want to develop this intranet in Drupal 8. I have a lot of experience in Drupal 7, but not in Drupal 8. I will do everything programmed, I will not use Drupal nodes.

I have read about the folder structure of a module in D8. I have read about the structure of a module's folders, but I have some basic doubts about how to structure the custom classes that I will create.

OpenStreetMap Map exports to svg

Hi!

I would like to export an image of a map OpenStreetMap from their cordenadas, which would in a node. I don't know very well how to do it because I don't see any functionality already done in Drupal about this.

Thnks!!

Pass arguments to an Entity Reference field in a form

I have built a form as part of a module that contains an entity reference item; this item based on an entity reference view which has a contextual filter default of the current user.

I want to enable an override in my form to display those items associated with a different user.  In essence, I want to set the View Arguments programmatically.  However, I cannot see how to pass the argument to the widget in the form code.

Can this be done?  I've tried to hard code in an argument, and cannot see where this value is stored in the $form array.

Thanks

Onetoomany

Drupal 8 and preprocess node

I am trying create module, which check every nodes (type "article")  and replace some string - for example external url to something what I wish. My problem is, that print_r or var_dump after node_load is too big and I get error Allowed memory size of 805306368 bytes exhausted.

I created something like this:

function mymodules_preprocess_node(&$variables) {

$node = $variables['content'];

}

Linking a custom page to an image using Views

Hi,

I have created a page using Drupal views. And I have displayed the logo field in the view settings, like this:

https://imgur.com/a/5Ywpyi0

I want to click on the image displayed, so that it takes me to a custom page. The url for the custom page has a dynamic variable : /text/{textid}/content. textid is the node id for the content.

I am trying to add the link to this image using the following settings:

https://imgur.com/a/b9L1hg7

Webform results based actions

I need to code for a questionnaire and based on the answers provided by the user, I need to display the products to the user. I understand Webform will take care of the questionnaire part, but I cannot use those results to perform my further actions I believe. So any suggestions or other modules I should check out or any help is appreciated.

Pages

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