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

Drupal.org Forum Search Not Working

When I search for anything, eve 'Drupal' on the forums I get what appears to be an empty response, with no results or messages. This happens on MacOS in Safari and Chrome, latest versions of everything.

Please excuse if this should have been posted somewhere else. If needed let me know and I can repost.

Windows Share Browser

I need to build a feature in a Drupal 8 site with an area where users of the site can browse a drive shared from a windows server. This is for an intranet site built on the Drupal 8 Open Social distribution. I need users to be able to browse the drive real time with files, folders, etc.

Is there anything like that available open source? If not what should I be looking to do? What is the Drupal way, and how would you go about getting started achieving this?

How to create programmatically addtocart button in Drupal8 commerce-2.x?

  • Currently I am using Drupal8 - Commerce-2.x version, where I am working on the functionality of the Addtocart button programmatically.
  • But I am unsuccessful.
  • In my custom module of form_alter, I declared the namespace(use Drupal\commerce_cart\Form\AddToCartForm) and try to render any public function values($v = new AddToCartForm; $value = $v->getBaseFormId();).
  • My total product variations get hidden and throws error(ArgumentCountError: Too few arguments to function Drupal\commerce_cart\Form\AddToCartForm).

Object of class Drupal\Core\Url could not be converted to string

Earlier this year in trying to adapt modules to Drupal 8.5, Iearned to create an object for a URL so that I could put it in the Render array for my forms. This worked a few months ago:

AJAX + Webform + Composite Elements

Hi all,

I have been working with AJAX and webforms. Cool stuff. But I seem to fall short when trying to work with composite form elements such as email confirm, etc. Looking for any examples or help with standard stuff like setting values.

Any help to point me in right direction would be appreciated.

mikeg

hook_file_download

   

function blaa_file_download($uri) {
        ..........
 }

Can any one think of a reason why pdf file downloads from the private folder are not calling blaa_file_download please. I am stumped. Thanks

Pages

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