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

drush cr causes fatal error (custom module issue)

The geolocation module (somebody else's) does not reference my mapping_uk module or vice versa, and yet this happens when doing 'drush cr':

drush cr causes fatal error (custom module issue)

The geolocation module (somebody else's) does not reference my mapping_uk module or vice versa, and yet this happens when doing 'drush cr':

[100% SOLVED] - Thanks! Form or View or somewhere in between?

I've worked out how to create a search form using content types and views, and I've worked out how to create forms inside modules.

What I really want, is a search form via forms functionality, but I want to add an extra form field in that search which utilises autocomplete using my own geographic database table (not in Drupal's tables).

I feel a bit trapped... I can't add a field in views, that isn't in the content type, yet I don't want to implement the search form in the module, as the views search form seems like the right way to do it.

Database Query in Drupal 8 (for own data)

Hi

I've got some street mapping data (X, Y coordinates for street names) in my own table (but it's in the Drupal database, with a different table prefix, and a different database user who can only access that table). [There are over 38,000 records].

1. Can I use Drupal 8's autocomplete functionality with my own database table?
2. Do I use PHP PDO, or does Drupal have something like that? (obviously I'm using my own database table as mentioned above)

Notice: Undefined index: #ajax in ajax_form_callback() (line 395 of /includes/ajax.inc).

Drupal 7.54

Trying to add another item on text field in content type with 30 fields

Notice: Undefined index: #ajax in ajax_form_callback() (line 395 of /includes/ajax.inc).

Help please? Anybody?

How do I correctly setup caching for my custom api routing?

I have custom module with some routes which return json, for instance terms of a vocab.

routing.yml

mymodule.terms:
  path: '/api/terms/{vid}'
  defaults:
    _controller: '\Drupal\mymodule\Controller\MyModuleController::getTerms'
    _title: 'Terms'
  requirements:
    _permission: 'access content'
    vid: '^(foobar|barfoo)$'

Controller:

Pages

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