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

Creating a table list from files uploaded via FTP

I created a folder in sites/default/files/pdf-uploads (I'm not married to this location). The client will have direct FTP access to this folder, where he will be able to upload and delete PDFs.

I want to create a page called "PDF Uploads" which displays a list table of all PDF files that are in in the pdf-uploads folder. So when the user deletes or adds a file, this will either add/delete the row in the table. The table just needs basic information: date it was uploaded, name, and download button. 

Redirect from view to another page

I would like to redirect some users from a custom view URL to their user account URL if a condition is satisfied.

Which hook should I use here? hook_init is a good idea?

Form redirect using setRedirect

Hi,

I have 2 content types: ContentType1 and ContentType2. After filling out the fields for ContentType2 and clicking the save button, I have been asked to redirect to ContentType1 page using setRedirect in the hook_form_alter().

So I have used something like this, but the redirect does not work:

function mymodule_form_alter(&$form, FormStateInterface $form_state, $form_id) {

if($form_id == 'node_text_form') {

Error in the .module file

Hi,

In the .module file, I have the following hook_node_insert() function:

How to update the block without the page going up ?

I have a site on Drupal 8 and I update a block view with the following code :

(function ($, Drupal) {

  'use strict';

  setInterval(function() {
    $('.region-navigation-logo .view-display-id-block_3').trigger('RefreshView');
  }, 10000);

})(jQuery, Drupal);

This code updates the logo of the site. The problem is that if I scroll the page down, it goes up a little automatically every 10 seconds.

You can test on my site with :

get video_embed_field working with my own video channel

Hello,

I run an online magazine and am using https://www.drupal.org/project/video_embed_field for my videos upload from youtube.

I decided to start my own youtube clone so I could put all sports videos from YT to my own clone website and from there I will link the videos to my articles.

sadly he doesn't accept me as it doesn't know my own clone website.

What must I do so it will accept my website?

Does anybody have the contact of Josh Caldwell de developer?

CHeers

Pages

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