Scala Days 2018: Website online und CfP gestartet

heise online Newsticker - 22. November 2017 - 20:00
Erstmals beteiligt sich Heise an der europäischen Ausgabe der Fachkonferenz. Der bis zum 7. Januar laufende Call for Proposals bezieht neuerdings Workshops mit ein und gilt für die Veranstaltungen in Berlin und New York.

Drupal blog: An update on the Workflow Initiative for Drupal 8.4/8.5

Planet Drupal - 22. November 2017 - 19:57

This blog has been re-posted with permission from Dries Buytaert's blog. Please leave your comments on the original post.

Over the past weeks I have shared an update on the Media Initiative and an update on the Layout Initiative. Today I wanted to give an update on the Workflow Initiative.

Creating great software doesn't happen overnight; it requires a desire for excellence and a disciplined approach. Like the Media and Layout Initiatives, the Workflow Initiative has taken such an approach. The disciplined and steady progress these initiative are making is something to be excited about.

8.4: The march towards stability

As you might recall from my last Workflow Initiative update, we added the Content Moderation module to Drupal 8.2 as an experimental module, and we added the Workflows module in Drupal 8.3 as well. The Workflows module allows for the creation of different publishing workflows with various states (e.g. draft, needs legal review, needs copy-editing, etc) and the Content Moderation module exposes these workflows to content authors.

As of Drupal 8.4, the Workflows module has been marked stable. Additionally, the Content Moderation module is marked beta in Drupal 8.4, and is down to two final blockers before marking stable. If you want to help with that, check out the Content Moderation module roadmap.

8.4: Making more entity types revisionable

To advance Drupal's workflow capabilities, more of Drupal's entity types needed to be made "revisionable". When content is revisionable, it becomes easier to move it through different workflow states or to stage content. Making more entity types revisionable is a necessary foundation for better content moderation, workflow and staging capabilities. But it was also hard work and took various people over a year of iterations — we worked on this throughout the Drupal 8.3 and Drupal 8.4 development cycle.

When working through this, we discovered various adjacent bugs (e.g. bugs related to content revisions and translations) that had to be worked through as well. As a plus, this has led to a more stable and reliable Drupal, even for those who don't use any of the workflow modules. This is a testament to our desire for excellence and disciplined approach.

8.5+: Looking forward to workspaces

While these foundational improvements in Drupal 8.3 and Drupal 8.4 are absolutely necessary to enable better content moderation and content staging functionality, they don't have much to show for in terms of user experience changes. Now a lot of this work is behind us, the Workflow Initiative changed its focus to stabilizing the Content Moderation module, but is also aiming to bring the Workspace module into Drupal core as an experimental module.

The Workspace module allows the creation of multiple environments, such as "Staging" or "Production", and allows moving collections of content between them. For example, the "Production" workspace is what visitors see when they visit your site. Then you might have a protected "Staging" workspace where content editors prepare new content before it's pushed to the Production workspace.

While workflows for individual content items are powerful, many sites want to publish multiple content items at once as a group. This includes new pages, updated pages, but also changes to blocks and menu items — hence our focus on making things like block content and menu items revisionable. 'Workspaces' group all these individual elements (pages, blocks and menus) into a logical package, so they can be prepared, previewed and published as a group. This is one of the most requested features and will be a valuable differentiator for Drupal. It looks pretty slick too:

An outside-in design that shows how content creators could work in different workspaces. When you're building out a new section on your site, you want to preview your entire site, and publish all the changes at once. Designed by Jozef Toth at Pfizer.

I'm impressed with the work the Workflow team has accomplished during the Drupal 8.4 cycle: the Workflow module became stable, the Content Moderation module improved by leaps and bounds, and the under-the-hood work has prepared us for content staging via Workspaces. In the process, we've also fixed some long-standing technical debt in the revisions and translations systems, laying the foundation for future improvements.

Special thanks to Angie Byron for contributions to this blog post and to Dick Olsson, Tim Millwood and Jozef Toth for their feedback during the writing process.

Agaric Collective: Display forms in a modal dialog with Drupal 8

Planet Drupal - 22. November 2017 - 18:54

Drupal 8 has a great AJAX form API which includes some tools to create modal dialogs using the jQuery modal library. The Examples module even demonstrates how to create a custom form and display it in a modal window. But what if what you want to do is display an already created form in a modal? How do we do that? Let's see how to do it with an example. Let's display the node add form in a modal window.

The first thing that we need to do is create a link which will trigger the modal when the user clicks it. The only special things that this link needs to have are a few attributes that will let Drupal know to display the contents of the link in a dialog:

<a href="http://agaric.com/node/add/article" class="use-ajax" data-dialog-type="modal" data-dialog-options="{'width':800,';height':500}"> Create Node </a>

Drupal also needs to include the JavaScript libraries which will read these attributes and make them work, so let's add the following libraries to your module's dependencies (in your equivalent to this example's modal_form_example.libraries.yml file).

dependencies: 'core/drupal.dialog.ajax', 'core/jquery.form',

If you are unsure about how to add libraries on Drupal 8 you can consult the documentation to either add it in a theme or add it in a custom module. At the end of the post I will provide a repository with the code where I added the libraries in a block.

And that's it! If you click the link, the form will be displayed in a modal dialog! Drupal will automatically detect that you are sending an AJAX request and will display just the form so you won't need to worry about removing the rest of the blocks or hiding undesired markup.

The last thing missing, is what will happen if the user creates a node? By default, the node will redirect the user to another page but if we want to just close the modal dialog and leave the user on the same page we need to tell the form to do that. For this we are going to alter the form and add an AJAX command letting Drupal know that we want to close the dialog as soon as the node is created. In the .module file of a custom module we will add this code:

use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Ajax\AjaxResponse; use Drupal\Core\Ajax\CloseModalDialogCommand; use Drupal\Core\Ajax\RedirectCommand; /** * Implements hook_form_alter(). */ function modal_form_example_form_node_article_form_alter(&$form, FormStateInterface $form_state, $form_id) { $form['actions']['submit']['#submit'][] = '_modal_form_example_ajax_submit'; $form['actions']['submit']['#attributes']['class'][] = 'use-ajax-submit'; } /** * Close the Modal and redirect the user to the homepage. * * @param array $form * The form that will be altered. * @param \Drupal\Core\Form\FormStateInterface $form_state * FormState Object. */ function _modal_form_example_ajax_submit(array $form, FormStateInterface &$form_state) { $response = new AjaxResponse(); $response->addCommand(new CloseModalDialogCommand()); $form_state->setResponse($response); }

The first function adds an extra submit function (which will be executed after Drupal finishes processing the node) and the second function adds the command to close the Dialog when the node has been created.

We can do this with practically any form in Drupal and you can add extra commands to do more complex things. Here are two resources:

iPhone X: Nutzer starten versehentlich Notrufe

heise online Newsticker - 22. November 2017 - 18:30
Eine "Autocall"-Funktion erlaubt es, Hilfe bereits durch Drücken von zwei Knöpfen zu holen. Zum Glück gibt es vorher einen Countdown.

Kritische Sicherheitslücke: Traffic von F5 BIG-IP-Appliances lässt sich entschlüsseln

heise online Newsticker - 22. November 2017 - 18:30
Firewalls, Load-Balancer und andere BIG-IP-Systeme sind anfällig für einen Angriff, bei dem dritte den verschlüsselten SSL-Traffic zwischen Client und Appliance abhören können. Admins, die solche Systeme im Einsatz haben sollten schnell handeln.

Apple will zu 100 Prozent recycelte iPhones – und keine Kinderarbeit

heise online Newsticker - 22. November 2017 - 18:30
Die Umweltchefin des Konzerns, Lisa Jackson, hat bekräftigt, dass Apple an einem "komplett grünen" Smartphone arbeitet. Die Lieferkette soll zudem ethischer werden – auch bei Konfliktmineralien.

Schnäppchen: heise Download weist Wege durch den Rabattdschungel

heise online Newsticker - 22. November 2017 - 18:00
Vom Cyber Monday bis zum Black Friday bieten Online-Händler für viele Software- und Technikprodukte Rabatt. heise Download sucht sie für die Leser heraus.

Schwachstellen in Webanwendungen: OWASP Top 10 ist 2017 stärker von der Community geprägt

heise online Newsticker - 22. November 2017 - 17:30
Die aktuelle Ausgabe der bekannten Rangliste, die die schlimmsten Schwachstellen von Webanwendungen aufzeigt, berücksichtigt zudem den Trend zu Microservices und Single Page Applications.

Grundlagenforschung zu Quantencomputern: Rostocker Physiker erhält Millionenpreis

heise online Newsticker - 22. November 2017 - 17:00
Neue Techniken wie selbstfahrende Autos erzeugen riesige Datenmengen. Herkömmliche Computer sind damit überfordert. Für Forschungen zu Quantencomputern erhält der Rostocker Physiker Alexander Szameit jetzt einen hoch dotierten Preis.

US-Regierung klagt gegen Übernahme von Time Warner durch AT&T

heise online Newsticker - 22. November 2017 - 17:00
Die US-Regierung verklagt AT&T und Time Warner. Ziel ist, die Fusion der beiden Konzerne zu verhindern. Damit möchte die Regierung den Wettbewerb schützen – zumindest offiziell.

Gen-Daten für alle: Britische Biobank bietet Daten-Schatz für Wissenschaft und Pharma-Unternehmen

heise online Newsticker - 22. November 2017 - 17:00
500.000 Freiwillige in Großbritannien haben sich für ein wegweisendes Projekt befragen und genetisch analysieren lassen. Seit diesem Sommer sind diese Informationen allgemein zugänglich – und dürften wertvolle Erkenntnisse liefern.

Dries Buytaert: An update on the Workflow Initiative for Drupal 8.4/8.5

Planet Drupal - 22. November 2017 - 16:57

Over the past weeks I have shared an update on the Media Initiative and an update on the Layout Initiative. Today I wanted to give an update on the Workflow Initiative.

Creating great software doesn't happen overnight; it requires a desire for excellence and a disciplined approach. Like the Media and Layout Initiatives, the Workflow Initiative has taken such an approach. The disciplined and steady progress these initiative are making is something to be excited about.

8.4: The march towards stability

As you might recall from my last Workflow Initiative update, we added the Content Moderation module to Drupal 8.2 as an experimental module, and we added the Workflows module in Drupal 8.3 as well. The Workflows module allows for the creation of different publishing workflows with various states (e.g. draft, needs legal review, needs copy-editing, etc) and the Content Moderation module exposes these workflows to content authors.

As of Drupal 8.4, the Workflows module has been marked stable. Additionally, the Content Moderation module is marked beta in Drupal 8.4, and is down to two final blockers before marking stable. If you want to help with that, check out the Content Moderation module roadmap.

8.4: Making more entity types revisionable

To advance Drupal's workflow capabilities, more of Drupal's entity types needed to be made "revisionable". When content is revisionable, it becomes easier to move it through different workflow states or to stage content. Making more entity types revisionable is a necessary foundation for better content moderation, workflow and staging capabilities. But it was also hard work and took various people over a year of iterations — we worked on this throughout the Drupal 8.3 and Drupal 8.4 development cycle.

When working through this, we discovered various adjacent bugs (e.g. bugs related to content revisions and translations) that had to be worked through as well. As a plus, this has led to a more stable and reliable Drupal, even for those who don't use any of the workflow modules. This is a testament to our desire for excellence and disciplined approach.

8.5+: Looking forward to workspaces

While these foundational improvements in Drupal 8.3 and Drupal 8.4 are absolutely necessary to enable better content moderation and content staging functionality, they don't have much to show for in terms of user experience changes. Now a lot of this work is behind us, the Workflow Initiative changed its focus to stabilizing the Content Moderation module, but is also aiming to bring the Workspace module into Drupal core as an experimental module.

The Workspace module allows the creation of multiple environments, such as "Staging" or "Production", and allows moving collections of content between them. For example, the "Production" workspace is what visitors see when they visit your site. Then you might have a protected "Staging" workspace where content editors prepare new content before it's pushed to the Production workspace.

While workflows for individual content items are powerful, many sites want to publish multiple content items at once as a group. This includes new pages, updated pages, but also changes to blocks and menu items — hence our focus on making things like block content and menu items revisionable. 'Workspaces' group all these individual elements (pages, blocks and menus) into a logical package, so they can be prepared, previewed and published as a group. This is one of the most requested features and will be a valuable differentiator for Drupal. It looks pretty slick too:

I'm impressed with the work the Workflow team has accomplished during the Drupal 8.4 cycle: the Workflow module became stable, the Content Moderation module improved by leaps and bounds, and the under-the-hood work has prepared us for content staging via Workspaces. In the process, we've also fixed some long-standing technical debt in the revisions and translations systems, laying the foundation for future improvements.

Special thanks to Angie Byron for contributions to this blog post and to Dick Olsson, Tim Millwood and Jozef Toth for their feedback during the writing process.

Gewerkschaft Verdi droht Amazon mit Streiks im Weihnachtsgeschäft

heise online Newsticker - 22. November 2017 - 16:30
Weihnachtszeit ist Streikzeit: Die Gewerkschaft Verdi kündigt wieder Streiks bei dem Versandhändler an. Ziel: Ein Tarifvertrag. Aber Amazon sieht sich gut gewappnet.

Auch für Linux: Hand of Fate 2 angespielt

heise online Newsticker - 22. November 2017 - 16:00
Zurück am Kartentisch im Spiel des Schicksals um Leben und Tod: c't hat sich an der Linux-Version von "Hand of Fate 2" angesehen, ob das Computer-Kartenspiel den Erfolg des ersten Teils wiederholen kann oder es nur zu einem lauwarmen Aufguss gereicht hat.

Erster entdeckter interstellarer Asteroid hat außergewöhnliche Form

heise online Newsticker - 22. November 2017 - 15:30
Einen Monat nachdem Astronomen den ersten interstellaren Asteroiden in unserem Sonnensystem entdeckt haben, wissen sie nun, wie er wohl aussieht. Beobachtungen zufolge ist er auffallend langgezogen. Aus dem Sternsystem Wega kommt er nicht.

Angetestet: Adventskalender für Elektroniker

heise online Newsticker - 22. November 2017 - 15:00
Conrad bietet alljährlich verschiedene Adventskalender gefüllt mit Elektronikteilen für kleine und große Experimente in der Vorweihnachtszeit. Wir waren ungeduldig und haben schon 48 Türchen aufgerissen.

Halbleiter: Marvell übernimmt Cavium

heise online Newsticker - 22. November 2017 - 14:30
Der Chiphersteller Marvell kauft für rund 6 Milliarden US-Dollar den bisherigen Konkurrenten Cavium.

Mobile Payment: Wirecard bringt WeChat Pay nach Deutschland

heise online Newsticker - 22. November 2017 - 14:30
Chinesische Touristen können in den Shops im Flughafen München ab sofort auch mit WeChat Pay bezahlen. Nach Alipay bringt der Zahlungsdienstleister Wirecard damit die zweite große Payment-System aus China nach Deutschland.

Raspberry Pi als Digital-Signage-Computer

heise online Newsticker - 22. November 2017 - 14:30
Raspberry Digital Signage ist ein Spezialbetriebssystem, mit dem der Einplatinenrechner zur Steuerung von elektronischen Plakaten eingesetzt werden kann. Die jetzt vorgestellte Version 10 kommt mit verbessertem HTML5- und Flash-Support.

Uber will Tausende Volvos für Roboterwagen-Flotte kaufen

heise online Newsticker - 22. November 2017 - 14:00
Der schwedische Autohersteller und der Fahrdienstleister erweitern ihre Partnerschaft bei der Entwicklung autonomer Autos.