Drupal 8 managed_file upload

Good afternoon,

I am trying to upload a file by managed_file.

The source code is like below.

$form['photo'] = array(
            '#type' => 'managed_file',
            '#upload_location' => 'public://upload/teacher/photo'
          );

And I want to update the photo realtime which I don't know how to.

Once you select a file, the file will be automatically uploaded into server.

I want to get the event handlers of javascript. so I can show the uploaded image.

Why the Services file and directory can't writable?

AWS EC2-CentOS7 Apache/2.4.6 PHP 5.6.5
drupal-8.0.0-beta6.tar.gz

The Services file and directory can't writable, confirm the permissions properly, where is the question?

Drupal 8 Modul css + js

Hallo,

i am currently developing a webapp based on Drupal 8 (as a module).

If I am correct, there are 2 ways to attach css and js to all pages.

1. using a custom theme
2. using the module

I tend to method no2. Would this be the correct way? I first tried solution no1.
---
MyModule.info.yml:

stylesheets:
  all:
    - css/style.css

This did not work
---
MyModule.info.yml:

How do I set up a responsive site that is 1024px in width?

I am using the skeleton drupal theme right now and I like it but I have a problem. My layout is for a site that is 1024px width....and skeleton is a 940 width grid.....how can I do the math to convert it to 1024 width OR is there a better responsive theme to use to get 1024 px width? I looked into bootstrap, omega and some other things but I don't really understand less/ sass.....Are there any suggestions about how I could best handle this?

Rebecca

Using an iFrame to change the Drupal parent page

Hi there,

We want to add a search field to a Drupal page that is hosted inside an iFrame. But we want the search results to appear in a different Drupal page. Is it possible to force the hosting Drupal page to change when the iFrame search action takes place?

So to summarise,

Search form is in Drupal node 1
When Search is conducted the browser is redirected to Drupal node 2 where the search results are displayed.

All advice gratefully received.

Suggestion - modules should identify changes they have made in UI

Don't know where to put this but thought it worth sharing.
After working on several different D7 sites and many wonderful modules, when I start a new project it drives me crazy when I can't figure out what module I've used in the past gave me a certain feature. I have to redo all the research often to figure out what I did to accomplish something. Many times it's just very basic stuff.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x