metabox – Choosing a default page tempate (Classic => Gutenberg)

This code worked at the time "classic" to define a default page template:

/* Blank Page by default */
add_action('add_meta_boxes', 'blank_default_page_template', 1);
function blank_default_page_template() {
    global $post;
    if ( 'page' == $post->post_type 
        && 0 != count( get_page_templates( $post ) ) 
        && get_option( 'page_for_posts' ) != $post->ID // Not the page for listing posts
        && '' == $post->page_template // Only when page_template is not set
    ) {
        $post->page_template = "page-template-blank.php";
    }
}

Result in this behavior:

enter the description of the image here

How to do the same thing in Gutenberg? Currently, it looks like:

enter the description of the image here

color – Why are photos not vibrating by default in Nikon?

There are some differences due to the way each camera processes each image. The Picture Control & # 39; Standard & # 39; Nikon is more neutral, while the 'Standard' image style is Canon's features include saturation, contrast, and sharpness. The closest Nikon equivalent to Canon's "Standard" image style is "Vivid". The closest Canon image style to Nikon's "Standard" is probably "Faithful".

But the main reason why Canon's example seems more dynamic than Nikon's is that there is more vibrant light illuminating the scene.

Nikon, for example, attacks dark green leaves for the most part dark. The colorful butterfly is quite small in the frame and the colorful bud of the flower is mostly hidden by flat green leaves.

The example of Canon is composed so that the most colorful parts of the scene occupy a much larger part of the frame and that most of the background is lit by a warm light rather than in the shade.

If we look at both examples with a critical eye, the butterfly is actually brighter and more colorful in the Nikon image! But it is so small in that it is submerged by shady green leaves. In contrast, the Canon image allows the butterfly and the flower to dominate the frame, so that the colors impose in our perception.

Where can I set the default filter for web forms?

There is no UI parameter for this.

You must change it programmatically via a custom module in mymodule.module file or via theme in mytheme.theme file.

Example:

mytheme.theme

/*
 * Implements hook_form_FORM_ID_alter()
 */
function mytheme_form_webform_filter_form_alter(&$form, DrupalCoreFormFormStateInterface $form_state, $form_id) {
  $form('filter')('state')('#default_value') = 'open';
}

sharepoint online – The default value in the required column does not show up

I created a type of content in a library. Made a model of the library because it has to produce hundreds of other libraries. There is a field in the content type that is required and library by library, it will have to change its default value.

In words, the property panel on the side of the document does not display this default value, while it clicks "File" (rear view of the document). In fact, the document is saved even if it is not in the front properties panel.

This disturbs me for weeks now because I've already checked the column inside the content type in the library and this shows the default value. I've checked the "default column settings" and they're there, and I'm even adding them to be 200% sure.

I can not put the default value in the original content type (site column) because it will change from library to library and will be set when the library is created.
I've even checked the default template Word Template.dotx in forms and this template carries the default.

There is no problem with Excel and PowerPoint because these do not have the property panel on the side, but they lead you to the view "file", where is the default .

Is there anything else I can try?

Windows Registry – I accidentally changed the default value of HKEY_CLASSES_ROOT

I accidentally changed the default value of HKEY_CLASSES_ROOT, which means that I clicked on the default file of HKEY_CLASSES_ROOT and changed its value to "exefile", now, when I tried to ############################################################################################### Open an .exe file. the file simply says that you need a new application to open this exe file. Anyone can help? I can not restore my computer and I should have taken the initial value. I was supposed to go into the EXE folder instead of just changing the default value of HKEY_CLASSES_ROOT … any one can it help me?

command line – Ubuntu default terminal does not work

I've got the new Ubuntu 19.04, I tried to write an alias and it's my first time, but the aliases were not working, so I erased them. Point, it comes and goes, in a few milliseconds, downloaded PowerShell and works fine, but I'm not comfortable with that. A way to repair the .bashrc file without having to reinstall the operating system?

sharepoint online – The Copy link button on the default form does nothing

I've created a list in an SPO site and want to allow contributors to add it to the help of a form. In my enterprise, PowerApps and InfoPath are disabled and do not allow site owners to use some form of code. I can not customize the forms directly.

After trying to hide the Title column for a long time, the right columns are displayed with the help of the right controls when I click on the "New" button in the List view. However, the "Copy link" button in the form pane does not copy anything. I've tried both in Google Chrome (current version) and Internet Explorer 11. By clicking the button, the chevrons "<>" appear superimposed on the screen in gray below the button, but no URL is copied.

enter the description of the image here

I've also tried sticking in several applications in addition to browsers in case it would be a problem of type of content – this is not the case.

So, why "Copy link" would not work anymore?

Is there a known way to manually build the URL when this happens?

Thank you.

8 – Follow the symbolic links in default / files

I run Drupal 8.7.6. The default / files directory is a symlink to a read-only mount (/ mnt / files_ro).

Drupal needs to write in a few files to group and cache resources. I have therefore created a read and write montage, as well as a number of symbolic links from / mnt / files_ro, such as:

  • css -> / mnt / files_rw / css /
  • js -> / mnt / files_rw / js /
  • styles -> / mnt / files_rw / styles /

Now, Drupal generates the same errors it would have if the / default files had incorrect file permissions, but the files_rw directory is owned by the. Apache user and is writable.

I've done enough tests to make sure the problem is not a simple file authorization. I also know that in Drupal 7, you had to apply central fixes if you wanted Drupal to follow symlinks.

How to make Drupal 8 follow symlinks in the / files / directory?

drupal 8 follows symbolic links in default / files

I run under Drupal 8.7.6.
My default / files is a symbolic link to a read-only mount:

files -> /mnt/files_ro

Drupal needs to write in a few folders because it aggregates and caches assets such as css, js, php / twig, ….
So I created a read and write montage. And created a number of symlinks from / mnt / files_ro:

css -> /mnt/files_rw/css/
js -> /mnt/files_rw/js/
styles -> /mnt/files_rw/styles/
...

Now Drupal is generating the same errors it would have if the / default files had incorrect file permissions. but my files_rw directory belongs to the Apache user and is writable.

I've done enough tests to make sure the problem is not a simple file authorization.

I also know that in D7, you had to patch Core if you wanted Drupal to follow symlinks.

How to make D8 follow symbolic links in the / files / directory? Has anyone else done that?

How to reject all Facebook page invitations by default?

I just do not care about other people's pages. Is it possible to say no by default?