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

How to restrict access to files of a node while keeping the node itself viewable?

I'm writing a module that allows users to configure special access restrictions on nodes to reflect academic publishing agreements (called 'embargoes'), which are stored in a custom config entity that points to a node and describes what types of access restrictions should be applied, and who is exempt (users, roles, IP ranges, etc).

Show another content type fields on top of webform

I am new to drupal need help i have a content type Job where i have some custom fields 5-6. 
now i create a node for that content type with custom fields entry. for example that node is 4 now i created a webform.

Requirement is : show node id = 4 field data on top of webform which i created.

[![enter image description here][1]][1]

  [1]: https://i.stack.imgur.com/K9MDU.png

drupal modal api freezes

Hi, Im working to create a company website. This is my first time to use Drupal to create their website from scratch.

I'm encountering problem using the Drupal modal(https://www.drupal.org/docs/8/api/ajax-api/ajax-dialog-boxes)

<a class="use-ajax" data-dialog-options="{&quot;width&quot;:800}" data-dialog-type="modal" href="/node/6"><strong>TEST</strong></a>
 

"Add New Field" in modal popup

Hi

I'm trying to mimic the "add field" functionality in a modal pop-up(for learning purpose).

For that, I am replicating "FieldStorageAddForm.php" provided by Field Ui module in my custom form.

I have a another form where I have provided a link to open my new custom form to add a new field.

Here is the code:

taxonomy exposed filters

Hi everyone!,

I'm using drupal 8.8 and I'm looking for a way to display in my taxonomy exposed filters, only taxonomies terms which are related to contents(nodes). In other words i don't want to dysplay terms which are not related to content. I suppose that i have to make a hook_form_views_exposed_form_alter. But i don't know how to retrieve only the "good" terms.

Any help would be appreciate,

Thanks.

Pages

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