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.

creating pages/nodes from command line

I want to edit my website's content in Vim, from the happy realm of my terminal.  I saw a module for D7 that creates pages via `hook_menu` for all the markdown files in a directory.... that's pretty cool.  But even cooler would be Field API integration.  I'd like to be able to use taxonomy and corresponding entity references and views.  So that would make the proof of concept module inadequate even if I modified it to work with D8/9, I'd need to be creating nodes.

How do I flag a store when an input method is used ?

Here is my full code.

  1. I want to automatically flag the store with the payment_gateways flag when the commerce_store_payment_gateways_form form is submitted.

  2. I want to automatically flag the store with the shipping_methods flag when the commerce_store_shipping_methods_form form is submitted.

I tested this code and it doesn't work for stores :

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x