recentpopularlog in

dirtystylus : decoupledcms   24

Using Drupal 8 and AWS IoT to Power Digital Signage for New York’s Subway System
In order for raw data to be effectively (and efficiently) parsed and sent to the appropriate signs, our parsers must understand context. Unfortunately for us, none of the data feeds provide context (this is not uncommon). Data feeds, particularly those that update very rapidly, must be as streamlined as possible to cut down on size and processing time for the system that generates it in the first place.

This is where a content model comes in place. A key in the data (or several data fields) somehow map into the model, which then provides context for how the data should be consumed and handled by the system.

For the MTA, this content model needed to be representative of the assets in the city of New York. This model should create a digital representation of the various Routes (N,Q,R,W, etc.), Stations (Grand Central, Penn Station, etc.), Platforms (Uptown, Downtown, Mezzanine, etc.), Tracks, and Signs that will be included in the data.

A key component of the MTA system is the flexibility of our content model. Why? We’re using Drupal to manage it.

Each of the above assets is represented by a content type. Individual items in the content model are created as nodes, and then entity reference fields are used to provide the necessary context and relationships between the items. User experience is a major component of this feature as Drupal’s involvement allows non-technical users to log into the administration site (with the appropriate account access) and make changes to the content model on the fly.
decoupledcms  cms  drupal  drupa8  reactjs  nyc  subway  transportation  publictransit  casestudy  via:chrisarasin 
8 days ago by dirtystylus
8 - How to get $_POST and $_GET parameters - Drupal Answers
passing parameters to a REST API, retrieving them

$query = \Drupal::request()->query->get('name');
drupal  drupal8  REST  api  decoupledcms 
november 2018 by dirtystylus
REST API Best practices: Where to put parameters? - Stack Overflow
Filters always go in the query string, because while they are a part of finding the right data, they are only there to return a subset or modification of what the Locators return alone. The search in mysite.com/article/?query=Obama (subset) is a filter, and so is /article/5?order=backwards (modification). Think about what it does, not just what it's called!
bestpractices  REST  api  drupal  drupal8  decoupledcms 
november 2018 by dirtystylus
json - Get WP Navigation Menu from REST API V2 - WordPress Development Stack Exchange
Menus are currently not available in the WP Rest. So what you need to do is register your own custom endpoint and then just call that route from your application that needs it.

So you would include something like this (in your functions.php, plugin, wherever):

function get_menu() {
# Change 'menu' to your own navigation slug.
return wp_get_nav_menu_items('menu');
}

add_action( 'rest_api_init', function () {
register_rest_route( 'myroutes', '/menu', array(
'methods' => 'GET',
'callback' => 'get_menu',
) );
} );
wpapi2  wordpress  api  REST  webdev  decoupledcms 
april 2018 by dirtystylus
Remove WordPress default media image sizes — Studiograsshopper
Remove standard image sizes so that these sizes are not
created during the Media Upload process
wordpress  images  cms  decoupledcms 
october 2016 by dirtystylus
Pinboard: bookmarks for ryanirelan tagged 'alaonaircms'
Links to read about decoupling, headless CMS, Monolith vs. Microservices and more: #cmslove @alistapart
cms  api  headlesscms  decoupledcms 
august 2015 by dirtystylus

Copy this bookmark:





to read