Newsfeeds

You have already seen what Drupal blogs we trending in the previous month, and now it is time to look at all our blog post we wrote. Here are the blog topics we covered in January.
The first blog post in January was 2017 in review. In this blog post, our Commercial director Iztok looked back in the year 2017 and summarized what differences we made as a company, which Drupal events we have visited, how much fun we had and how do we contributed back to the community in 2017.
The second was Who will get the control of personal data after GDPR? by Ales Kohek. He talked about new set of… READ MORE

With Drupal Commerce 2.4 out the door (see yesterday's release notes), our focus is shifting back to the contributed module ecosystem. As Bojan highlighted in our year in review blog post, we have now ported many essential modules and pushed for them to achieve stable releases. With 55 payment gateways, shipping support, and work on recurring payments in progress, we've identified reporting as our next major initiative.

Reporting is obviously essential to eCommerce. Merchants need to know which products are selling, if a marketing campaign is producing new sales, how much sales tax to remit, and more. Each new type of report brings unique challenges related to understanding, querying, and visualizing the underlying data.

At Florida DrupalCamp, I will discuss the requirements and challenges we've identified in reporting within Drupal Commerce and the solutions available to our users in the Commerce Reports and Commerce Google Analytics modules. Finally, I will also unveil Commerce Guys’ newest product, Lean Commerce Reports.

Lean Commerce Reports, which we first showed off at DrupalCon Baltimore, is finally production ready. Over 80 stores use Lean Commerce Reports to add a plug and play sales dashboard to the back end of Drupal Commerce. The dashboard gives store owners immediate visibility into their sales trends, traffic by channel, conversion rate, and top selling products over time. Furthermore, each summary report on the dashboard links to a full report you can further explore, refine, export, etc.

Jonathan and I have worked really hard these last few months to get Lean Commerce Reports to where it is now, and I can't wait to show it off in Orlando. If you miss me there, come find us at DrupalCon Nashville or get in touch if you'd like to try it out while it's still in private beta.

I recently worked on an enhancement for a large multi-site Drupal 7 platform to allow its users to import news articles from RSS feeds. Pretty simple request, and given the maturity of the Drupal 7 contrib module ecosystem, it wasn't too difficult to implement.

I recently worked on an enhancement for a large multi-site Drupal 7 platform to allow its users to import news articles from RSS feeds. Pretty simple request, and given the maturity of the Drupal 7 contrib module ecosystem, it wasn't too difficult to implement.

In one of our recent projects, our client made a request to use LinkIt module to insert file links to content from the group module. However, with the added distinction of making sure that only content that is in the same group as the content they are editing is suggested in the matches.

LinkIt is a tool that is commonly used to link internal or external artifacts. One of the main advantages of using it is because LinkIt maintains links by uuid which means no occurrence for broken links. And it can link any type of entity varying from core entities like nodes, users, taxonomy terms, files, comments and to custom entities created by developers.

Once you install the module, you need to set a Linkit profile which consists of information about which plugins to use. To set the profiles use /admin/config/content/linkit path. And the final step will be to enable the Linkit plugin on the text format you want to use. Formats are found at admin/config/content/formats. And you should see the link icon when editing content item.

Once you click on the LinkIt icon it will prompt a modal as shown below.

By default LinkIt ships with a UI to maintain profiles that enables you to manage matchers.

Matchers

Matchers are responsible for managing the autoload suggestion criteria for a particular LinkIt field. It provides bundle restrictions and bundle grouping settings

Proposed resolution

To solve the issue; we started off by creating a matcher for our particular entity type. Linkit has an EntityMatcher plugin that uses Drupal's Plugin Derivatives API to expose one plugin for each entity type. We started by adding the matcher that linkit module exposed for our custom group content entity type.

We left the bundle restrictions and bundle grouping sections un-ticked so that all existing bundles are allowed so the content of those bundles will be displayed.

Now that the content is ready we have to let the matcher know that we only need to load content that belongs to the particular group for which the user is editing or creating the page.

Using the deriver

In order to do that we have to create a new class in /modules/custom/your_plugin_name/src/Plugin/Linkit/Matcher/YourClassNameMatcher.php by extending existing EntityMatcher class which derives at /modules/contrib/linkit/src/Plugin/Linkit/Matcher/EntityMatcher.php.

Because Linkit module's plugin deriver exposes each entity-type plugin with and ID for the form entity:{entity_type_id} we simply need to create a new plugin with an ID that matches our entity type ID. This then takes precedence over the default derivative based plugin provided by Linkit module. We can then modify the logic in either the ::execute() or ::buildEntityQuery method.

Using LinkIt autocomplete request

But here comes the challenge, in that content edit page the LinkIt modal doesn’t know about the group of the content being edited, therefore we cannot easily filter the suggestions based on the content being edited. We need to take some fairly extreme measures to make that group ID available for our new class to filter the content once the modal is loaded and user starts typing in the field.

In this case the group id is available from the page uri.

So in order to pass this along, we can make use of the fact that the linkit autocomplete widget has a data attribute 'data-autocomplete-path' which is used by its JavaScript to perform the autocomplete request. We can add a process callback to the LinkIt element to extract the current page uri and pass it as a query parameter in the autocomplete path.

The code

To do so we need to implement hook_element_info_alter in our custom module. Here we will add a new process callback and in that callback we can add the current browser url as a query parameter to the data-autocomplete-path attribute of the modal.

Below is the code to add the process callback and alter the data-autocomplete-path element. We rely on the HTTP Referer header which Drupal sends in its AJAX request that is used to display the LinkIt modal, which in turn builds the LinkIt element

By re-implementing the execute() method of EntityMatcher class we are now able to make the LinkIt field to display only content from the same group as the content the user is editing/creating.

So next challenge here is to create some test coverage for this, as we're relying on a few random pieces of code - a plugin, some JavaScript in the LinkIt module, an element info alter hook and a process callback - any of which could change and render all of this non-functional. But that's a story for another post.

When a company puts out a game, they obviously want it to be as perfect as possible. But even with a couple dedicated playtest groups, things can be missed. That’s where a public beta can help. And that’s just what Mantic’s got going on for Kings of War: Vanguard. Most of the rules are done […]

Just because the (American) football season is over doesn’t mean that you are just on vacation. No, training for next season is already underway. Maybe you’re looking for a new team to back. Well, you could always check out the Predators Occulte Fantasy Football Team that’s up on Kickstarter now. From the campaign: We announced […]

In
part one
and two
of this Acro Media Tech Talk video series, we covered how you set up a new product attribute and used rendered fields, in Drupal Commerce 2. In part three we set up a product variation type with custom fields.

In part four of this series, we'll complete our overall product configuration by setting up a product type. The product type defines the type of product that you're creating (i.e. hat, shirt, shoe). This is what your store administrators will see when they add a new product to their catalog. By default, a product type will consist of a title, body, and variation type. We'll add some additional custom fields for things like taxonomy reference (for categorization), short description, specifications, product review, etc.

This entire video series, when complete, will show you how to set up a new product in Drupal Commerce 2, from start to finish. The video is captured using our Urban Hipster Commerce 2 demo site.

Next week we'll post part 5: How to Add and Modify Product Content

Its important to note that this video was recorded before the official 2.0 release of Drupal Commerce and so you may see a few small differences between this video and the official release now available.

Urban Hipster Commerce 2 Demo site

This video was created using the Urban Hipster Commerce 2 demo site. We've built this site to show the adaptability of the Drupal 8, Commerce 2 platform. Most of what you see is out-of-the-box functionality combined with expert configuration and theming.

My dad was drafted for the Vietnam war. Though he never ended up in-country, he did train to drive an APC. Considering what I learned later during a Vietnam War History class that I took, I’m glad he didn’t end up over there. It probably wouldn’t’ve gone well. The Vietnam War is one that’s not […]

The target of this project is:
provide a mixture of functionality from drupal projectOne-time File Download
and like other well known filetransfer providers.

You can:
Provide a temporary download link for private file.
Set an expiration date and time for this link.
Monitor the external download access of this link.
Submit invitation mails for the link.
Get notification mails on each download attempt.

Lexicons of Dueling is a card game that takes from actual fighting manuals for various types of weapons and puts them in your hands. They’ve created several decks already for such weapons as rapiers and English longswords. Now, they’re headed to the land of the rising sun with the Japanese Katana. This is the first […]

Tuesday, Tuesday, Tuesday. I’m glad it’s here. My Monday wasn’t the best. Much of the day, I had a headache. Hell, I even managed to wear the wrong shirt (I had my Tuesday shirt on under my Monday overshirt. So, today, I’m reversed of that). So, let’s make sure you’ve got something good to listen […]

In this post, we’ll begin to talk about the development considerations of actual website code migration and other technological details. In these exercises, we’re assuming that you’re moving from Drupal 6 or 7 to Drupal 8. In a later post, I will examine ways to move other source formats into Drupal 8 - including CSV files, non-Drupal content management systems, or database dumps from weird or proprietary frameworks.

February for us here in the West means that it’s time for the Chinese Lunar New Year over in, well… China. It’s quite a big celebration, with fireworks and red packets and all sorts of stuff. In honor of the New Year, Skirmisher Publishing has released a new monster for 5th Edition. It’s the Earth […]

We’re a day shy of halfway through February. If there was a good time for February releases, I’d say this is it. And that’s what we’re getting from Happy Games Factory. New Releases for both Eden and Drakerys are in stock and ready to make their way to you. From the announcement: Dear Survivors, February […]

I actually changed my Pandora station because of this playlist. *rocks out to Amon Amarth* But while I’m listening to Heavy Metal, you guys can go back Black Earth: Heavy Metal, a new expansion for the Black Earth sci-fi minis game. Nuclear Shrimp is looking to bring some new vehicles to the three main faction […]

Well, with the Hooch Hauler on its way to people, it’s time for Privateer Press to start taking pre-orders for their next Black Anchor release. This time, it’s taking the “Tactical Rock” to a whole new level. You get Skarre, Admiral of the Black Fleet and her Tactical Half-A-Pirate-Ship. Who needs water for your part-ship […]

Support the game designs and theoretical work of As If Productions. Written especially for roleplayers, GMs, game designers, artists and neophiles who are interested in experimental applications of narrative engineering.

"The object of the world of ideas as a whole is not the portrayal of reality - this would be an utterly impossible task - but rather to provide us with an instrument for finding our way about more easily in the world."