Temporarily changing $route_match to a node path

I have some code that runs on an admin page controller. So if I do $route_match = \Drupal::routeMatch(); then it relates to that admin page. However, I want to Temporarily change the value of \Drupal::routeMatch() so that it uses the path of a node (for example node/1).

With Drupal 7 I could simply change $_GET['q'] = 'node/1', for example, do my logic and switch it back to the original path afterwards.

is it possible to install multiple arbitrary modules with a single composer command?

I would like to know if it's possible to install multiple arbitrary modules with a single composer command, and if yes, how to do it please

Captain Tortue, Extranet - Build

The Captain Tortue Extranet is the working tool of the Captain Tortue fashion consultants, allowing them to organise their workshops, their stocks and their career. This site acts as a gateway to the various external tools of BI, sales, etc essential to their activity.

The objective was to build a multisite in order to ensure coherence between the different countries concerned by Captain Tortoise's activity (5 countries at the time of the build).

Sectors: 
Beauty and Fashion
Enterprise

View keeps changing theme

I have a view

It used to be called 'page_1'
It is now called 'c_page'

I have created a template called 

'node--view--branch-list--c-page.html' to render this view

This worked perfectly for many weeks. Until now

Sometimes when i load a page created by this view it is very very glitched.
And sometimes when i load a page created by this view it is fine.

After much investigating i discovered that this is happening because the template suggestions are different on each page load

sometimes the first two template suggestions are

How to display the rendered entity of a store in a modal window ?

I created a module for my marketplace (several stores and owners). It displays a required checkbox, in the purchase funnel. With a link to the general conditions of sale which are rendered in a modal window.

This module works perfectly.

MY PROBLEM :

I no longer want to display the CGV page in the modal window.

I want to display the rendered entity of the store with the CGV display mode.

Can you reply with the correct code ? Thank you

Media Library usage in WYSIWYG editors - image scaling using percentages

If we set the the content authoring editors to include the "Media Library" button then it is very easy to upload and insert images onto nearly any visible entity (custom blocks, articles, etc).

The built-in handling of media library items even lets us align and caption the images.

Awesome.

I know for a fact that, when using various distributions, I could also set my image to be full/three-qtr/half/one-qtr of the container.  Whatever they used ended up being in the text editor configuration filter lists I think.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x