Newsfeeds

My Twitter Block

New Drupal Modules - 4 March 2018 - 3:03am

Display tweets from the Twitter account.
Using Twitter Block, the tweets will be displayed on the page.
This Twitter Block authentication and displaying tweets counter will be managed from admin section.

Categories: Drupal

Parallax blocks

New Drupal Modules - 4 March 2018 - 12:37am
Categories: Drupal

Yandex YML

New Drupal Modules - 3 March 2018 - 10:26pm
Categories: Drupal

Social Icons

New Drupal Modules - 3 March 2018 - 12:18pm

Social Icons Block for Drupal Application.
This module is creating a block with 'Social Icons'.

The Social Icons Block is useful to configure anywhere in the application.

Categories: Drupal

agoradesign: Using add to cart links instead of forms in Drupal Commerce 2

Planet Drupal - 3 March 2018 - 11:13am
Today I'm introducing you to a new contrib module, I've created for allowing "add to cart" (or wishlist) buttons as links instead of forms. This helps to circumvent some unfortunate Drupal core limitations, when you want to build overview pages or blocks.
Categories: Drupal

QR Code Decode Field

New Drupal Modules - 3 March 2018 - 10:57am

This module decodes QR codes from an uploaded image and stores the data in a field (along with the uploaded image). Decoded data can be displayed as string.

Categories: Drupal

Relaxing makes me write and writing makes me relax

Dries Buytaert - 3 March 2018 - 10:07am

Spending a few days at the Cayman Islands, where the WiFi is weak and the rum is strong. When I relax, I become creative and reflective. Writing helps me develop my creative thoughts and deepens my personal reflection. It's a vicious cycle, because when I see my world, myself and my ideas more clearly, it helps me relax. Relaxing makes me write, and writing makes me relax.

Categories: Drupal

Convert Media Tags to Markup

New Drupal Modules - 3 March 2018 - 10:01am
Convert Media Tags to Markup for Drupal 8

A Drupal 8 module which fixes legacy code such as:

[[{"type":"media","view_mode":"media_large","fid":"403","attributes":{"alt":"","class":"media-image","height":"187","style":"display: block; margin-left: auto; margin-right: auto;","typeof":"foaf:Image","width":"480"}}]]

In this case, file ID 403 needs to exist.

Categories: Drupal

Simple Access Log

New Drupal Modules - 3 March 2018 - 9:21am

Drupal 8 Simple Access Log replicates the basic features/functions of the Core Access Log functions that were included as part of the statisitics module, that were not ported to Drupal 8.

Read more about the features and use of Simple Access Log at its Drupal.org project page at ...?

Installation and use
The Simple Access Log module can be installed like other Drupal modules by placing this directory in the Drupal file system (modules directory) and enabling on the Drupal Modules page (/admin/modules).

Categories: Drupal

Commerce Add To Cart Link

New Drupal Modules - 3 March 2018 - 8:33am

The Commerce Add To Cart Link module extends Commerce product displays with an "add to cart" field as link instead of having an add to cart form.

Primary use case is to use this on listings such as overview pages or blocks displaying related products, bestsellers, etc. Currently, building product listing blocks is often accompanied with some headache due to existing Drupal Core limitations described below.

Categories: Drupal

Drupal 8 upgrade evaluation

New Drupal Modules - 3 March 2018 - 8:29am
Categories: Drupal

Firestorm: Stripes Event For Team Yankee Happening Now

Tabletop Gaming News - 2 March 2018 - 3:00pm
Battlefront has launched the second of their worldwide campaigns for Team Yankee. This one is called Firestorm: Stripes. The Russians have attacked into the central plains of Europe. Will the forces of NATO be able to push them back, or will these new locations stay under Soviet control? That’s up to you to decide as […]
Categories: Game Theory & Design

Ashday's Digital Ecosystem and Development Tips: Drupal Search: Solr vs Search Module

Planet Drupal - 2 March 2018 - 2:09pm

Drupal isn’t known as a particularly lightweight content management system and that is one of the reasons we love it, right? It is meant to handle large amounts of complex content. A problem occurs when you have a site that is just flush with content of different types, how do you get users to it? Navigation can only get you so far sometimes. We have personally seen this on everything from large-scale publishing sites to medical practice sites.

Categories: Drupal

IELLO Fairy Tile Contest Happening Now

Tabletop Gaming News - 2 March 2018 - 2:00pm
Who doesn’t love getting new games for free? Nobody (at least, I assume anyone reading this would be excited to get free games). Well, if you’d like a free copy of Fairy Tile from IELLO, you’ve just got a couple days to put your name in the hat. They’re giving out 3 copies and you […]
Categories: Game Theory & Design

Flickr API Integration

New Drupal Modules - 2 March 2018 - 1:48pm
Categories: Drupal

D7 To D8 Utilities

New Drupal Modules - 2 March 2018 - 1:34pm

This module provides a host of useful utility functions to make the transition to D8 much easier. Everything follows D8 standards, but is a bit easier to use.

Categories: Drupal

Wyrd Previews Devouring Eel For The Other Side

Tabletop Gaming News - 2 March 2018 - 1:30pm
Today for lunch, they brought in Moe’s. As it was free food, we all kinda dove onto it and went to town like mad. You’d think we’d not eaten in years! I think we were all Devouring Eels. Good thing that’s what we get a preview of here in Wyrd’s regular look at the upcoming […]
Categories: Game Theory & Design

Zoom Conference

New Drupal Modules - 2 March 2018 - 1:21pm

Zoom Conference
===============
Provides basic functionality for creating meetings and registrations for Zoom teleconferences, via their API (v2).

This is the Drupal 8 heir to the Zoom API (https://www.drupal.org/project/zoomapi) module, which implemented version 1 of the API, and did not create any further functionality to utilize it.

Categories: Drupal

Jeff Potts: Quick look at Acquia Reservoir, a Headless Drupal Distribution

Planet Drupal - 2 March 2018 - 1:00pm

Drupal is a very popular open source Web Content Management system. One of its key characteristics is that it owns both the back-end repository where content is stored and the front-end where content is rendered. In CMS parlance this is typically called a “coupled” CMS because the front-end and the back-end are coupled together.

Historically, the coupled nature of Drupal was a benefit most of the time because it facilitated a fast time-to-market. In many cases, customers could just install Drupal, define their content types, install or develop a theme, and they had a web site up-and-running that made it easy for non-technical content editors to manage the content of that web site.

But as architectural styles have shifted to “API-first” and Single Page Applications (SPAs) written in client-side frameworks like Angular and React and with many clients finding themselves distributing content to multiple channels beyond web, having a CMS that wants to own the front-end becomes more of a burden than a benefit, hence the rise of the “headless” or “de-coupled” CMS. Multiple SaaS vendors have sprung up over the last few years, creating a Content-as-a-Service market which I’ve blogged about before.

Drupal has been able to expose its content and other operations via a RESTful API for quite a while. But in those early days it was not quite as simple as it could be. If you have a team, for example, that just wants to model some content types, give their editors a nice interface for managing instances of those types, and then write a front-end that fetches that content via JSON, you still had to know a fair amount about Drupal to get everything working.

Last summer, Acquia, a company that provides enterprise support for Drupal headed up by Drupal founder, Dries Buytaert, released a new distribution of Drupal called Reservoir that implements the “headless CMS” use case. Reservoir is Drupal, but most of the pieces that concern the front-end have been removed. Reservoir also ships with a JSON API module that exposes your content in a standard way.

I was curious to see how well this worked so I grabbed the Reservoir Docker image and fired it up.

The first thing I did was create a few content types. Article is a demo type provided out-of-the-box. I added Job Posting and Team Member, two types you’d find on just about any corporate web site.

My Team Member type is simple. It has a Body field, which is HTML text, and a Headshot field, which is an image. My Job Posting type has a plain text Body field, a Date field for when the job was posted, and a Status field which has a constrained list of values (Open and Closed).

With my types in place I started creating content…

Something that jumped out at me here was that there is no way to search, filter, or sort content. That’s not going to work very well as the number of content items grows. I can hear my Drupal friends saying, “There’s a module for that!”, but that seems like something that should be out-of-the-box.

Next, I jumped over to the API tab and saw that there are RESTful endpoints for each of my content types that allow me to fetch a list of nodes of a given type, specific nodes, and the relationships a node has to other nodes in the repository. POST, PATCH, and DELETE methods are also supported, so this is not just a read-only API.

Reservoir uses OAuth to secure the API, so to actually test it out, I grabbed the “Demo app” client UUID, then went into Postman and did a POST against the /oauth/token endpoint. That returned an access token and a refresh token. I grabbed the access token and stuck it in the authorization header for future requests.

Here’s an example response for a specific “team member” object.

My first observation is that the JSON is pretty verbose for such a simple object. If I were to use this today I’d probably write a Spring Boot app that simplifies the API responses further. As a front-end developer, I’d really prefer for the JSON that comes back to be much more succinct. The front-end may not need to know about the node’s revision history, for example.

Another reason I might want my front-end to call a simplified API layer rather than call Drupal directly is to aggregate multiple calls. For example, in the response above, you’ll notice that the team member’s headshot is returned as part of a relationship. You can’t get the URL to the headshot from the Team Member JSON.

If you follow the field_headshot “related” link, you’ll get the JSON object representing the headshot:

?

The related headshot JSON shown above has the actual URL to the headshot image. It’s not the end of the world to have to make two HTTP calls for every team member, but as a front-end developer, I’d prefer to get a team member object that has exactly what I need in a single response.

One of the things that might help improve this is support for GraphQL. Reservoir says it plans to support GraphQL, but in the version that ships on the Docker image, if you try to enable it, you get a message that it is still under development. There is a GraphQL Drupal module so I’m sure this is coming to Reservoir soon.

Many of my clients are predominantly Java shops–they are often reluctant to adopt technology that would require new additions to their toolchain, like PHP. And they don’t always have an interest in hiring or developing Drupal talent. Containers running highly-specialized Drupal distributions, like Reservoir, could eventually make both of these concerns less of an issue.

In addition to Acquia Reservoir, there is another de-coupled Drupal Distribution called Contenta, so if you like the idea of running headless Drupal, you might take a look at both and see which is a better fit.

Categories: Drupal

New Polish Army Releases For Bolt Action Available

Tabletop Gaming News - 2 March 2018 - 1:00pm
The Polish had quite a rough time during WWII. They were the first targeted by Hitler’s Blitzkrieg. And, despite their best efforts, were no match for the German war machine. That’s not to say that they didn’t put up a good effort. Warlord Games has added new Polish forces for Bolt Action to their website, […]
Categories: Game Theory & Design

Pages

Subscribe to As If Productions aggregator