Newsfeeds

"Who Killed My Uncle?" Postmortem Part 2 - Designing For Your Audience - by Devon Wiersma

Gamasutra.com Blogs - 10 November 2017 - 6:11am
A postmortem on a WWII historical narrative game, discussing the importance of designing around players and their expectations.
Categories: Game Theory & Design

Fever Dreams - by Ryan Dorkoski

Gamasutra.com Blogs - 10 November 2017 - 6:11am
Thoughts about a weird time in May. And moving forward.
Categories: Game Theory & Design

Translating Dialects and Accents in Video Games - The French edition - by Sandrine Guyennet

Gamasutra.com Blogs - 10 November 2017 - 6:10am
In video games, we get to meet characters who sometimes speak with very specific accents. The tricks used to translate and transcribe these accents in French depend on the tone, the genre and the audience of the game.
Categories: Game Theory & Design

Story vs Plot for Indie Games - by Edwin McRae

Gamasutra.com Blogs - 10 November 2017 - 6:10am
Every game needs a story, but not every game needs a plot. And trying to apply a plot to your Indie game that only needs a story will land you in hot water, both mentally and financially.
Categories: Game Theory & Design

New Tau Tiger Shark Available to Order From Forge World

Tabletop Gaming News - 10 November 2017 - 6:00am
It wouldn’t be Games Workshop if there weren’t multiple versions of vehicles and units. In this case, you’ve previously had the Tau Tiger Shark AX-1-0, but you’ve not had the “standard issue” Tiger Shark. Well, that’s what you’re getting this week (like getting the Special Theory of Relativity before you get the General Theory of […]
Categories: Game Theory & Design

synmail

New Drupal Modules - 10 November 2017 - 4:34am
Categories: Drupal

Simple Addthis

New Drupal Modules - 10 November 2017 - 4:20am
Categories: Drupal

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

Planet Drupal - 10 November 2017 - 3:54am

In my blog post, "A plan for media management in Drupal 8", I talked about some of the challenges with media in Drupal, the hopes of end users of Drupal, and the plan that the team working on the Media Initiative was targeting for future versions of Drupal 8. That blog post is one year old today. Since that time we released both Drupal 8.3 and Drupal 8.4, and Drupal 8.5 development is in full swing. In other words, it's time for an update on this initiative's progress and next steps.

8.4: a Media API in core

Drupal 8.4 introduced a new Media API to core. For site builders, this means that Drupal 8.4 ships with the new Media module (albeit still hidden from the UI, pending necessary user experience improvements), which is an adaptation of the contributed Media Entity module. The new Media module provides a "base media entity". Having a "base media entity" means that all media assets — local images, PDF documents, YouTube videos, tweets, and so on — are revisable, extendable (fieldable), translatable and much more. It allows all media to be treated in a common way, regardless of where the media resource itself is stored. For end users, this translates into a more cohesive content authoring experience; you can use consistent tools for managing images, videos, and other media rather than different interfaces for each media type.

8.4+: porting contributed modules to the new Media API

The contributed Media Entity module was a "foundational module" used by a large number of other contributed modules. It enables Drupal to integrate with Pinterest, Vimeo, Instagram, Twitter and much more. The next step is for all of these modules to adopt the new Media module in core. The required changes are laid out in the API change record, and typically only require a couple of hours to complete. The sooner these modules are updated, the sooner Drupal's rich media ecosystem can start benefitting from the new API in Drupal core. This is a great opportunity for intermediate contributors to pitch in.

8.5+: add support for remote video in core

As proof of the power of the new Media API, the team is hoping to bring in support for remote video using the oEmbed format. This allows content authors to easily add e.g. YouTube videos to their posts. This has been a long-standing gap in Drupal's out-of-the-box media and asset handling, and would be a nice win.

8.6+: a Media Library in core

The top two requested features for the content creator persona are richer image and media integration and digital asset management.

The results of the State of Drupal 2016 survey show the importance of the Media Initiative for content authors.

With a Media Library content authors can select pre-existing media from a library and easily embed it in their posts. Having a Media Library in core would be very impactful for content authors as it helps with both these feature requests.

During the 8.4 development cycle, a lot of great work was done to prototype the Media Library discussed in my previous Media Initiative blog post. I was able to show that progress in my DrupalCon Vienna keynote:

The Media Library work uses the new Media API in core. Now that the new Media API landed in Drupal 8.4 we can start focusing more on the Media Library. Due to bandwidth constraints, we don't think the Media Library will be ready in time for the Drupal 8.5 release. If you want to help contribute time or funding to the development of the Media Library, have a look at the roadmap of the Media Initiative or let me know and I'll get you in touch with the team behind the Media Initiative.

Special thanks to Angie Byron for contributions to this blog post and to Janez Urevc, Sean Blommaert, Marcos Cano Miranda, Adam G-H and Gábor Hojtsy for their feedback during the writing process.

Categories: Drupal

An update on the Media Initiative for Drupal 8.4/8.5

Dries Buytaert - 10 November 2017 - 3:54am

In my blog post, "A plan for media management in Drupal 8", I talked about some of the challenges with media in Drupal, the hopes of end users of Drupal, and the plan that the team working on the Media Initiative was targeting for future versions of Drupal 8. That blog post is one year old today. Since that time we released both Drupal 8.3 and Drupal 8.4, and Drupal 8.5 development is in full swing. In other words, it's time for an update on this initiative's progress and next steps.

8.4: a Media API in core

Drupal 8.4 introduced a new Media API to core. For site builders, this means that Drupal 8.4 ships with the new Media module (albeit still hidden from the UI, pending necessary user experience improvements), which is an adaptation of the contributed Media Entity module. The new Media module provides a "base media entity". Having a "base media entity" means that all media assets — local images, PDF documents, YouTube videos, tweets, and so on — are revisable, extendable (fieldable), translatable and much more. It allows all media to be treated in a common way, regardless of where the media resource itself is stored. For end users, this translates into a more cohesive content authoring experience; you can use consistent tools for managing images, videos, and other media rather than different interfaces for each media type.

8.4+: porting contributed modules to the new Media API

The contributed Media Entity module was a "foundational module" used by a large number of other contributed modules. It enables Drupal to integrate with Pinterest, Vimeo, Instagram, Twitter and much more. The next step is for all of these modules to adopt the new Media module in core. The required changes are laid out in the API change record, and typically only require a couple of hours to complete. The sooner these modules are updated, the sooner Drupal's rich media ecosystem can start benefitting from the new API in Drupal core. This is a great opportunity for intermediate contributors to pitch in.

8.5+: add support for remote video in core

As proof of the power of the new Media API, the team is hoping to bring in support for remote video using the oEmbed format. This allows content authors to easily add e.g. YouTube videos to their posts. This has been a long-standing gap in Drupal's out-of-the-box media and asset handling, and would be a nice win.

8.6+: a Media Library in core

The top two requested features for the content creator persona are richer image and media integration and digital asset management.

The results of the State of Drupal 2016 survey show the importance of the Media Initiative for content authors.

With a Media Library content authors can select pre-existing media from a library and easily embed it in their posts. Having a Media Library in core would be very impactful for content authors as it helps with both these feature requests.

During the 8.4 development cycle, a lot of great work was done to prototype the Media Library discussed in my previous Media Initiative blog post. I was able to show that progress in my DrupalCon Vienna keynote:

The Media Library work uses the new Media API in core. Now that the new Media API landed in Drupal 8.4 we can start focusing more on the Media Library. Due to bandwidth constraints, we don't think the Media Library will be ready in time for the Drupal 8.5 release. If you want to help contribute time or funding to the development of the Media Library, have a look at the roadmap of the Media Initiative or let me know and I'll get you in touch with the team behind the Media Initiative.

Special thanks to Angie Byron for contributions to this blog post and to Janez Urevc, Sean Blommaert, Marcos Cano Miranda, Adam G-H and Gábor Hojtsy for their feedback during the writing process.

Categories: Drupal

Custom Field Token

New Drupal Modules - 10 November 2017 - 3:22am

This module allows you to create custom tokens for the field available in all content types of Drupal and you can set the maximum character length to which the data to be replaced should be returned.

Categories: Drupal

In All Their Looks & Words: The Tomb Of Niankhkhnum And Khnumhotep Part 2

Gnome Stew - 10 November 2017 - 3:00am

This article consists of prep material that works better if you’ve read the intro and Part 1 of this series.

Investigative Game Prep

I will say, investigation games take a lot more prep than I’m used to. Do some more research into how these types of RPGs are planned and try to work that into your prep. What I can give you here is more of an atmosphere or setting, as well as an outline that could be a short session, or a side adventure B Plot to your normal game. This follows a generic Three Act Structure and should be loose enough to work into your prep. Obviously no plan survives first contact with the players so you will likely need to tweak this as appropriate.

Act 1:

The Esoterrorists (Pelgrane Press) could be an intriguing system to wrap around this story

An up and coming scholar is trying to do some research on ancient sexuality for an upcoming conference and has decided to investigate Nianknkhnum & Khnumhotep. However, he is barred from entering the tomb itself because his boyfriend is currently in prison and he himself has been flagged by a watchdog organization. He reaches out to the PCs to provide some more interesting evidence, or to go to the tomb on his behalf.

Act 2:

Upon reaching the tomb (or upon returning home) the PCs find that the scholar’s work has been challenged by a conservative organization, and his spot has been pulled from the conference. The scholar asks the PCs to look into what happened. It turns out that the scholar has an academic rival who tipped off the hate group and stole the scholar’s conference spot. If investigated, the PCs discover many artifacts in the rivals study that could be traced back to the Saqqara burial plots.

Act 3:

As the date of the conference approaches, the scholar’s boyfriend is released from prison and the two men again call the PCs for help. Desperate, the scholar tells the PCs that he may not have much time in the country left and this conference was his chance to make a name for himself before he has to return home. Later, if the PCs stay with the scholar they are privy to these events, but if not, the rival shows up at the PC’s home and recounts a tale: the scholar and his boyfriend confront the rival either because of, or despite the PC’s advice, but get in over their heads. A small artefact, a plate taken from the tomb and on loan from a museum in Egypt, is damaged in the scuffle. The scholar & his boyfriend double over in pain and shrivel over before crumbling to dust. The rival admits to sabotaging the scholar but has no clue what happened and is in a state of panic. If the PCs go to the conference, or see any promotional material, the two faces of Nianknkhnum & Khnumhotep stare out from a flyer, eerily similar to those of the scholar and his boyfriend.

 

YA-Fiction Style Game

Monsterhearts, by Avery Alder, is a great game to tell this story.

Heru & Seth have been an off-again-on-again item for the past four months. Now, as the Halloween Dance approaches, the local art history museum in which the dance is to be held receives a last-minute addition to their Ancient Egypt wing: duplicates of Niankhkhnum & Khnumhotep’s burial engravings. With this addition came a wave of anti-gay protesters and historical “purists” who malign these relics’ inclusion. Now it seems like Heru & Seth’s relationship is rockier than ever before, and as committee members on the Dance Planning Committee, their split may cause the whole production to fall apart. (Catch this third-party skin for Monsterhearts, The Mummy)

Characters

Heru – Junior & part time lifeguard who loves sunbathing & eyeliner. Comes from a rich family & likes to go falconing in his spare time.

Seth – Senior & amateur storm-chaser, Seth is a key figure on the school’s rowing team and loves to tell the story of how he rowed a race with a frantic garter snake who had stowed aboard.

Ambrosia Tun – Museum Curator who is a little too excited about Ancient Egypt, and a little “doesn’t quite get it” when it comes to relationships.

Gerred Gere – Evangelist & self proclaimed “historical purist” who’s in town protesting the “gaywashing” of ancient history.

Menace: The Looming Halloween Dance

Stakes: Will the Dance Planning Committee reconvene in time to save the Halloween dance? Will the PCs find dates? Will Heru & Seth get back together or are they better off split up?

Threat: Heru & Seth were the backbone of the Dance Planning Committee.

Craving: Intimacy (Isolate them)

Offerings: Sex (Seclude them & seek promises)

Capacity: Cold Betrayal (Turn their friends against them)

Custom Moves:

When you make plans for a date to the dance, roll with Hot. On a 10+ you have what you need to see the date through. On a 7-9 you’ll  Isolate them, seclude them & seek promises, turn their friends against them. need to ask someone for help lining things up.

When you try to get the planning committee together, tell the MC if you go to Heru or Seth first. They’ll remember your choice later.

Menace: A Charged Exhibit

Stakes: As “moral panic” spreads over a modern reading of ancient relics, will the discussion remain academic? To what lengths will the protesters go to shut down the museum? How does the town see the role of ancient art in modern lives?

Threat: Gere’s right wing protesters rail against a modern view of Nianknkhnum & Khnumhotep as lovers.

Craving: Ownership (Viciously protect coveted things)

Offerings: Inclusion (Show them what they’re missing)

Capacity: Sudden Violence (Outright kill someone they love)

Custom Moves:

When you try to deescalate a bigoted mob, roll with Volatile. On a 10+ choose two from the following list. On a 7-9 choose one.

  • The media is on your side
  • You don’t get hurt
  • The mob disperses

You have some connection to the museum. When you first visit the new exhibit, choose one from the list below and work with the MC to flesh out its inclusion in your game:

  • A Friendly Face: You know someone who works in the museum who could sneak you in whenever you want
  • Research Skills: You know your way around the museum’s research systems, providing you with special access to their records
  • Cultural Ambassador: You spent some time as a neighborhood liaison for the museum & have cultural connections on its behalf

 

Dungeon Crawl:

 

Dungeon World is my go-to for dungeon crawling fun

For a chance to explore the space during a dungeon crawl or more traditional hack & slash RPG feel. The PCs stumble across a tomb while exploring ancient burial grounds. The debate on the ethics of grave robbing is better left for other folks, and the party ventures inside.

 

Agenda: Make the world fantastic. Fill the character’s lives with adventure. Play to find out what happens.

Goals: Establish details, describe. Use what they give you. Ask questions. Leave blanks. Look for interesting facts. Help the players understand the moves. Give each character a chance to shine. Introduce NPCs. Fill out your worksheet.

Dungeon Moves: Change the environment. Point to a looming threat. Introduce a new faction or type of creature. Use a threat from an existing faction or type of creature. Make them backtrack. Present riches at a price. Present a challenge to one of the characters.

Questions:
  • When did you realize you were lost in the burial grounds?
  • Whose tomb were you originally looking for, and what treasures did you hope to find?
  • What curse did the locals threaten you with to try and keep you out?
  • Why did you venture forth anyway?
  • How thick was the layer of dust outside the tomb, and how thick is the dust inside?
Impressions:
  • A cracked stone door, impossibly old
  • Shattered remains of a beautiful fresco
  • A noise, just down that dark stone hallway
  • The grinding of sand between two stone objects
  • A large statue of two men holding hands
  • Darkness, total and complete darkness
  • A plaque, declaring this tomb to be the burial site for Nianknkhnum & Khnumhotep, royal manicurists of the great pharaoh
  • A room full of inexplicably labeled containers
  • An empty burial chamber where two bodies once lay together for eternity
  • Footsteps in the dust that may be weeks old, or centuries old
  • Dozens of images of the two men holding or supporting one another in various poses
  • A cool breeze as if from outside air
  • A scene where the men enjoy the outdoors together, spearing fish and bird hunting
  • The sound of competing grave robbers, hopelessly lost but unaware of your presence
  • The entrance to their offering chamber, where Nianknkhnum & Khnumhotep are shown nose to nose, kissing as their belt buckles touch, joining them at the waist.
  • A hallway nearly blocked by debris, or the wreckage of a cave in
  • In some hieroglyphs, their names are joined in a wordplay that could suggest that they are now joined in death as they were in life
  • Some creature that’s made its life down here
  • One inscription featuring a musician calling for a song about The Two Divine Lovers
  • Sand, so much sand…
Custom Moves:

When you enter a new room, roll +Str. On a 10+ you enter unimpeded. On a 7-9 you are winded from clearing debris and must take a moment to breathe & look around you.

When you closely examine the art, roll +Wis. On a hit, you learn a new detail of the lives of these two men. On a 10+ you take +1 forward when acting on this information.

The silence of the grave is complete. Take -1 ongoing when you try to discern reality based on your hearing.

When you open an ancient container, roll +Con as a cloud of arcane dust fills your senses. On a 10+ the dust grants you a vision. On a 7-9 you still receive the vision, but the dust Sickens you.

When you sleep in the tomb, you are visited in your dreams by one of the people from the decorations who will speak with you for a time but will not answer any questions. Sand, so much sand… 

When you inadvertently wake a mummy, roll +Cha. On a 10+ you can parley with it and it may even be friendly. On a 7-9 you can choose either to parley or to have it be friendly, but not both.

When you think you’ve found a way out of this room, roll + the amount of dreams you’ve had while in the tomb. On a 10+ you’ve found an exit. On a 7-9 you can see the other side but there’s no way you can reach it. On a 6- the mirage clears and you’re left once again in the darkness.

Well, that’s our show!

As we wrap up here, I’d like to do one small plug for this list of queer/LGBT+ gaming resources I curate over at my site, RiverhouseGames.com. Like I said in the first installment, I don’t quite know how to answer my question of where I want queerness in tabletop to go. That said, reading others’ work, playing queer games, and working through some creative processes has given me some great enrichment in this area.  How about you? I’m only one person and I’m limited to my own experiences. What would you like to see in the future of this series?

Categories: Game Theory & Design

Achtung! Cthulhu Audio Adventures - Teaser

New RPG Product Reviews - 10 November 2017 - 2:53am
Publisher: Modiphius
Rating: 4
I love this french-german accent, quite funny listening to it as a german.

Unfortunately, the content is nothing more than a fight scene with disgusting noises in the background. A small hint of what it is all about would be interesting for listeners who do not know the game.
Categories: Game Theory & Design

CTI Digital: NWDUG Unconference 2017

Planet Drupal - 10 November 2017 - 2:00am

I always look forward to unconferences. It’s their unpredictability and element of surprise that I enjoy, you never quite know what the day will bring. I love the edgy feel, the lower barrier to entry, and that it’s OK to fluff your words or try something new. Sensing the nerves of the ones who unexpectedly present for the first time, witnessing how energising their experience is, discovering a topic or theme for the first time, or taking the mic because you feel inspired by others are all reasons I’m drawn to attend and why CTI Digital was proud to be one of the sponsors.

The North West Drupal User Group Unconference last weekend was no exception in terms of inclusivity and our Drupal team were there in force.

Categories: Drupal

Video embed Hudl

New Drupal Modules - 10 November 2017 - 1:14am

This module provides Hudl handler for Video Embed Field.
Users can add Hudl videos to their site by pasting the video's URL into a video embed field.
in the setting users can set width and height and also autoplay option of the video.
This module also can get thumbnail image from Hudl website for using it as a teaser image.

Requires:
Video Embed Field

Categories: Drupal

Ubercart PDF Invoice Mail

New Drupal Modules - 10 November 2017 - 12:35am

This module generates PDF Invoice of order and sends PDF as an attachment to customer

DEPENDENCIES

There are dependencies for this module:

  1. DOMPDF
REQUIREMENTS

This module requires the following modules:

Categories: Drupal

Token Substitutions

New Drupal Modules - 10 November 2017 - 12:02am

This module adds bash-like substitution support to Token, where the substitutions are performed on the value of the token. Patterns should follow PCRE syntax. Currently, only these substitutions are supported:

[type:token/pat/repl]
Replace first match of pat by repl
[type:token//pat/repl]
Replace all matches of pat by repl
Categories: Drupal

Appnovation Technologies: Drupal Website Accessibility, Part 1: The problem, and why it matters…

Planet Drupal - 10 November 2017 - 12:00am
Drupal Website Accessibility, Part 1: The problem, and why it matters… Drupal Website Accessibility, Part 1: The problem, and why it matters… "The power of the Web is in its universality.  Access by everyone regardless of disability is an essential aspect." - Sir Tim Berners-Lee, W3C, Director and Inventor of the World Wide Web In the coming weeks, I’ll be taking a look into one...
Categories: Drupal

Red Route: Knowledge Is Dead, Long Live Learning

Planet Drupal - 9 November 2017 - 10:22pm

This article was originally posted on the Capgemini Engineering blog

There's a certain inescapable truth that people who work with technology need to face. As time goes by, the knowledge we’ve gained almost inevitably becomes obsolete. If we specialise in something, how do we deal with the fact that our specialism, which may even have been cutting edge technology that we were pioneering, eventually becomes a legacy system? As Ellen Ullman put it, "The corollary of constant change is ignorance ... we computer experts barely know what we are doing."

Front end developers are very familiar with this feeling, confronted so frequently with the dizzying pace of change in the world of JavaScript frameworks. Once upon a time, I was very proud of my ability to make CSS layouts work in IE7. Now all those tricks and hacks are little more than worthless trivia, perhaps less valuable than actual trivia. At least knowing who scored the winner in the 1973 FA Cup final might help in a pub quiz - I can't imagine that being able to prefix properties with an asterisk will ever come in handy, but it's taking up storage space in my brain. Now that CSS grid is becoming widespread, everything I've learned about floats (and even flexbox) is becoming less and less useful. There are even some people (although I'm not one of them) who would say that CSS itself no longer has value. Similarly, jQuery is already on its way to joining YUI and MooTools in the graveyard of things I used to know about, and experienced members of the Drupal community have recently been coming to terms with the fact that in order for the technology to progress, we'll have to unlearn some of our old ways.

It isn't just true for technology. London taxi drivers are finding that their hard-earned Knowledge is being made obsolete by satnav, and before too long, the skill of driving will itself have gone the way of basket weaving or being able to pilot a horse-drawn buggy - something that might still be interesting for the enthusiast, but isn’t relevant to most people’s lives.

Confronted with the unpleasant reality that our hard-learned skills are becoming outdated, what's the appropriate response? Do we follow the example of the Luddites and rage against the evolution of the machines? It's easy to fall victim to the sunk costs fallacy, and ego provides a strong temptation to hang on to our guru status, even if we're experts in an area that is no longer useful. If you're a big fish in a shrinking pond, you may need to be careful that your pond doesn't dry up entirely. Besides, do you really want to work on legacy systems? Having said that, if your legacy system is still mission-critical somewhere, and migrating away would be a big job, there's good money to be made - just ask the people working on COBOL.

I think there's a healthier way of looking at this. With the internet acting as a repository of knowledge, and calculators at our fingertips, education is evolving. There's no longer much value in memorising times tables, or knowing the date of the battle of Culloden. As my colleague Sarah Saunders has written, you're never too old to learn, but the value of learning things is greater than the value of the facts or skills that we learn - the meta-skill of learning is the really useful thing. Then again, I would say that, having done a philosophy degree.

For example, the time and effort I put into learning French and German at school doesn’t currently seem like a worthwhile investment, when I think about how frequently I use those languages. But I would never say that it was a waste of time. When I lived in Tokyo, having learned other languages definitely helped when it came to learning Japanese. Then again, these days I don’t often spend any time in Japan or with Japanese people, so the current value of that effort seems low. But do I regret spending that effort? Not a bit. It helped me to make the most of my life in Japan, and besides, it was interesting.

Two of the most compelling conference talks I've heard in the last few years touched on this theme from different directions. Andrew Clarke and Patrick Yua both emphasised the importance of focussing on the underlying principles, rather than chasing whatever the current new hotness might be. Designers and developers can learn something from Yves Saint Laurent: "Fashions fade, style is eternal".

We need to recognise that things will always keep changing. Perhaps we could help ourselves to acknowledge the impermanence of our skills by saying some kind of ceremonial goodbye to them. I have an absurd vision of a Viking funeral, where a blazing longboat sails away full of old O'Reilly books. We may not need to go that far, but we do need to remind ourselves that what we've learned has served us well, even if that knowledge is no longer directly applicable. A knowledge funeral could be an opportunity to mourn for the passing of a skill into obsolescence, and to celebrate the value of learning.

Image source: wikimedia

Tags:  learning development psychology Capgemini Drupal All tags
Categories: Drupal

Morpht: Announcing Entity Class Formatter for Drupal 8

Planet Drupal - 9 November 2017 - 7:06pm

The Entity Class Formatter is a nifty little module which allows editors to place classes on to entities, allowing their look and feel to be altered in the theme layer or with other modules such as Look and Modifiers. It is now available for Drupal 8.

Entity Class Modifier is a humble little module, however, it does open up a lot of possibilities. The most obvious is to use the theme layer to provide styles for the class which has been applied. This makes it possible for the “designer” at design time to can some different styles to pick from. It is however, possible to use the module in a more flexible way and combine it with Modifiers and Looks.

Once a class has been defined and added to a field, a “Look Mapping” can be defined, associating the class with a set of Modifiers. The site builder or skilled editor can then go in and define any number of Modifiers which will be fired with the class.

For example - a “my-awesome-class” class could be created which is wired into a “field_my_awesome” set of Modifiers. The Modifiers could include a blue linear gradient with white text overlay with generous padding. All of this configuration happens in the UI after deploy. It is a very flexible and powerful system. The system can be configured after deployment and adapted to the styles you wish to apply.

Basic use of Entity Class Formatter

The use of the module is very easy. We can for example define our own class on the article.

The first thing we need to do is to enable the module. Once installation is complete we can go and add our custom field. In this little tutorial we will basically add the class onto the article content type. So go to Structure > Content types > Article > Manage fields and add new text field. We can name the field simply "Class" and save it. As we keep everything in default we can save it on the next page too.

 

Now the last thing we need to do to make it work is set the Entity Class on the field in Manage display page. Go to Structure > Content types > Article > Manage display and change the format to "Entity Class". There's no need to any other manipulation with field because it won't render any values which would be visible to the visitor of the page.

 

That's it! No we can go to create an article (Content > Add content > Article). Input class to our field...

... voila, class is there!

Similar but different

There are a couple of modules out there which are similar but are different enough for them not to be totally suited to our requirements.

Classy Paragraphs, available in Drupal 8, has been influential in the Paragraphs ecosystem and has opened the way for creative designs. It was intended to apply to Paragraphs only and is quite structured in the way classes are applied through a custom field type. The Entity Class Formatter module is more flexible in that it has been designed to apply to all entity types. It can also handle a variety of field types (text, select lists, entity references) and is able to adapt to the data at hand. So, Entity Class Formatter has a similar aim - it is just somewhat more generic.

Field Formatter CSS Class, available in Drupal 7, also uses a field formatter approach to applying the class to the entity. It does have more complexity than this module because it deals with several layers of nesting. The Entity Class Formatter is very simple and only applies to the parent entity of the field.

Entity Class Formatter was inspired by Classy Paragraphs (thanks) and is supported by the team at Morpht.
Categories: Drupal

Leaflet Ajax Features

New Drupal Modules - 9 November 2017 - 6:54pm

The Leaflet Ajax Features module provides the ability to load the features for a Leaflet field or View (through the use of a sub-module) via AJAX, displaying a loading screen while the request is in progress. This is helpful for large datasets.

Leaflet Ajax Features
This is the main module which provides the base functionality and a field formatter for loading a fields data onto a Leaflet using AJAX.

Categories: Drupal

Pages

Subscribe to As If Productions aggregator