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

Setting up url links inside the form

Hi,

On my content page, Author is a vocabulary term. I am trying to create a button next to the author field that would take me to the Add Term page for Author.

Please let me know how can I do that?

Thanks,

Linking to a custom form by clicking a button

Hi,

I am trying to link a form by clicking a button. I have created the button named "Fill" next to a field named "Images" on my content page.

How do I link a form to a button, so that the form page opens after clicking the button.

Thanks,

Fatal error while printing form

Hi,

I am trying to print the form and I am getting the error displayed as:

Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 67112960 bytes)

Please let me know where I am going wrong.

The following is my code:

<?php
/**
* Implementation of hook_form_alter
*/

function mymodule_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state,$form_id) {

Solved: Add Javascript to a form, which is build by ContentEntityForm

Dear Forum,

i want to add a javascript to form, which is build with ContentEntityForm and used for a custom entity.

I´ve added the javascript to the libraries.yml:

drupal-addlayer:
    version: VERSION
    js:
      js/addLayer.js: {}
    dependencies:
      - core/jquery
      - core/jquery.once
      - core/drupal

I´ve created the javascript:

Custom Query Code for Views to Optimize Site

Hi! Some of my site that contains a lot of content is taking up to 26 seconds to load. I think it's because the query it's running through to filter the users is super inefficient. How can I add custom code to refine the query results...I'm trying to speed up the site as a whole, and sorting through and displaying the views is the only part of the site with this problem occurs. I've read into the hook function, but I'm still a little new and confused as to how to write the custom code and put it into the site. Help please!

Taxonomy reference field in custom form

Hi,

How can I set the taxonomy reference field to a custom form in Drupal 8 programatically?

I appreciate your help.

Pages

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